Prerequisites

  • Architecture: x86_64
  • Chip models: Kunlunxin P800
  • Host driver: 5.37.1
  • Container toolkit (optional) : xpu_container >= 1.0.13

Image contents

Built on

harbor.baai.ac.cn/flagos-base/flagos-base-kunlunxin-xre5.37.1:2.1.2 open_in_new

Python

3.10

Major Python packages

  • apex==0.1
  • benchflow==1.0.0
  • colorama==0.4.6
  • flag_gems==5.3.4
  • flagtree==0.6.1+xpu3.6
  • flash_attn==2.4.2+7e2dd4d
  • hydrax==0.1.0
  • hyperparameter==0.5.6
  • numpy==2.2.6
  • psutil==6.1.0
  • regex==2026.4.4
  • torch==2.9.0+cu129
  • torch_plugin==0.1.0
  • torch_xray==2.0.4
  • torchaudio==2.9.0+cu129
  • torchvision==0.24.0+cu129
  • triton==3.0.0+a48aedef
  • xformers==0.0.29+1e7a8ec.d20260114
  • xmlir==1.0.0.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 \
  --runtime xpu \
  -e CXPU_VISIBLE_DEVICES=0 \
  harbor.baai.ac.cn/flagos-runtime/flagos-runtime-kunlunxin-xre5.37.1:2.1.2 bash
  

Without a toolkit — plain docker / podman:

  docker run --rm -it \
  --device /dev/xpu0 \
  --device /dev/xpuctrl \
  harbor.baai.ac.cn/flagos-runtime/flagos-runtime-kunlunxin-xre5.37.1:2.1.2 bash
  

Verify

Inside the container, confirm the accelerator is visible:

  xpu-smi
  

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