๐ณ Docker Images
๐ฆ Image sources
The ms-swift images are built from the docker directory of the ModelScope repository. build_image.py assembles the tags, and the Dockerfiles are split by platform: Dockerfile.ubuntu / Dockerfile.ubuntu_base are the base images for NVIDIA GPU, and Dockerfile.amd, ascend/, and Metax/ correspond to AMD, Ascend, and MetaX respectively. The images come with CUDA, PyTorch, vLLM, ModelScope, and ms-swift preinstalled, and the tag carries the versions of these components in order.
We provide GPU images that are ready to use. The addresses of the same image in three regions are below. Choose the registry closest to your runtime environment:
# swift5.0.0
modelscope-registry.cn-hangzhou.cr.aliyuncs.com/modelscope-repo/modelscope:ubuntu22.04-cuda13.0.3-py312-torch2.14.0-vllm0.33.0-modelscope1.40.3-swift5.0.0
modelscope-registry.cn-beijing.cr.aliyuncs.com/modelscope-repo/modelscope:ubuntu22.04-cuda13.0.3-py312-torch2.14.0-vllm0.33.0-modelscope1.40.3-swift5.0.0
modelscope-registry.us-west-1.cr.aliyuncs.com/modelscope-repo/modelscope:ubuntu22.04-cuda13.0.3-py312-torch2.14.0-vllm0.33.0-modelscope1.40.3-swift5.0.0The image already contains ms-swift and its dependencies. Run the SFT or GRPO examples in Quick start directly. Install the sampler, the math reward, and other task dependencies according to the corresponding example.
๐ฆ Main packages
| Software | Version |
|---|---|
| Ubuntu | 22.04 |
| CUDA | >=13.0 |
| Python | >=3.12 |
| torch | >=2.6 |
| transformers | >=5.8 |
| mcore-bridge | >=1.7 |
| megatron-core | >=0.18 |
| transformer-engine | >=2.16 |
| flash-attn | >=2.8 |
| flash-linear-attention | >=0.5 |
| vllm | >=0.20 |
| modelscope | >=1.40 |
| ms-swift | >=5.0 |
| twinkle-kit / twinkle-server / twinkle-client | >=1.0 |
| ray | >=2.55 |
Platforms such as AMD and NPU differ in device mapping and runtime. Prepare the environment following the platform notes in Hardware support.