On this page
mthreads-musa5.2.0
Prerequisites
- Architecture: x86_64
- Chip models: MThreads MTT S5000
- Host driver: 5.2.0-server
- Container toolkit (optional) : KUAE Cloud Native Toolkits (MT Container Toolkit) >= 2.1.0
Image contents
Built on
harbor.baai.ac.cn/flagos-base/flagos-base-mthreads-musa5.2.0:2.1.2 open_in_newPython
3.10
Major Python packages
flag_gems==5.3.4flagtree==0.6.1+mthreads3.6mkl==2024.0.0numpy==1.26.4torch==2.9.1+musa5.2.0torch_musa==2.9.1triton==3.6.0
Switch compiler
This image includes both FlagTree (default) and Triton. To switch, run compiler triton inside the container. Use compiler flagtree to switch back, or compiler to check the active compiler.
Launch
With the container toolkit (optional):
docker run --rm -it \
--runtime mthreads \
--env MTHREADS_VISIBLE_DEVICES=all \
harbor.baai.ac.cn/flagos-runtime/flagos-runtime-mthreads-musa5.2.0:2.1.2 bash
Without a toolkit — plain docker / podman:
docker run --rm -it \
--device /dev/mtgpu.0 \
--device /dev/dri \
-v /usr/bin/mthreads-gmi:/usr/bin/mthreads-gmi:ro \
harbor.baai.ac.cn/flagos-runtime/flagos-runtime-mthreads-musa5.2.0:2.1.2 bash
Verify
Inside the container, confirm the accelerator is visible:
mthreads-gmi
Last updated 15 Aug 2026, 12:51 +0800.