Skip to main content
Miles runs on AMD GPUs through ROCm. The ROCm images ship SGLang, Megatron-LM, and Miles preinstalled, with MILES_HARDWARE_PLATFORM=rocm already set. The recipes and train.py flags are the same as on NVIDIA; what changes is the image, the docker run flags, and the launcher path.

Images

The two mi35x images are built daily from main by the sgl-project/sglang nightly workflows and published to Docker Hub under rocm/sgl-dev: Each undated tag moves with every build; append -YYYYMMDD (e.g. miles-rocm10-mi35x-20260916) to pin one. To build an image yourself, docker/Dockerfile.rocm holds the recipe:

Start the container

On the host:
That drops you into a shell inside the container, with Miles at /root/miles, Megatron-LM at /root/Megatron-LM, and SGLang at /sgl-workspace/sglang. Everything from here on runs inside the container.

Verify

Confirm Miles imports and the GPUs are visible:
If either command fails, see Debugging.

Launch training

The AMD launchers live under scripts/amd/ and mirror the CUDA recipes. Download the model and data and convert the checkpoint as in the Quick Start (Steps 2 and 3), then launch:
The other recipes under scripts/amd/ launch the same way.

Next steps