Open-source control plane for provisioning GPU compute and running training and inference on GPU clouds, Kubernetes, Slurm, VMs, or bare-metal clusters. Supports NVIDIA, AMD, Google TPU, and Tenstorrent accelerators.
Overview
dstack is an open-source orchestration layer for AI workloads on heterogeneous accelerators. It gives one interface for managing compute and running development, training, and inference across GPU clouds, Kubernetes clusters, Slurm clusters, VMs, and bare-metal servers. NVIDIA, AMD, Google TPU, and Tenstorrent accelerators are supported out of the box.
Work is described with a small set of configuration types written as YAML files in a repository. Fleets provision and manage clusters. Dev environments can be reached from an IDE or by agents. Tasks cover training and batch jobs on one node or many. Services expose model inference endpoints. Presets handle agent-driven inference optimization, and volumes hold persistent data. Configurations are applied with the dstack apply CLI command, a programmatic API, or AI agent skills. dstack handles provisioning, job queuing, auto-scaling, networking, volumes, run failures, out-of-capacity errors, and port-forwarding.
Compute can be brought in several ways. For clouds, you configure backends with your own credentials and dstack provisions fleets in your account. For on-prem machines with SSH access, you create SSH fleets and need no backend setup. Existing Kubernetes clusters connect through the Kubernetes backend, and existing Slurm clusters through an experimental Slurm backend. Those systems still handle scheduling inside the cluster. Gateways add HTTPS, auto-scaling, domains, and rate limits for services.
The server runs on Linux, macOS, and Windows through WSL 2. The CLI is available on Linux, macOS, and Windows. Besides the self-hosted open-source edition, the project offers dstack Factory, a multi-tenant stack for AI labs and data centers, and dstack Sky, a hosted service run by the vendor.
Key features
- Fleets for cluster provisioning across clouds, Kubernetes, and on-prem
- Tasks for single-node and multi-node training or batch jobs
- Services for scalable inference endpoints
- Dev environments accessible from IDEs or agents
- SSH fleets for bare-metal and VMs
- Kubernetes and experimental Slurm backends
- Gateways with HTTPS, auto-scaling, and rate limits
- Agent skills for AI agents to manage workloads
Use cases
- Running multi-node training across several GPU clouds
- Deploying model inference endpoints with auto-scaling
- Managing on-prem GPU servers through SSH fleets
- Unifying Kubernetes or Slurm clusters under one workload interface
- Letting AI agents provision compute and submit workloads