Prerequisites

  • Architecture: aarch64
  • Chip models: Ascend 910B
  • Host driver: 26.0.rc1
  • Container toolkit (optional) : Ascend-docker-runtime >= 6.0.RC3

Image contents

Built on

harbor.baai.ac.cn/flagos-base/flagos-base-ascend-cann9.0.0:2.1.2 open_in_new

Python

3.11

Major Python packages

  • flag_gems==5.3.4
  • flagtree==0.6.1+ascend3.5
  • numpy==2.3.5
  • torch-npu==2.10.0
  • torch==2.10.0+cpu
  • triton==3.5.0 (+ triton_ascend==3.2.1)

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 \
  -e ASCEND_VISIBLE_DEVICES=0 \
  harbor.baai.ac.cn/flagos-runtime/flagos-runtime-ascend-cann9.0.0:2.1.2 bash
  

Without a toolkit — plain docker / podman:

  docker run --rm -it \
  --device /dev/davinci0 \
  --device /dev/davinci_manager \
  --device /dev/devmm_svm \
  --device /dev/hisi_hdc \
  -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \
  -v /usr/local/dcmi:/usr/local/dcmi \
  -v /usr/local/sbin/npu-smi:/usr/local/sbin/npu-smi \
  harbor.baai.ac.cn/flagos-runtime/flagos-runtime-ascend-cann9.0.0:2.1.2 bash
  

Verify

Inside the container, confirm the accelerator is visible:

  npu-smi info
  

Last updated 15 Aug 2026, 12:51 +0800. history