Prerequisites

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

Image contents

Base image

ubuntu:24.04

System packages

Explicitly installed; the version is the one baked into this image:

  • build-essential — 12.10ubuntu1
  • ca-certificates — 20260816ubuntu0.24.04.2
  • cmake — 3.28.3
  • curl — 8.5.0
  • g++ — 13.2.0
  • gcc — 13.2.0
  • git — 2.43.0
  • libelf1
  • libpython3-dev — 3.12.3
  • make — 4.3
  • net-tools — 2.10
  • pciutils — 3.10.0
  • python3-pip — 24.0+dfsg
  • python3.11 — 3.11.18
  • python3.11-dev — 3.11.18
  • software-properties-common — 0.99.49.4
  • unzip — 6.0
  • vim — 9.1.0016

SDK components

  • CANN Toolkit 9.0.0 (aarch64)
  • CANN 910C Ops 9.0.0 (aarch64)
  • CANN NNAL 9.0.0 (aarch64)

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-base/flagos-base-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-base/flagos-base-ascend-cann9.0.0-910c:2.3.0 bash
  

Verify

Inside the container, confirm the accelerator is visible:

  npu-smi info
  

Last updated: 2026-11-19 22:33:37 · 6546efe05b6d

Changelog

2.3.0

2026-11-19 15:05:09

  • vendor.sh no longer overwrites a caller’s PYTHONPATH: it now prepends the SDK paths only when they are absent, keeping any path the container was started with (#1866).
  • Non-interactive bash loads vendor.sh through BASH_ENV, so the old absolute export dropped the caller’s entries before Python ever ran and broke imports that depended on them.

2026-10-14 05:49:52

  • Rebuilt to carry the new stack-wide tag; nothing in this layer changed.

2.2.0

2026-09-17 01:38:34

  • Rebuilt to carry the new stack-wide tag; nothing in this layer changed.

2.1.2

2026-09-10 03:59:20

  • First delivery: CANN 9.0.0 — the toolkit, the 910C (A3) ops package and NNAL — on aarch64 ubuntu:24.04.
  • Only the ops package is chip-specific: this variant takes the A3 token rather than 910b, while toolkit and NNAL are shared with the 910B line of the same CANN version.
  • python3.11 is force-installed from deadsnakes beside the distribution’s 3.12: the CANN installer writes python-version-specific artifacts the runtime imports, so the base interpreter has to equal the runtime venv’s.
  • The SDK environment is captured into /etc/profile.d/vendor.sh at build time, so nothing has to be sourced inside the container. Toolkit and NNAL set_env.sh are sourced under bash: they are bash scripts, and under dash they can take a path that calls exit and silently kill the step.
  • ATB is in that capture because the toolkit’s set_env.sh leaves ATB_HOME_PATH and the ATB library path out; without them libatb.so fails to load and the ATB operators (_npu_reshape_and_cache, _npu_rotary_embedding) crash at inference.
  • The build takes the runner’s proxy settings as build arguments — these nodes have no direct egress — and drops the apt Post-Invoke hooks, which fail there because docker 20.10.8’s seccomp profile blocks clone3.

Last updated 19 Nov 2026, 23:38 +0800. history