File tree Expand file tree Collapse file tree
src/dstack/_internal/core/backends/crusoe Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ dependencies = [
3232 " python-multipart>=0.0.16" ,
3333 " filelock" ,
3434 " psutil" ,
35- " gpuhunt==0.1.17" ,
35+ # TODO: Pin to gpuhunt release once crusoe-add-new-gpu-types branch is merged.
36+ " gpuhunt @ git+https://github.com/dstackai/gpuhunt.git@crusoe-add-new-gpu-types" ,
3637 " argcomplete>=3.5.0" ,
3738 " ignore-python>=0.2.0" ,
3839 " orjson" ,
@@ -54,6 +55,9 @@ build-backend = "hatchling.build"
5455[project .scripts ]
5556dstack = " dstack._internal.cli.main:main"
5657
58+ [tool .hatch .metadata ]
59+ allow-direct-references = true
60+
5761[tool .hatch .version ]
5862path = " src/dstack/version.py"
5963
Original file line number Diff line number Diff line change 9191IMAGE_SXM_DOCKER = "ubuntu22.04-nvidia-sxm-docker:latest"
9292IMAGE_PCIE_DOCKER = "ubuntu22.04-nvidia-pcie-docker:latest"
9393IMAGE_ROCM = "ubuntu-rocm:latest"
94- IMAGE_BASE = "ubuntu22.04:latest"
9594
9695
9796def _get_image (instance_name : str , gpu_type : str ) -> str :
98- if not gpu_type :
99- return IMAGE_BASE
10097 # Check instance name for SXM -- gpu_type from gpuhunt is normalized (e.g. "A100")
10198 # and doesn't contain "SXM", but instance names like "a100-80gb-sxm-ib.8x" do.
10299 if "-sxm" in instance_name .lower ():
103100 return IMAGE_SXM_DOCKER
104101 if "MI3" in gpu_type :
105102 return IMAGE_ROCM
103+ # Use PCIe docker image for both PCIe GPUs and CPU-only types.
104+ # Crusoe has no CPU-specific Docker image; the base ubuntu image lacks Docker.
106105 return IMAGE_PCIE_DOCKER
107106
108107
You can’t perform that action at this time.
0 commit comments