Prerequisites

  • Architecture: aarch64
  • Chip models: Ascend 910C
  • 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-910c:2.3.0 open_in_new

Python

3.11

Major Python packages

  • cann-shmem==1.6.0
  • flag_gems==5.4.0
  • flagcx==0.14.0+cann9.0.0.910c
  • flagtree==0.7.0+ascend3.5
  • numpy==1.26.4
  • torch-npu==2.10.0
  • torch==2.10.0+cpu
  • torchaudio==2.10.0+cpu
  • torchvision==0.25.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.

Choosing a FlagTree version

To use a FlagTree version other than the one above, pass -e FLAGTREE_VERSION=<version> to docker run, or run compiler flagtree <version> in a running container: the wheel is installed into /opt/flagtree before the application starts, so no rebuild is needed. Write the full 0.7.0+<backend>3.6 form to pin one build.

Choosing a FlagGems version

Pass -e FLAGGEMS_VERSION=<version> to docker run to install that FlagGems release before the application starts — no rebuild. -e FLAGGEMS_VERSION=latest takes the newest build on the daily line instead, which leads the next release; it is the newest on that line, not the newest compared to what the image already carries. The wheel is about 13 MB and is fetched once per container. An in-container install keeps the rest of the stack as built, and a request that cannot be met stops the container rather than starting on a different FlagGems.

Launch

With the container toolkit (optional):

  docker run --rm -it \
  --privileged \
  --shm-size=1g \
  -e ASCEND_VISIBLE_DEVICES=0,1 \
  harbor.baai.ac.cn/flagos-runtime/flagos-runtime-ascend-cann9.0.0-910c:2.3.0 bash
  

Without a toolkit — plain docker / podman:

  docker run --rm -it \
  --shm-size=1g \
  --device /dev/davinci0 \
  --device /dev/davinci1 \
  --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-910c:2.3.0 bash
  

Verify

Inside the container, confirm the accelerator is visible:

  npu-smi info
  

Changelog

2.3.0

2026-11-20 17:38:05

  • Installs the requirements CANN leaves undeclared on two paths: tbe imports decorator and ml-dtypes at module load, and ms-service-profiler’s vllm plugin imports the otlp exporters.

2026-11-20 00:30:34

  • Rebuilt on the current base image, which no longer lets vendor.sh overwrite a caller’s PYTHONPATH (#1882).

2026-11-10 09:01:56

Rebuild to ship the current in-image helper script: the compiler script’s pip installs now honour a pip cache mounted at PIP_CACHE_DIR instead of re-downloading the wheel every time (#1709). The FlagTree version request also accepts an explicit --index-url, which selects the one index the wheel is fetched from (#1613). The venv PATH prefix is re-asserted after a vendor SDK env script overwrites it (#1486). Nothing else about the image changes.

2026-10-25 09:46:23

This image gains the container-start version request: -e FLAGTREE_VERSION=<ver|latest> and -e FLAGGEMS_VERSION=<ver|latest> override the versions baked in, resolved from the image’s own indexes before the application starts. latest takes the newest wheel on the daily line. A request that cannot be honoured stops the container with a non-zero exit rather than letting it run on a different version. The image bakes the files those requests read, among them the constraints file that holds an in-container FlagGems install to this image’s own pins. On the vendor bases whose SDK env assigns PATH absolutely (ascend, hygon), the profile plumbing also re-asserts the venv prefix after that assignment: pip was otherwise resolving to the system interpreter, or to none, before the request could run.

2026-10-23 03:43:12

flagcx 0.14.0 becomes a runtime dependency on this backend: configs.yaml deps: now pins flagcx==0.14.0+cann9.0.0.910c, so the DEPS install pulls it from the vendor index and FlagTree resolves libflagcx.so to the package’s copy instead of the one triton/_C bundles. Nothing else about the image changes.

2026-10-17 00:23:36

This image first carried the FlagTree version override (build-infra #1342, merged 2026-10-14): zz-flagos.sh now honours a FlagTree version requested at container start (docker run -e FLAGTREE_VERSION=<ver>), and compiler flagtree <ver> does the same in a running container. The requested wheel is installed into /opt/flagtree in place – fetched from this image’s own vendor index (/etc/flagos/vendor-index, written at build time), with the shared lane as a sequential second attempt – so a FlagTree bump no longer forces a rebuild of this image and of every app image above it. A failed install warns and leaves the baked compiler active. Recorded late: this push is older than the entry above it, and its date is the push that first carried the override.

Last updated 21 Nov 2026, 12:19 +0800. history