Method 1: Docker (recommended)
- NVIDIA
- AMD MI300X / MI350X
- PyTorch (matching the container’s CUDA / ROCm version)
- Megatron-LM, SGLang, FlashAttention-3, DeepGEMM, Apex
- Ray, uv, and Miles installed editable at
/root/miles
Method 2: From source
Clone and install in an existing environment.Method 3: Update an existing container
If you already run a Miles image and want the latest code:Verify
Confirm Miles imports and the GPUs are visible:Hardware requirements
For multi-node training you also need a high-bandwidth interconnect — InfiniBand, RoCEv2,
or Slingshot — and 200+ GB/s per node. Single-node jobs run fine over NVLink only.
Next steps
- Quick Start — run your first training job.
- Core concepts — the mental model behind Miles.
- Training backends — Megatron vs FSDP.

