Skip to content

Commit 174b33b

Browse files
author
Dan
authored
feature: add support for TensorFlow 2.4.1 for training, inference and… (#2188)
1 parent 67e26c9 commit 174b33b

File tree

3 files changed

+67
-3
lines changed

3 files changed

+67
-3
lines changed

src/sagemaker/fw_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"local_gpu",
6060
)
6161
SM_DATAPARALLEL_SUPPORTED_FRAMEWORK_VERSIONS = {
62-
"tensorflow": ["2.3.0", "2.3.1"],
62+
"tensorflow": ["2.3.0", "2.3.1", "2.4.1"],
6363
"pytorch": ["1.6.0", "1.7.1"],
6464
}
6565
SMDISTRIBUTED_SUPPORTED_STRATEGIES = ["dataparallel", "modelparallel"]

src/sagemaker/image_uri_config/tensorflow.json

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@
242242
"2.0": "2.0.1",
243243
"2.1": "2.1.1",
244244
"2.2": "2.2.0",
245-
"2.3": "2.3.1"
245+
"2.3": "2.3.1",
246+
"2.4": "2.4.1"
246247
},
247248
"versions": {
248249
"1.10.0": {
@@ -903,6 +904,35 @@
903904
"us-west-2": "763104351884"
904905
},
905906
"repository": "tensorflow-inference"
907+
},
908+
"2.4.1": {
909+
"registries": {
910+
"af-south-1": "626614931356",
911+
"ap-east-1": "871362719292",
912+
"ap-northeast-1": "763104351884",
913+
"ap-northeast-2": "763104351884",
914+
"ap-south-1": "763104351884",
915+
"ap-southeast-1": "763104351884",
916+
"ap-southeast-2": "763104351884",
917+
"ca-central-1": "763104351884",
918+
"cn-north-1": "727897471807",
919+
"cn-northwest-1": "727897471807",
920+
"eu-central-1": "763104351884",
921+
"eu-north-1": "763104351884",
922+
"eu-south-1": "692866216735",
923+
"eu-west-1": "763104351884",
924+
"eu-west-2": "763104351884",
925+
"eu-west-3": "763104351884",
926+
"me-south-1": "217643126080",
927+
"sa-east-1": "763104351884",
928+
"us-east-1": "763104351884",
929+
"us-east-2": "763104351884",
930+
"us-gov-west-1": "442386744353",
931+
"us-iso-east-1": "886529160074",
932+
"us-west-1": "763104351884",
933+
"us-west-2": "763104351884"
934+
},
935+
"repository": "tensorflow-inference"
906936
}
907937
}
908938
},
@@ -927,7 +957,8 @@
927957
"2.0": "2.0.1",
928958
"2.1": "2.1.1",
929959
"2.2": "2.2.0",
930-
"2.3": "2.3.1"
960+
"2.3": "2.3.1",
961+
"2.4": "2.4.1"
931962
},
932963
"versions": {
933964
"1.10.0": {
@@ -1675,6 +1706,38 @@
16751706
"us-west-2": "763104351884"
16761707
},
16771708
"repository": "tensorflow-training"
1709+
},
1710+
"2.4.1": {
1711+
"py_versions": [
1712+
"py37"
1713+
],
1714+
"registries": {
1715+
"af-south-1": "626614931356",
1716+
"ap-east-1": "871362719292",
1717+
"ap-northeast-1": "763104351884",
1718+
"ap-northeast-2": "763104351884",
1719+
"ap-south-1": "763104351884",
1720+
"ap-southeast-1": "763104351884",
1721+
"ap-southeast-2": "763104351884",
1722+
"ca-central-1": "763104351884",
1723+
"cn-north-1": "727897471807",
1724+
"cn-northwest-1": "727897471807",
1725+
"eu-central-1": "763104351884",
1726+
"eu-north-1": "763104351884",
1727+
"eu-south-1": "692866216735",
1728+
"eu-west-1": "763104351884",
1729+
"eu-west-2": "763104351884",
1730+
"eu-west-3": "763104351884",
1731+
"me-south-1": "217643126080",
1732+
"sa-east-1": "763104351884",
1733+
"us-east-1": "763104351884",
1734+
"us-east-2": "763104351884",
1735+
"us-gov-west-1": "442386744353",
1736+
"us-iso-east-1": "886529160074",
1737+
"us-west-1": "763104351884",
1738+
"us-west-2": "763104351884"
1739+
},
1740+
"repository": "tensorflow-training"
16781741
}
16791742
}
16801743
}

tests/unit/test_fw_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ def test_validate_smdataparallel_args_not_raises():
631631
good_args = [
632632
(None, None, None, None, smdataparallel_disabled),
633633
("ml.p3.16xlarge", "tensorflow", "2.3.1", "py3", smdataparallel_enabled),
634+
("ml.p3.16xlarge", "tensorflow", "2.4.1", "py3", smdataparallel_enabled),
634635
("ml.p3.16xlarge", "pytorch", "1.6.0", "py3", smdataparallel_enabled),
635636
("ml.p3.16xlarge", "pytorch", "1.7.1", "py3", smdataparallel_enabled),
636637
]

0 commit comments

Comments
 (0)