Skip to main content
There are three ways to install Miles. Docker is recommended because Miles pins patched versions of SGLang, Megatron-LM, and a few CUDA kernels.
The image ships with:
  • PyTorch (matching the container’s CUDA / ROCm version)
  • Megatron-LM, SGLang, FlashAttention-3, DeepGEMM, Apex
  • Ray, uv, and Miles installed editable at /root/miles
See Platforms for platform-specific notes.

Method 2: From source

Clone and install in an existing environment.
Patched dependencies. Miles pins patched versions of SGLang and Megatron-LM. Installing them yourself at the wrong commit is the most common source of bug reports — use Docker if you can.

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:
If either command fails, see Debugging or the FAQ.

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