Skip to content

Commit 6be1815

Browse files
support TF2.12
1 parent ca107d4 commit 6be1815

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

src/sagemaker/image_uri_config/tensorflow.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2021,7 +2021,8 @@
20212021
"2.8": "2.8.0",
20222022
"2.9": "2.9.2",
20232023
"2.10": "2.10.1",
2024-
"2.11": "2.11.0"
2024+
"2.11": "2.11.0",
2025+
"2.12": "2.12.0"
20252026
},
20262027
"versions": {
20272028
"1.10.0": {
@@ -3755,6 +3756,37 @@
37553756
"us-west-2": "763104351884"
37563757
},
37573758
"repository": "tensorflow-training"
3759+
},
3760+
"2.12.0": {
3761+
"py_versions": [
3762+
"py39"
3763+
],
3764+
"registries": {
3765+
"af-south-1": "626614931356",
3766+
"ap-east-1": "871362719292",
3767+
"ap-northeast-1": "763104351884",
3768+
"ap-northeast-2": "763104351884",
3769+
"ap-northeast-3": "364406365360",
3770+
"ap-south-1": "763104351884",
3771+
"ap-southeast-1": "763104351884",
3772+
"ap-southeast-2": "763104351884",
3773+
"ap-southeast-3": "907027046896",
3774+
"ap-southeast-4": "457447274322",
3775+
"ca-central-1": "763104351884",
3776+
"eu-central-1": "763104351884",
3777+
"eu-north-1": "763104351884",
3778+
"eu-south-1": "692866216735",
3779+
"eu-west-1": "763104351884",
3780+
"eu-west-2": "763104351884",
3781+
"eu-west-3": "763104351884",
3782+
"me-south-1": "217643126080",
3783+
"sa-east-1": "763104351884",
3784+
"us-east-1": "763104351884",
3785+
"us-east-2": "763104351884",
3786+
"us-west-1": "763104351884",
3787+
"us-west-2": "763104351884"
3788+
},
3789+
"repository": "tensorflow-training"
37583790
}
37593791
}
37603792
}

src/sagemaker/image_uris.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,13 @@ def _validate_instance_deprecation(framework, instance_type, version):
373373
framework == "pytorch"
374374
and _get_instance_type_family(instance_type) == "p2"
375375
and Version(version) >= Version("1.13")
376+
) or (
377+
framework == "tensorflow"
378+
and _get_instance_type_family(instance_type) == "p2"
379+
and Version(version) >= Version("2.12")
376380
):
377381
raise ValueError(
378-
"P2 instances have been deprecated for sagemaker jobs with PyTorch 1.13 and above. "
382+
"P2 instances have been deprecated for sagemaker jobs starting PyTorch 1.13 and TensorFlow 2.12"
379383
"For information about supported instance types please refer to "
380384
"https://aws.amazon.com/sagemaker/pricing/"
381385
)

0 commit comments

Comments
 (0)