Skip to content

Commit de63f51

Browse files
authored
Support AWS G7e (RTXPRO6000) instances (#227)
1 parent ebd78e1 commit de63f51

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/gpuhunt/providers/aws.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
"ca-west-1",
8585
"me-south-1",
8686
}
87+
GPU_NAME_MAPPING = {
88+
"RTX PRO Server 6000": "RTXPRO6000",
89+
}
8790

8891

8992
class AWSProvider(AbstractProvider):
@@ -184,7 +187,7 @@ def fill_gpu_details(self, offers: list[RawCatalogItem]):
184187
if "GpuInfo" in i:
185188
gpu = i["GpuInfo"]["Gpus"][0]
186189
gpus[i["InstanceType"]] = (
187-
gpu["Name"],
190+
GPU_NAME_MAPPING.get(gpu["Name"], gpu["Name"]),
188191
_get_gpu_memory_gib(
189192
gpu["Name"], gpu["MemoryInfo"]["SizeInMiB"]
190193
),
@@ -379,6 +382,7 @@ def filter(cls, offers: list[RawCatalogItem]) -> list[RawCatalogItem]:
379382
"p4d.",
380383
"p4de.",
381384
"p3.",
385+
"g7e.",
382386
"g6.",
383387
"g6e.",
384388
"gr6.",

src/integrity_tests/test_aws.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def test_gpu_presented(self, data: str):
6060
"T4",
6161
"V100",
6262
"L40S",
63+
"RTXPRO6000",
6364
"L4",
6465
]
6566
assert all(f",{i}," in data for i in gpus)

0 commit comments

Comments
 (0)