Skip to content

Commit 7ffa970

Browse files
knikureNamrata Madan
authored and
Namrata Madan
committed
fix: Update Graviton supported instance families (aws#3443)
1 parent 6aa85f4 commit 7ffa970

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

src/sagemaker/fw_utils.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,16 @@
144144
SMDISTRIBUTED_SUPPORTED_STRATEGIES = ["dataparallel", "modelparallel"]
145145

146146

147-
GRAVITON_ALLOWED_TARGET_INSTANCE_FAMILY = ["c6g", "t4g", "r6g", "m6g"]
147+
GRAVITON_ALLOWED_TARGET_INSTANCE_FAMILY = [
148+
"m6g",
149+
"m6gd",
150+
"c6g",
151+
"c6gd",
152+
"c6gn",
153+
"c7g",
154+
"r6g",
155+
"r6gd",
156+
]
148157

149158

150159
GRAVITON_ALLOWED_FRAMEWORKS = set(["tensorflow", "pytorch", "xgboost", "sklearn"])

tests/unit/sagemaker/image_uris/test_graviton.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,26 @@
1717

1818
import pytest
1919

20+
GRAVITON_ALLOWED_TARGET_INSTANCE_FAMILY = [
21+
"m6g",
22+
"m6gd",
23+
"c6g",
24+
"c6gd",
25+
"c6gn",
26+
"c7g",
27+
"r6g",
28+
"r6gd",
29+
]
2030
GRAVITON_ALGOS = ("tensorflow", "pytotch")
2131
GRAVITON_INSTANCE_TYPES = [
22-
"ml.c6g.4xlarge",
23-
"ml.t4g.2xlarge",
24-
"ml.r6g.2xlarge",
2532
"ml.m6g.4xlarge",
33+
"ml.m6gd.2xlarge",
34+
"ml.c6g.2xlarge",
35+
"ml.c6gd.4xlarge",
36+
"ml.c6gn.4xlarge",
37+
"ml.c7g.2xlarge",
38+
"ml.r6g.2xlarge",
39+
"ml.r6gd.4xlarge",
2640
]
2741

2842
ACCOUNTS = {

0 commit comments

Comments
 (0)