Skip to content

Commit c8f3d16

Browse files
[Runpod] Allow to filter offers by CUDA version #198 (#199)
1 parent 0322ebf commit c8f3d16

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/gpuhunt/providers/runpod.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ class RunpodCatalogItemProviderData(TypedDict):
2323

2424
class RunpodProvider(AbstractProvider):
2525
NAME = "runpod"
26+
# Minimum CUDA version on the host. Used to filter available offers
27+
# and should also be used when provisioning pods.
28+
MIN_CUDA_VERSION = "12.8"
2629

2730
def get(
2831
self, query_filter: Optional[QueryFilter] = None, balance_resources: bool = True
@@ -94,6 +97,7 @@ def build_query_variables() -> list[dict]:
9497
"minDisk": None,
9598
"minMemoryInGb": None,
9699
"minVcpuCount": None,
100+
"minCudaVersion": RunpodProvider.MIN_CUDA_VERSION,
97101
},
98102
}
99103
)
@@ -113,6 +117,7 @@ def build_query_variables() -> list[dict]:
113117
"minDisk": None,
114118
"minMemoryInGb": None,
115119
"minVcpuCount": None,
120+
"minCudaVersion": RunpodProvider.MIN_CUDA_VERSION,
116121
},
117122
}
118123
)

0 commit comments

Comments
 (0)