Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
"python-multipart>=0.0.16",
"filelock",
"psutil",
"gpuhunt==0.1.17",
"gpuhunt==0.1.18",
"argcomplete>=3.5.0",
"ignore-python>=0.2.0",
"orjson",
Expand Down
5 changes: 2 additions & 3 deletions src/dstack/_internal/core/backends/crusoe/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,17 @@
IMAGE_SXM_DOCKER = "ubuntu22.04-nvidia-sxm-docker:latest"
IMAGE_PCIE_DOCKER = "ubuntu22.04-nvidia-pcie-docker:latest"
IMAGE_ROCM = "ubuntu-rocm:latest"
IMAGE_BASE = "ubuntu22.04:latest"


def _get_image(instance_name: str, gpu_type: str) -> str:
if not gpu_type:
return IMAGE_BASE
# Check instance name for SXM -- gpu_type from gpuhunt is normalized (e.g. "A100")
# and doesn't contain "SXM", but instance names like "a100-80gb-sxm-ib.8x" do.
if "-sxm" in instance_name.lower():
return IMAGE_SXM_DOCKER
if "MI3" in gpu_type:
return IMAGE_ROCM
# Use PCIe docker image for both PCIe GPUs and CPU-only types.
# Crusoe has no CPU-specific Docker image; the base ubuntu image lacks Docker.
return IMAGE_PCIE_DOCKER


Expand Down