Enhance GPU flavor scanning and update documentation
- Introduced SCAN_POOLS configuration to specify pools for GPU flavor scanning. - Updated the `flavors` command to scan specified pools and list available GPU flavors based on `FLAVOR_PREFERENCE`. - Revised CLI documentation to reflect changes in the `flavors` command behavior. - Enhanced decision documentation to include details about GPU pool scanning. - Updated setup instructions to guide users on selecting appropriate GPU pools.
This commit is contained in:
@@ -52,7 +52,18 @@ def looks_like_gpu(flavor: Any) -> bool:
|
||||
extra = extra_specs(flavor)
|
||||
blob = " ".join(f"{k}={v}" for k, v in extra.items()).lower()
|
||||
hay = f"{name} {blob}"
|
||||
needles = ("gpu", "4090", "a5000", "a100", "a6000", "l40", "h100")
|
||||
needles = (
|
||||
"gpu",
|
||||
"4090",
|
||||
"a5000",
|
||||
"a100",
|
||||
"a6000",
|
||||
"l40",
|
||||
"h100",
|
||||
"h200",
|
||||
"rtx",
|
||||
"tesla",
|
||||
)
|
||||
return any(n in hay for n in needles)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user