2026-10-26 07:26:29 UTC
6.7 GB
/usr/local/Ascend/cann-9.1.0
ASCEND_HOME_PATH/usr/local/Ascend/cann-9.1.0
ASCEND_OPP_PATH/usr/local/Ascend/cann-9.1.0/opp
ASCEND_TOOLKIT_HOME/usr/local/Ascend/cann-9.1.0
ASCEND_TOOLKIT_LATEST_HOME/usr/local/Ascend/ascend-toolkit/latest
ATB_COMPARE_TILING_EVERY_KERNEL0
ATB_CXX_ABI1
ATB_HOME_PATH/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1
ATB_MATMUL_SHUFFLE_K_ENABLE1
ATB_OPSRUNNER_KERNEL_CACHE_GLOABL_COUNT5
ATB_OPSRUNNER_KERNEL_CACHE_LOCAL_COUNT1
ATB_SHARE_MEMORY_NAME_SUFFIX ATB_STREAM_SYNC_EVERY_KERNEL_ENABLE0
ATB_STREAM_SYNC_EVERY_OPERATION_ENABLE0
ATB_STREAM_SYNC_EVERY_RUNNER_ENABLE0
ATB_WORKSPACE_MEM_ALLOC_ALG_TYPE1
CANN_ARCHSa3
CANN_HOME/usr/local/Ascend
CANN_VERSION9.1.0
CMAKE_PREFIX_PATH/usr/local/Ascend/cann-9.1.0/toolkit/tools/tikicpulib/lib/cmake:/usr/local/Ascend/cann-9.1.0/lib64/cmake
CPU_AFFINITY_CONF1
DEBIAN_FRONTENDnoninteractive
LANGen_US.UTF-8
LANGUAGEen_US:en
LCCL_DETERMINISTIC0
LCCL_PARALLEL0
LC_ALLen_US.UTF-8
LD_LIBRARY_PATH/usr/local/Ascend/cann-9.1.0/lib64:/usr/local/Ascend/cann-9.1.0/lib:/usr/local/Ascend/cann-9.1.0/x86_64-linux/devlib/device:/usr/local/Ascend/driver/lib64:/usr/local/lib:/usr/local/Ascend/cann-9.1.0/lib64:/usr/local/Ascend/cann-9.1.0/lib64/plugin/opskernel:/usr/local/Ascend/cann-9.1.0/lib64/plugin/nnengine:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64/common:/usr/local/Ascend/driver/lib64/driver:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
PATH/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/bin:/usr/local/Ascend/ascend-toolkit/latest/bin:/usr/local/Ascend/ascend-toolkit/latest/compiler/ccec_compiler/bin:/usr/local/Ascend/ascend-toolkit/latest/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/show_kernel_debug_data:/usr/local/Ascend/cann-9.1.0/tools/msobjdump:/usr/local/Ascend/cann-9.1.0/bin:/usr/local/Ascend/cann-9.1.0/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/profiler/bin:/usr/local/Ascend/cann-9.1.0/tools/ascend_system_advisor/asys:/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PIP_DISABLE_PIP_VERSION_CHECK1
PIP_NO_CACHE_DIR1
PIP_ROOT_USER_ACTIONignore
PYTHONPATH/usr/local/Ascend/ascend-toolkit/latest/python/site-packages:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe:/usr/local/Ascend/cann-9.1.0/python/site-packages:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe:
PYTHON_VERSION3.12
PYTORCH_NPU_ALLOC_CONFexpandable_segments:True
SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN1
SGLANG_MOE_PADDING1
SGLANG_SET_CPU_AFFINITY1
SGLANG_TORCH_VERSION2.10.0
SGLANG_VERSION0.5.22
TASK_QUEUE_ENABLE1
TOOLCHAIN_HOME/usr/local/Ascend/cann-9.1.0/toolkit
UV_BREAK_SYSTEM_PACKAGES1
UV_HTTP_TIMEOUT500
UV_INDEX_STRATEGYunsafe-best-match
UV_NO_CACHE1
UV_PRERELEASEallow
UV_SKIP_WHEEL_FILENAME_CHECK1
UV_SYSTEM_PYTHON1
[#000] sha256:d6834b4a794c03efa2c998853e64969fa8851b11b2ade63292268872a37759d0 - 0.41% (28.4 MB)
[#001] sha256:32daf7e1093b514a481439c08df7fbf73d416133582bdffead858a25f10eb096 - 2.18% (149 MB)
[#002] sha256:8c89561ae23a3798f353567886364c62a7ffa39db1a6e34f27d6a6e15dbedb5c - 2.56% (175 MB)
[#003] sha256:9666958a503f37a7fea3e052f9efb581e06a731628294cc5711a53488362f14e - 59.26% (3.97 GB)
[#004] sha256:94b78dee7b07b3b039a30910e980111d123369b9f35f22b833ac2555fa56e875 - 0.0% (215 Bytes)
[#005] sha256:b2cd3df7f148efc9858a59c4dec8df83adf5fc0f5b674ac6929be3ded88e839a - 0.0% (1.85 KB)
[#006] sha256:1e21cfdc917cb176e34c4f879dfd4b91d3b8d1498a33ecc33da457235c52d83c - 0.0% (134 Bytes)
[#007] sha256:4687c92acdc38ab8b7ed6fde9e644902a5bf03dc9fd08130357e2543bd5d00ba - 0.0% (99 Bytes)
[#008] sha256:6f86476ace83b0c3605690ed819e2e6325ee4274ae65a3d0e3ec2acab2e6ebd8 - 0.0% (216 Bytes)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:10a3505df7b0bc9bb7071a03cb71b0d03439838baaceaa4991912939022b6c36 - 4.56% (312 MB)
[#011] sha256:9336a2de2a8c57827446fd13118f82e84f319aa281ae6edb5d7af306dd4e62f5 - 0.25% (17.4 MB)
[#012] sha256:e1eedb218f4d2a0aaa8b93b0c83ebf40b2518bfa8d6175241afbdef2b4e765d3 - 0.3% (20.5 MB)
[#013] sha256:2101523dd3c2b9947228f56d3dd0de7b6d74bff13450ef3fe22f103c44682068 - 0.55% (38 MB)
[#014] sha256:e83669d376c1770c67dbedd5605679a0a7e0ae59bb3bea78f7bd258d610e4e1c - 3.7% (254 MB)
[#015] sha256:95d44a61d1be0a92eb317396c438e32e5a0952cc77d2e7c22c64f69dcda799d2 - 3.95% (271 MB)
[#016] sha256:bda37640b3f273ff01efd3a8d6efb3652327f6fdde637526548d02da336f8d2e - 6.23% (427 MB)
[#017] sha256:8a2145b9c594e8f32e0c79fd5ef3170fbbeb7f6bfdab3c9e03e01c8bf3ec131a - 10.83% (743 MB)
[#018] sha256:c2ad06eb76122e1b754dc074c4f47655a99d7d11778d884d79e75dbf0ecb7d3c - 0.91% (62.5 MB)
[#019] sha256:0429c6f2db5bf6f51ec2f50b547afc0360d2d0533bdb81e302082a0c120049ee - 0.08% (5.28 MB)
[#020] sha256:e94d5e7f980abd5878e79b1914ccc033150e6a6ebbae86c81510cbe6b61216ca - 1.36% (93.2 MB)
[#021] sha256:8705021e8e4447ac581092c19972e789d0fe0303ffe0ca13c8220b50a832b783 - 1.08% (74.4 MB)
[#022] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#023] sha256:d465f12c78b28d71c78e7cd3a96d8569754f0a9a90dc3ec0cc6b86eebd145d0f - 0.24% (16.5 MB)
[#024] sha256:2e3035d60066e0ffd781caad23f954b2e0d9c48db9e6ae257b68f8aec66a49b7 - 1.54% (105 MB)
[#025] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
/bin/sh -c #(nop) ARG RELEASE
2026-06-29 11:07:30 UTC/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
2026-06-29 11:07:30 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.version=22.04
2026-06-29 11:07:32 UTC/bin/sh -c #(nop) ADD file:c5143b228eb55f19ed4d3b653ad68ec7afe54ded0247e090ce3afb9e5484adfb in /
2026-06-29 11:07:32 UTC/bin/sh -c #(nop) CMD ["/bin/bash"]
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/python3.12.13/lib:
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ASCEND_TOOLKIT_HOME=/usr/local/Ascend/cann-9.1.0
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ASCEND_TOOLKIT_LATEST_HOME=/usr/local/Ascend/ascend-toolkit/latest
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV PYTHONPATH=/usr/local/Ascend/cann-9.1.0/python/site-packages:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe:
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV PYTHONPATH=/usr/local/Ascend/ascend-toolkit/latest/python/site-packages:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe:/usr/local/Ascend/cann-9.1.0/python/site-packages:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe:
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/Ascend/cann-9.1.0/bin:/usr/local/Ascend/cann-9.1.0/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/profiler/bin:/usr/local/Ascend/cann-9.1.0/tools/ascend_system_advisor/asys:/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/Ascend/cann-9.1.0/tools/show_kernel_debug_data:/usr/local/Ascend/cann-9.1.0/tools/msobjdump:/usr/local/Ascend/cann-9.1.0/bin:/usr/local/Ascend/cann-9.1.0/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/profiler/bin:/usr/local/Ascend/cann-9.1.0/tools/ascend_system_advisor/asys:/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/Ascend/ascend-toolkit/latest/bin:/usr/local/Ascend/ascend-toolkit/latest/compiler/ccec_compiler/bin:/usr/local/Ascend/ascend-toolkit/latest/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/show_kernel_debug_data:/usr/local/Ascend/cann-9.1.0/tools/msobjdump:/usr/local/Ascend/cann-9.1.0/bin:/usr/local/Ascend/cann-9.1.0/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/profiler/bin:/usr/local/Ascend/cann-9.1.0/tools/ascend_system_advisor/asys:/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ASCEND_AICPU_PATH=/usr/local/Ascend/cann-9.1.0
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ASCEND_OPP_PATH=/usr/local/Ascend/cann-9.1.0/opp
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV TOOLCHAIN_HOME=/usr/local/Ascend/cann-9.1.0/toolkit
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ASCEND_HOME_PATH=/usr/local/Ascend/cann-9.1.0
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV CMAKE_PREFIX_PATH=/usr/local/Ascend/cann-9.1.0/toolkit/tools/tikicpulib/lib/cmake:/usr/local/Ascend/cann-9.1.0/lib64/cmake
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ATB_HOME_PATH=/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64/common:/usr/local/Ascend/driver/lib64/driver:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/cann-9.1.0/lib64:/usr/local/Ascend/cann-9.1.0/lib64/plugin/opskernel:/usr/local/Ascend/cann-9.1.0/lib64/plugin/nnengine:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64/common:/usr/local/Ascend/driver/lib64/driver:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/bin:/usr/local/Ascend/ascend-toolkit/latest/bin:/usr/local/Ascend/ascend-toolkit/latest/compiler/ccec_compiler/bin:/usr/local/Ascend/ascend-toolkit/latest/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/show_kernel_debug_data:/usr/local/Ascend/cann-9.1.0/tools/msobjdump:/usr/local/Ascend/cann-9.1.0/bin:/usr/local/Ascend/cann-9.1.0/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/profiler/bin:/usr/local/Ascend/cann-9.1.0/tools/ascend_system_advisor/asys:/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ATB_STREAM_SYNC_EVERY_KERNEL_ENABLE=0
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ATB_STREAM_SYNC_EVERY_RUNNER_ENABLE=0
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ATB_STREAM_SYNC_EVERY_OPERATION_ENABLE=0
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ATB_OPSRUNNER_KERNEL_CACHE_LOCAL_COUNT=1
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ATB_OPSRUNNER_KERNEL_CACHE_GLOABL_COUNT=5
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ATB_WORKSPACE_MEM_ALLOC_ALG_TYPE=1
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ATB_COMPARE_TILING_EVERY_KERNEL=0
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ATB_SHARE_MEMORY_NAME_SUFFIX=
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ATB_MATMUL_SHUFFLE_K_ENABLE=1
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV LCCL_DETERMINISTIC=0
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV LCCL_PARALLEL=0
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)ENV ATB_CXX_ABI=1
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)SHELL [/bin/bash -c]
2026-08-03 02:38:40 UTC (buildkit.dockerfile.v0)RUN /bin/bash -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y apt-transport-https ca-certificates bash libc6 libsqlite3-dev gcc g++ make cmake git vim wget jq curl build-essential libnuma-dev && apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf /var/tmp/* && rm -rf /tmp/* # buildkit
2026-08-03 02:56:48 UTC (buildkit.dockerfile.v0)COPY /usr/local/python3.12.13 /usr/local/python3.12.13 # buildkit
2026-08-03 02:58:59 UTC (buildkit.dockerfile.v0)COPY /usr/local/Ascend /usr/local/Ascend # buildkit
2026-08-03 02:58:59 UTC (buildkit.dockerfile.v0)COPY /etc/Ascend /etc/Ascend # buildkit
2026-08-03 02:58:59 UTC (buildkit.dockerfile.v0)RUN /bin/bash -c CANN_TOOLKIT_ENV_FILE="/usr/local/Ascend/ascend-toolkit/set_env.sh" && CANN_BISHENG_ENV_FILE="/usr/local/Ascend/cann-9.1.0/share/info/ascendnpu-ir/bin/set_env.sh" && CANN_NNAL_ENV_FILE="/usr/local/Ascend/nnal/atb/set_env.sh --cxx_abi=${ATB_CXX_ABI:-1}" && echo "source ${CANN_TOOLKIT_ENV_FILE}" >> /etc/profile && echo "source ${CANN_TOOLKIT_ENV_FILE}" >> ~/.bashrc && echo "source ${CANN_BISHENG_ENV_FILE}" >> /etc/profile && echo "source ${CANN_BISHENG_ENV_FILE}" >> ~/.bashrc && echo "source ${CANN_NNAL_ENV_FILE}" >> /etc/profile && echo "source ${CANN_NNAL_ENV_FILE}" >> ~/.bashrc # buildkit
2026-08-03 02:58:59 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/bin/bash" "-c" " source /usr/local/Ascend/ascend-toolkit/set_env.sh && source /usr/local/Ascend/cann-9.1.0/share/info/ascendnpu-ir/bin/set_env.sh && source /usr/local/Ascend/nnal/atb/set_env.sh --cxx_abi=${ATB_CXX_ABI:-1}&& exec \"$@\"" "--"]
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=amd64
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG CANN_VERSION=9.1.0
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG DEVICE_TYPE=a3
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG arch
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG PIP_INDEX_URL=https://pypi.org/simple/
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG APTMIRROR=
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG PYTORCH_VERSION=2.10.0
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG TORCHVISION_VERSION=0.25.0
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG TORCHAUDIO_VERSION=2.10.0
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG TORCH_NPU_VERSION=2.10.0.post6
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG SGLANG_TAG=v0.5.22
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG SGLANG_KERNEL_NPU_TAG=2026.9.0.post9
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG PIP_INSTALL=python3 -m pip install --no-cache-dir
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG DEVICE_TYPE=a3
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG MODELSCOPE_VERSION=
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG EVALSCOPE_VERSION=
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG MF_VERSION=1.2.1
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG ZBAL_VERSION_950=1.2.21004.post1
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)ARG ZBAL_VERSION_A3=1.1.3
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c touch /etc/environment_new # buildkit
2026-10-15 23:43:50 UTC (buildkit.dockerfile.v0)WORKDIR /workspace
2026-10-15 23:43:50 UTC (buildkit.dockerfile.v0)ENV DEBIAN_FRONTEND=noninteractive
2026-10-15 23:43:53 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c pip config set global.index-url $PIP_INDEX_URL # buildkit
2026-10-15 23:43:53 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c if [ -n "$APTMIRROR" ];then sed -i "s|.*.ubuntu.com|$APTMIRROR|g" /etc/apt/sources.list ;fi # buildkit
2026-10-15 23:47:35 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c apt-get update -y && apt upgrade -y && apt-get install -y unzip build-essential cmake vim wget curl net-tools zlib1g-dev lld clang locales ccache openssl libssl-dev pkg-config libgl1-mesa-glx libgl1-mesa-dri ca-certificates && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && update-ca-certificates && locale-gen en_US.UTF-8 # buildkit
2026-10-15 23:47:35 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.UTF-8
2026-10-15 23:47:35 UTC (buildkit.dockerfile.v0)ENV LANGUAGE=en_US:en
2026-10-15 23:47:35 UTC (buildkit.dockerfile.v0)ENV LC_ALL=en_US.UTF-8
2026-10-15 23:48:00 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c set -eux; case "$DEVICE_TYPE" in 950) MF_SOC_VERSION="A5" ;; a3) MF_SOC_VERSION="A3" ;; *) echo "Unsupported DEVICE_TYPE for mfcli kernel install: $DEVICE_TYPE" >&2; exit 1 ;; esac; ${PIP_INSTALL} memfabric-hybrid==${MF_VERSION}; mfcli kernel install --soc-version "$MF_SOC_VERSION"; ${PIP_INSTALL} memcache-hybrid==${MF_VERSION} # buildkit
2026-10-15 23:48:13 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c if [ "$DEVICE_TYPE" = "950" ]; then ZBAL_PKG="memfabric-zbal==${ZBAL_VERSION_950}"; else ZBAL_PKG="memfabric-zbal==${ZBAL_VERSION_A3}"; fi; ${PIP_INSTALL} "$ZBAL_PKG" -i https://pypi.org/simple/ # buildkit
2026-10-15 23:49:49 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c ${PIP_INSTALL} sglang-router # buildkit
2026-10-15 23:55:40 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c . /etc/environment_new && (${PIP_INSTALL} torch==${PYTORCH_VERSION} torchvision==${TORCHVISION_VERSION} torchaudio==${TORCHAUDIO_VERSION} --index-url https://download.pytorch.org/whl/cpu) && (${PIP_INSTALL} torch-npu==${TORCH_NPU_VERSION} --extra-index-url ${TORCH_NPU_INDEX_URL}) # buildkit
2026-10-16 00:12:28 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c . /etc/environment_new && MS_PKG="modelscope" && ES_PKG="evalscope" && if [ -n "${MODELSCOPE_VERSION}" ]; then MS_PKG="modelscope==${MODELSCOPE_VERSION}"; fi && if [ -n "${EVALSCOPE_VERSION}" ]; then ES_PKG="evalscope==${EVALSCOPE_VERSION}"; fi && ${PIP_INSTALL} "${MS_PKG}" "${ES_PKG}" # buildkit
2026-10-16 00:16:42 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c . /etc/environment_new && ${PIP_INSTALL} pybind11 && if [ "$TARGETARCH" = "arm64" ]; then ${PIP_INSTALL} "https://sglang-npu.obs.cn-southwest-2.myhuaweicloud.com:443/Triton-ascend/3.2.2/triton_ascend-3.2.2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl?AccessKeyId=HPUAAPJN7IAXFCS2GDSQ&Expires=1806290330&Signature=eRq3VKjwgP/tTkObtsho%2BzIsmJM%3D"; elif [ "$TARGETARCH" = "amd64" ]; then ${PIP_INSTALL} https://github.com/triton-lang/triton-ascend/releases/download/v3.2.2/triton_ascend-3.2.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; else echo "Unsupported architecture: $TARGETARCH"; exit 1; fi # buildkit
2026-10-16 00:31:02 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c git clone https://github.com/sgl-project/sglang --branch ${SGLANG_TAG} /sgl-workspace/sglang && cd /sgl-workspace/sglang/python && rm -rf pyproject.toml && mv pyproject_npu.toml pyproject.toml && ${PIP_INSTALL} -v -e .[all_npu] # buildkit
2026-10-16 00:31:02 UTC (buildkit.dockerfile.v0)ENV ASCEND_HOME_PATH=/usr/local/Ascend/cann-9.1.0
2026-10-16 00:31:02 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/cann-9.1.0/lib64:/usr/local/Ascend/cann-9.1.0/lib:/usr/local/Ascend/cann-9.1.0/x86_64-linux/devlib/device:/usr/local/Ascend/driver/lib64:/usr/local/lib:/usr/local/Ascend/cann-9.1.0/lib64:/usr/local/Ascend/cann-9.1.0/lib64/plugin/opskernel:/usr/local/Ascend/cann-9.1.0/lib64/plugin/nnengine:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64/common:/usr/local/Ascend/driver/lib64/driver:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-10-16 00:34:27 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c mkdir cann-custom-ops && cd cann-custom-ops && source /usr/local/Ascend/cann-${CANN_VERSION}/set_env.sh && wget https://github.com/sgl-project/sgl-kernel-npu/releases/download/${SGLANG_KERNEL_NPU_TAG}/custom-ops-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && wget https://github.com/sgl-project/sgl-kernel-npu/releases/download/${SGLANG_KERNEL_NPU_TAG}/ops-transformer-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && unzip custom-ops-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && unzip ops-transformer-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && chmod +x *.run && ./CANN-custom_ops-none-linux.$(arch).run --install-path=/usr/local/Ascend/cann-${CANN_VERSION}/opp && ./cann-ops-transformer-custom_linux-$(arch).run --install-path=/usr/local/Ascend/cann-${CANN_VERSION}/opp && source /usr/local/Ascend/cann-${CANN_VERSION}/opp/vendors/customize/bin/set_env.bash && source /usr/local/Ascend/cann-${CANN_VERSION}/opp/vendors/custom_transformer/bin/set_env.bash && source /usr/local/Ascend/ascend-toolkit/latest/set_env.sh && source /usr/local/Ascend/nnal/atb/set_env.sh && ${PIP_INSTALL} custom_ops-1.0-cp312-cp312-linux_$(arch).whl && cd .. && rm -rf cann-custom-ops # buildkit
2026-10-16 00:35:15 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=amd64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c ${PIP_INSTALL} wheel==0.45.1 pybind11 pyyaml decorator scipy attrs psutil && mkdir sgl-kernel-npu && cd sgl-kernel-npu && wget https://github.com/sgl-project/sgl-kernel-npu/releases/download/${SGLANG_KERNEL_NPU_TAG}/sgl-kernel-npu-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-py312-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && unzip sgl-kernel-npu-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-py312-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && ${PIP_INSTALL} deep_ep*.whl sgl_kernel_npu*.whl torch_memory_saver*.whl && cd .. && rm -rf sgl-kernel-npu && cd "$(python3 -m pip show deep-ep | awk '/^Location:/ {print $2}')" && ln -sf deep_ep/deep_ep_cpp*.so # buildkit
2026-10-16 00:35:15 UTC (buildkit.dockerfile.v0)CMD ["/bin/bash"]
2026-10-26 07:26:10 UTC (buildkit.dockerfile.v0)SHELL [/bin/bash -eo pipefail -c]
2026-10-26 07:26:10 UTC (buildkit.dockerfile.v0)ARG TARGETPLATFORM=linux/amd64
2026-10-26 07:26:10 UTC (buildkit.dockerfile.v0)ARG TARGETOS=linux
2026-10-26 07:26:10 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=amd64
2026-10-26 07:26:10 UTC (buildkit.dockerfile.v0)ENV DEBIAN_FRONTEND=noninteractive LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
2026-10-26 07:26:10 UTC (buildkit.dockerfile.v0)RUN |3 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 /bin/bash -eo pipefail -c # Tools # Refresh apt-get update -y && apt-get install -y --no-install-recommends \ software-properties-common apt-transport-https \ ca-certificates gnupg2 lsb-release gnupg-agent \ && apt-get update -y # Install apt-get install -y --no-install-recommends \ ca-certificates build-essential binutils bash openssl \ curl wget aria2 \ git git-lfs \ unzip xz-utils \ tzdata locales \ iproute2 iputils-ping ifstat net-tools dnsutils pciutils ipmitool \ rdma-core rdmacm-utils infiniband-diags \ procps sysstat htop \ tini vim jq bc tree # Update locale localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 # Update timezone rm -f /etc/localtime \ && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo "Asia/Shanghai" > /etc/timezone \ && dpkg-reconfigure --frontend noninteractive tzdata # Cleanup rm -rf /var/tmp/* \ && rm -rf /tmp/* \ && rm -rf /var/cache/apt # buildkit
2026-10-26 07:26:25 UTC (buildkit.dockerfile.v0)RUN |3 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 /bin/bash -eo pipefail -c # C Buildkit apt-get install -y --no-install-recommends \ ffmpeg libjpeg-dev libpng-dev libtiff-dev libwebp-dev \ numactl libnuma-dev libjemalloc2 \ cmake make ninja-build pkg-config ccache # Cleanup rm -rf /var/tmp/* \ && rm -rf /tmp/* \ && rm -rf /var/cache/apt # buildkit
2026-10-26 07:26:25 UTC (buildkit.dockerfile.v0)ARG PYTHON_VERSION=3.12
2026-10-26 07:26:25 UTC (buildkit.dockerfile.v0)ENV PYTHON_VERSION=3.12
2026-10-26 07:26:25 UTC (buildkit.dockerfile.v0)RUN |4 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.12 /bin/bash -eo pipefail -c # Python # Update alternatives if ! command -v python >/dev/null 2>&1 \ && command -v python${PYTHON_VERSION} >/dev/null 2>&1; then update-alternatives --install /usr/bin/python python $(which python${PYTHON_VERSION}) 1 fi # buildkit
2026-10-26 07:26:25 UTC (buildkit.dockerfile.v0)ENV PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1 PIP_ROOT_USER_ACTION=ignore
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)RUN |4 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.12 /bin/bash -eo pipefail -c # Buildkit cat <<EOT >/tmp/requirements.txt build uv EOT pip install -r /tmp/requirements.txt # Cleanup rm -rf /var/tmp/* \ && rm -rf /tmp/* # buildkit
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)ARG CANN_VERSION=9.1.0
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)ARG CANN_ARCHS=a3
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)ENV CANN_HOME=/usr/local/Ascend CANN_VERSION=9.1.0 CANN_ARCHS=a3
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)ENV UV_SYSTEM_PYTHON=1 UV_PRERELEASE=allow UV_SKIP_WHEEL_FILENAME_CHECK=1 UV_NO_CACHE=1 UV_HTTP_TIMEOUT=500 UV_INDEX_STRATEGY=unsafe-best-match UV_BREAK_SYSTEM_PACKAGES=1
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)ARG SGLANG_VERSION=0.5.22
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)ARG SGLANG_TORCH_VERSION=2.10.0
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)ENV SGLANG_VERSION=0.5.22 SGLANG_TORCH_VERSION=2.10.0
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)SHELL [/bin/bash -eo pipefail -c]
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)ARG TARGETPLATFORM=linux/amd64
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)ARG TARGETOS=linux
2026-10-26 07:26:27 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=amd64
2026-10-26 07:26:29 UTC (buildkit.dockerfile.v0)RUN |8 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.12 CANN_VERSION=9.1.0 CANN_ARCHS=a3 SGLANG_VERSION=0.5.22 SGLANG_TORCH_VERSION=2.10.0 /bin/bash -eo pipefail -c # Dependencies # Install ## Note: CANN base already ships `hf_transfer 0.1.9`, `mistral_common 1.11.2`, ## `soundfile 0.13.1` —— skip them. Also skip `accelerate` / `bitsandbytes` (old ## cann sglang didn't ship them; bitsandbytes has no Ascend NPU support). ## BiSheng toolkit also already in base at /usr/local/Ascend/cann-9.1.0/tools/bishengir/ ## (softlinked into ascend-toolkit/latest/bin via set_env.sh). cat <<EOT >/tmp/requirements.txt # audio extras librosa EOT uv pip install \ -r /tmp/requirements.txt # Cleanup rm -rf /var/tmp/* \ && rm -rf /tmp/* # buildkit
2026-10-26 07:26:29 UTC (buildkit.dockerfile.v0)RUN |8 TARGETPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 PYTHON_VERSION=3.12 CANN_VERSION=9.1.0 CANN_ARCHS=a3 SGLANG_VERSION=0.5.22 SGLANG_TORCH_VERSION=2.10.0 /bin/bash -eo pipefail -c # Postprocess # Review uv pip tree \ --package sglang \ --package sglang-router \ --package sgl-kernel-npu \ --package deep-ep \ --package triton-ascend \ --package torch \ --package torch-npu # buildkit
2026-10-26 07:26:29 UTC (buildkit.dockerfile.v0)ENV TASK_QUEUE_ENABLE=1 CPU_AFFINITY_CONF=1 PYTORCH_NPU_ALLOC_CONF=expandable_segments:True SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1 SGLANG_MOE_PADDING=1 SGLANG_SET_CPU_AFFINITY=1
2026-10-26 07:26:29 UTC (buildkit.dockerfile.v0)WORKDIR /
2026-10-26 07:26:29 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/bin/bash" "-c" "source /usr/local/Ascend/ascend-toolkit/set_env.sh && source /usr/local/Ascend/cann-9.1.0/share/info/ascendnpu-ir/bin/set_env.sh && source /usr/local/Ascend/nnal/atb/set_env.sh && exec tini -- \"$@\"" "--"]
2026-10-26 07:25:30 UTC
6.46 GB
/usr/local/Ascend/cann-9.1.0
ASCEND_HOME_PATH/usr/local/Ascend/cann-9.1.0
ASCEND_OPP_PATH/usr/local/Ascend/cann-9.1.0/opp
ASCEND_TOOLKIT_HOME/usr/local/Ascend/cann-9.1.0
ASCEND_TOOLKIT_LATEST_HOME/usr/local/Ascend/ascend-toolkit/latest
ATB_COMPARE_TILING_EVERY_KERNEL0
ATB_CXX_ABI1
ATB_HOME_PATH/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1
ATB_MATMUL_SHUFFLE_K_ENABLE1
ATB_OPSRUNNER_KERNEL_CACHE_GLOABL_COUNT5
ATB_OPSRUNNER_KERNEL_CACHE_LOCAL_COUNT1
ATB_SHARE_MEMORY_NAME_SUFFIX ATB_STREAM_SYNC_EVERY_KERNEL_ENABLE0
ATB_STREAM_SYNC_EVERY_OPERATION_ENABLE0
ATB_STREAM_SYNC_EVERY_RUNNER_ENABLE0
ATB_WORKSPACE_MEM_ALLOC_ALG_TYPE1
CANN_ARCHSa3
CANN_HOME/usr/local/Ascend
CANN_VERSION9.1.0
CMAKE_PREFIX_PATH/usr/local/Ascend/cann-9.1.0/toolkit/tools/tikicpulib/lib/cmake:/usr/local/Ascend/cann-9.1.0/lib64/cmake
CPU_AFFINITY_CONF1
DEBIAN_FRONTENDnoninteractive
LANGen_US.UTF-8
LANGUAGEen_US:en
LCCL_DETERMINISTIC0
LCCL_PARALLEL0
LC_ALLen_US.UTF-8
LD_LIBRARY_PATH/usr/local/Ascend/cann-9.1.0/lib64:/usr/local/Ascend/cann-9.1.0/lib:/usr/local/Ascend/cann-9.1.0/x86_64-linux/devlib/device:/usr/local/Ascend/driver/lib64:/usr/local/lib:/usr/local/Ascend/cann-9.1.0/lib64:/usr/local/Ascend/cann-9.1.0/lib64/plugin/opskernel:/usr/local/Ascend/cann-9.1.0/lib64/plugin/nnengine:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64/common:/usr/local/Ascend/driver/lib64/driver:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
PATH/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/bin:/usr/local/Ascend/ascend-toolkit/latest/bin:/usr/local/Ascend/ascend-toolkit/latest/compiler/ccec_compiler/bin:/usr/local/Ascend/ascend-toolkit/latest/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/show_kernel_debug_data:/usr/local/Ascend/cann-9.1.0/tools/msobjdump:/usr/local/Ascend/cann-9.1.0/bin:/usr/local/Ascend/cann-9.1.0/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/profiler/bin:/usr/local/Ascend/cann-9.1.0/tools/ascend_system_advisor/asys:/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PIP_DISABLE_PIP_VERSION_CHECK1
PIP_NO_CACHE_DIR1
PIP_ROOT_USER_ACTIONignore
PYTHONPATH/usr/local/Ascend/ascend-toolkit/latest/python/site-packages:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe:/usr/local/Ascend/cann-9.1.0/python/site-packages:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe:
PYTHON_VERSION3.12
PYTORCH_NPU_ALLOC_CONFexpandable_segments:True
SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN1
SGLANG_MOE_PADDING1
SGLANG_SET_CPU_AFFINITY1
SGLANG_TORCH_VERSION2.10.0
SGLANG_VERSION0.5.22
TASK_QUEUE_ENABLE1
TOOLCHAIN_HOME/usr/local/Ascend/cann-9.1.0/toolkit
UV_BREAK_SYSTEM_PACKAGES1
UV_HTTP_TIMEOUT500
UV_INDEX_STRATEGYunsafe-best-match
UV_NO_CACHE1
UV_PRERELEASEallow
UV_SKIP_WHEEL_FILENAME_CHECK1
UV_SYSTEM_PYTHON1
[#000] sha256:119d19e001bafa21919289095e1dbfac64f1e16d2469dd14c2d2a520039d26d9 - 0.4% (26.3 MB)
[#001] sha256:0f558e63da43395e44b80446659ff238a508d96f0730445e6e1a141acdcd1d86 - 2.18% (144 MB)
[#002] sha256:0223f5880560f21e6be04a117e6ba5501f23300d5a35179c4c029ffa252af670 - 2.62% (173 MB)
[#003] sha256:31fed17ba85b3087753a0e92e38a6f3b3158c803ab912b3cfce47f8f6e2fd365 - 61.33% (3.96 GB)
[#004] sha256:5a78e9f4bd0d1affc0fd3f9eeae54991e5aedd75a0dbcb858711e25b29fab3c7 - 0.0% (215 Bytes)
[#005] sha256:3dd4d7096f1fd6a098de53100c8970600b31503dac36f17be1b50fc9ef9ca028 - 0.0% (1.86 KB)
[#006] sha256:433a4acc8d920ed3508e627301d7d214d4373cc51b163ee87dbfcbe362d1a61b - 0.0% (133 Bytes)
[#007] sha256:3175941133d12fa03a9f99da6577abb1c3bec7b4aefdfec32a12a11f3cd53568 - 0.0% (99 Bytes)
[#008] sha256:a37e4a70c2746e51986e7f7af277e2e900f3274c4ba2379d6e66d5532bb0cf2f - 0.0% (215 Bytes)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:f98cbb74cd0a78489eae5a658192cd93ca6e9345018e4bd11f86db4c4ea30ad7 - 4.39% (290 MB)
[#011] sha256:9fb0bf0ab793eac74f708bc8cd5c36491e35b012188c644e384b0920c578089e - 0.24% (16 MB)
[#012] sha256:c7b3ceb943b94c7391ae33e1baf1c9dbb0a22cfa4526c7590c886a4404336374 - 0.3% (19.9 MB)
[#013] sha256:2094ee619970d15b12b12a7ecc664f9fcf66f81034c190d5b404486f35f7f8d2 - 0.58% (38.3 MB)
[#014] sha256:2888e3a619d485c93a35c656320809a26fa075d801bd884c49d46671ca091730 - 3.18% (210 MB)
[#015] sha256:700faa36c33695eab650ff879c5bc0734a148fb740ad47e4144bf244c9d5c82d - 4.04% (267 MB)
[#016] sha256:cb9bcf7f0b1465a43781a6bc90890b133eb1dd21bde43b43b472a538b3c399b5 - 4.36% (288 MB)
[#017] sha256:a6d0cf7270296870ebffb4e70df52235c4058f7230b4c15ec936fc6d6da61fec - 11.21% (742 MB)
[#018] sha256:1aa211a88fa5fe47167abb88738b1e6935eaa466b45e2ba1379c4a28b29427d1 - 0.94% (62.2 MB)
[#019] sha256:4cfb9a23cc5fd1fb1e800f1b787366de8d2d9d1071427a8c1a31f055b818948e - 0.08% (5.16 MB)
[#020] sha256:276c0ff84c2d7cd5272b9bf28128451c390844e35beca93b88cef0a71fc9c4ed - 1.39% (91.9 MB)
[#021] sha256:df1521d8868f6b10f8478f533906ade05af87baba1cff5321fabbb03bb2693ba - 0.97% (64.3 MB)
[#022] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#023] sha256:2819e2362696c11c544021950a4d6a3fc91cfdddd332e9c028c7e518c2c1fe78 - 0.24% (16.1 MB)
[#024] sha256:e902069c0e019004c19b360d7c9121ddb23d3da794a64d4d3a97fb9c12709c2e - 1.56% (103 MB)
[#025] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
/bin/sh -c #(nop) ARG RELEASE
2026-06-29 10:38:39 UTC/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
2026-06-29 10:38:39 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.version=22.04
2026-06-29 10:38:42 UTC/bin/sh -c #(nop) ADD file:a517741c956f6a7e4b7cb0efd9bc418ce3cc54eb49b5314080ff606a7430ac2a in /
2026-06-29 10:38:42 UTC/bin/sh -c #(nop) CMD ["/bin/bash"]
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/python3.12.13/lib:
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ASCEND_TOOLKIT_HOME=/usr/local/Ascend/cann-9.1.0
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ASCEND_TOOLKIT_LATEST_HOME=/usr/local/Ascend/ascend-toolkit/latest
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV PYTHONPATH=/usr/local/Ascend/cann-9.1.0/python/site-packages:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe:
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV PYTHONPATH=/usr/local/Ascend/ascend-toolkit/latest/python/site-packages:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe:/usr/local/Ascend/cann-9.1.0/python/site-packages:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe:
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/Ascend/cann-9.1.0/bin:/usr/local/Ascend/cann-9.1.0/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/profiler/bin:/usr/local/Ascend/cann-9.1.0/tools/ascend_system_advisor/asys:/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/Ascend/cann-9.1.0/tools/show_kernel_debug_data:/usr/local/Ascend/cann-9.1.0/tools/msobjdump:/usr/local/Ascend/cann-9.1.0/bin:/usr/local/Ascend/cann-9.1.0/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/profiler/bin:/usr/local/Ascend/cann-9.1.0/tools/ascend_system_advisor/asys:/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/Ascend/ascend-toolkit/latest/bin:/usr/local/Ascend/ascend-toolkit/latest/compiler/ccec_compiler/bin:/usr/local/Ascend/ascend-toolkit/latest/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/show_kernel_debug_data:/usr/local/Ascend/cann-9.1.0/tools/msobjdump:/usr/local/Ascend/cann-9.1.0/bin:/usr/local/Ascend/cann-9.1.0/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/profiler/bin:/usr/local/Ascend/cann-9.1.0/tools/ascend_system_advisor/asys:/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ASCEND_AICPU_PATH=/usr/local/Ascend/cann-9.1.0
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ASCEND_OPP_PATH=/usr/local/Ascend/cann-9.1.0/opp
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV TOOLCHAIN_HOME=/usr/local/Ascend/cann-9.1.0/toolkit
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ASCEND_HOME_PATH=/usr/local/Ascend/cann-9.1.0
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV CMAKE_PREFIX_PATH=/usr/local/Ascend/cann-9.1.0/toolkit/tools/tikicpulib/lib/cmake:/usr/local/Ascend/cann-9.1.0/lib64/cmake
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ATB_HOME_PATH=/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64/common:/usr/local/Ascend/driver/lib64/driver:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/cann-9.1.0/lib64:/usr/local/Ascend/cann-9.1.0/lib64/plugin/opskernel:/usr/local/Ascend/cann-9.1.0/lib64/plugin/nnengine:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64/common:/usr/local/Ascend/driver/lib64/driver:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/bin:/usr/local/Ascend/ascend-toolkit/latest/bin:/usr/local/Ascend/ascend-toolkit/latest/compiler/ccec_compiler/bin:/usr/local/Ascend/ascend-toolkit/latest/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/show_kernel_debug_data:/usr/local/Ascend/cann-9.1.0/tools/msobjdump:/usr/local/Ascend/cann-9.1.0/bin:/usr/local/Ascend/cann-9.1.0/tools/ccec_compiler/bin:/usr/local/Ascend/cann-9.1.0/tools/profiler/bin:/usr/local/Ascend/cann-9.1.0/tools/ascend_system_advisor/asys:/usr/local/python3.12.13/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ATB_STREAM_SYNC_EVERY_KERNEL_ENABLE=0
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ATB_STREAM_SYNC_EVERY_RUNNER_ENABLE=0
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ATB_STREAM_SYNC_EVERY_OPERATION_ENABLE=0
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ATB_OPSRUNNER_KERNEL_CACHE_LOCAL_COUNT=1
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ATB_OPSRUNNER_KERNEL_CACHE_GLOABL_COUNT=5
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ATB_WORKSPACE_MEM_ALLOC_ALG_TYPE=1
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ATB_COMPARE_TILING_EVERY_KERNEL=0
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ATB_SHARE_MEMORY_NAME_SUFFIX=
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ATB_MATMUL_SHUFFLE_K_ENABLE=1
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV LCCL_DETERMINISTIC=0
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV LCCL_PARALLEL=0
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)ENV ATB_CXX_ABI=1
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)SHELL [/bin/bash -c]
2026-08-03 02:39:32 UTC (buildkit.dockerfile.v0)RUN /bin/bash -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y apt-transport-https ca-certificates bash libc6 libsqlite3-dev gcc g++ make cmake git vim wget jq curl build-essential libnuma-dev && apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf /var/tmp/* && rm -rf /tmp/* # buildkit
2026-08-03 02:54:09 UTC (buildkit.dockerfile.v0)COPY /usr/local/python3.12.13 /usr/local/python3.12.13 # buildkit
2026-08-03 02:55:08 UTC (buildkit.dockerfile.v0)COPY /usr/local/Ascend /usr/local/Ascend # buildkit
2026-08-03 02:55:08 UTC (buildkit.dockerfile.v0)COPY /etc/Ascend /etc/Ascend # buildkit
2026-08-03 02:55:08 UTC (buildkit.dockerfile.v0)RUN /bin/bash -c CANN_TOOLKIT_ENV_FILE="/usr/local/Ascend/ascend-toolkit/set_env.sh" && CANN_BISHENG_ENV_FILE="/usr/local/Ascend/cann-9.1.0/share/info/ascendnpu-ir/bin/set_env.sh" && CANN_NNAL_ENV_FILE="/usr/local/Ascend/nnal/atb/set_env.sh --cxx_abi=${ATB_CXX_ABI:-1}" && echo "source ${CANN_TOOLKIT_ENV_FILE}" >> /etc/profile && echo "source ${CANN_TOOLKIT_ENV_FILE}" >> ~/.bashrc && echo "source ${CANN_BISHENG_ENV_FILE}" >> /etc/profile && echo "source ${CANN_BISHENG_ENV_FILE}" >> ~/.bashrc && echo "source ${CANN_NNAL_ENV_FILE}" >> /etc/profile && echo "source ${CANN_NNAL_ENV_FILE}" >> ~/.bashrc # buildkit
2026-08-03 02:55:08 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/bin/bash" "-c" " source /usr/local/Ascend/ascend-toolkit/set_env.sh && source /usr/local/Ascend/cann-9.1.0/share/info/ascendnpu-ir/bin/set_env.sh && source /usr/local/Ascend/nnal/atb/set_env.sh --cxx_abi=${ATB_CXX_ABI:-1}&& exec \"$@\"" "--"]
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm64
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG CANN_VERSION=9.1.0
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG DEVICE_TYPE=a3
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG arch
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG PIP_INDEX_URL=https://pypi.org/simple/
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG APTMIRROR=
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG PYTORCH_VERSION=2.10.0
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG TORCHVISION_VERSION=0.25.0
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG TORCHAUDIO_VERSION=2.10.0
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG TORCH_NPU_VERSION=2.10.0.post6
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG SGLANG_TAG=v0.5.22
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG SGLANG_KERNEL_NPU_TAG=2026.9.0.post9
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG PIP_INSTALL=python3 -m pip install --no-cache-dir
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG DEVICE_TYPE=a3
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG MODELSCOPE_VERSION=
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG EVALSCOPE_VERSION=
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG MF_VERSION=1.2.1
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG ZBAL_VERSION_950=1.2.21004.post1
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ARG ZBAL_VERSION_A3=1.1.3
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c touch /etc/environment_new # buildkit
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)WORKDIR /workspace
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)ENV DEBIAN_FRONTEND=noninteractive
2026-10-15 23:42:42 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c pip config set global.index-url $PIP_INDEX_URL # buildkit
2026-10-15 23:42:43 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c if [ -n "$APTMIRROR" ];then sed -i "s|.*.ubuntu.com|$APTMIRROR|g" /etc/apt/sources.list ;fi # buildkit
2026-10-15 23:43:36 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c apt-get update -y && apt upgrade -y && apt-get install -y unzip build-essential cmake vim wget curl net-tools zlib1g-dev lld clang locales ccache openssl libssl-dev pkg-config libgl1-mesa-glx libgl1-mesa-dri ca-certificates && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && update-ca-certificates && locale-gen en_US.UTF-8 # buildkit
2026-10-15 23:43:36 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.UTF-8
2026-10-15 23:43:36 UTC (buildkit.dockerfile.v0)ENV LANGUAGE=en_US:en
2026-10-15 23:43:36 UTC (buildkit.dockerfile.v0)ENV LC_ALL=en_US.UTF-8
2026-10-15 23:43:44 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c set -eux; case "$DEVICE_TYPE" in 950) MF_SOC_VERSION="A5" ;; a3) MF_SOC_VERSION="A3" ;; *) echo "Unsupported DEVICE_TYPE for mfcli kernel install: $DEVICE_TYPE" >&2; exit 1 ;; esac; ${PIP_INSTALL} memfabric-hybrid==${MF_VERSION}; mfcli kernel install --soc-version "$MF_SOC_VERSION"; ${PIP_INSTALL} memcache-hybrid==${MF_VERSION} # buildkit
2026-10-15 23:43:49 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c if [ "$DEVICE_TYPE" = "950" ]; then ZBAL_PKG="memfabric-zbal==${ZBAL_VERSION_950}"; else ZBAL_PKG="memfabric-zbal==${ZBAL_VERSION_A3}"; fi; ${PIP_INSTALL} "$ZBAL_PKG" -i https://pypi.org/simple/ # buildkit
2026-10-15 23:43:56 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c ${PIP_INSTALL} sglang-router # buildkit
2026-10-15 23:44:22 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c . /etc/environment_new && (${PIP_INSTALL} torch==${PYTORCH_VERSION} torchvision==${TORCHVISION_VERSION} torchaudio==${TORCHAUDIO_VERSION} --index-url https://download.pytorch.org/whl/cpu) && (${PIP_INSTALL} torch-npu==${TORCH_NPU_VERSION} --extra-index-url ${TORCH_NPU_INDEX_URL}) # buildkit
2026-10-15 23:45:21 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c . /etc/environment_new && MS_PKG="modelscope" && ES_PKG="evalscope" && if [ -n "${MODELSCOPE_VERSION}" ]; then MS_PKG="modelscope==${MODELSCOPE_VERSION}"; fi && if [ -n "${EVALSCOPE_VERSION}" ]; then ES_PKG="evalscope==${EVALSCOPE_VERSION}"; fi && ${PIP_INSTALL} "${MS_PKG}" "${ES_PKG}" # buildkit
2026-10-15 23:46:10 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c . /etc/environment_new && ${PIP_INSTALL} pybind11 && if [ "$TARGETARCH" = "arm64" ]; then ${PIP_INSTALL} "https://sglang-npu.obs.cn-southwest-2.myhuaweicloud.com:443/Triton-ascend/3.2.2/triton_ascend-3.2.2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl?AccessKeyId=HPUAAPJN7IAXFCS2GDSQ&Expires=1806290330&Signature=eRq3VKjwgP/tTkObtsho%2BzIsmJM%3D"; elif [ "$TARGETARCH" = "amd64" ]; then ${PIP_INSTALL} https://github.com/triton-lang/triton-ascend/releases/download/v3.2.2/triton_ascend-3.2.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; else echo "Unsupported architecture: $TARGETARCH"; exit 1; fi # buildkit
2026-10-15 23:47:35 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c git clone https://github.com/sgl-project/sglang --branch ${SGLANG_TAG} /sgl-workspace/sglang && cd /sgl-workspace/sglang/python && rm -rf pyproject.toml && mv pyproject_npu.toml pyproject.toml && ${PIP_INSTALL} -v -e .[all_npu] # buildkit
2026-10-15 23:47:35 UTC (buildkit.dockerfile.v0)ENV ASCEND_HOME_PATH=/usr/local/Ascend/cann-9.1.0
2026-10-15 23:47:35 UTC (buildkit.dockerfile.v0)ENV LD_LIBRARY_PATH=/usr/local/Ascend/cann-9.1.0/lib64:/usr/local/Ascend/cann-9.1.0/lib:/usr/local/Ascend/cann-9.1.0/x86_64-linux/devlib/device:/usr/local/Ascend/driver/lib64:/usr/local/lib:/usr/local/Ascend/cann-9.1.0/lib64:/usr/local/Ascend/cann-9.1.0/lib64/plugin/opskernel:/usr/local/Ascend/cann-9.1.0/lib64/plugin/nnengine:/usr/local/Ascend/cann-9.1.0/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64/common:/usr/local/Ascend/driver/lib64/driver:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/examples:/usr/local/Ascend/nnal/atb/latest/atb/cxx_abi_1/tests/atbopstest:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64:/usr/local/Ascend/ascend-toolkit/latest/tools/aml/lib64/plugin:/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/opskernel:/usr/local/Ascend/ascend-toolkit/latest/lib64/plugin/nnengine:/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling:/usr/local/python3.12.13/lib:
2026-10-15 23:47:50 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c mkdir cann-custom-ops && cd cann-custom-ops && source /usr/local/Ascend/cann-${CANN_VERSION}/set_env.sh && wget https://github.com/sgl-project/sgl-kernel-npu/releases/download/${SGLANG_KERNEL_NPU_TAG}/custom-ops-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && wget https://github.com/sgl-project/sgl-kernel-npu/releases/download/${SGLANG_KERNEL_NPU_TAG}/ops-transformer-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && unzip custom-ops-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && unzip ops-transformer-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && chmod +x *.run && ./CANN-custom_ops-none-linux.$(arch).run --install-path=/usr/local/Ascend/cann-${CANN_VERSION}/opp && ./cann-ops-transformer-custom_linux-$(arch).run --install-path=/usr/local/Ascend/cann-${CANN_VERSION}/opp && source /usr/local/Ascend/cann-${CANN_VERSION}/opp/vendors/customize/bin/set_env.bash && source /usr/local/Ascend/cann-${CANN_VERSION}/opp/vendors/custom_transformer/bin/set_env.bash && source /usr/local/Ascend/ascend-toolkit/latest/set_env.sh && source /usr/local/Ascend/nnal/atb/set_env.sh && ${PIP_INSTALL} custom_ops-1.0-cp312-cp312-linux_$(arch).whl && cd .. && rm -rf cann-custom-ops # buildkit
2026-10-15 23:47:54 UTC (buildkit.dockerfile.v0)RUN |20 TARGETARCH=arm64 CANN_VERSION=9.1.0 DEVICE_TYPE=a3 arch= PIP_INDEX_URL=https://pypi.org/simple/ APTMIRROR= PYTORCH_VERSION=2.10.0 TORCHVISION_VERSION=0.25.0 TORCHAUDIO_VERSION=2.10.0 TORCH_NPU_VERSION=2.10.0.post6 TORCH_NPU_INDEX_URL=https://ascend.devcloud.huaweicloud.com/pypi/simple/ SGLANG_TAG=v0.5.22 ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit SGLANG_KERNEL_NPU_TAG=2026.9.0.post9 PIP_INSTALL=python3 -m pip install --no-cache-dir MODELSCOPE_VERSION= EVALSCOPE_VERSION= MF_VERSION=1.2.1 ZBAL_VERSION_950=1.2.21004.post1 ZBAL_VERSION_A3=1.1.3 /bin/bash -c ${PIP_INSTALL} wheel==0.45.1 pybind11 pyyaml decorator scipy attrs psutil && mkdir sgl-kernel-npu && cd sgl-kernel-npu && wget https://github.com/sgl-project/sgl-kernel-npu/releases/download/${SGLANG_KERNEL_NPU_TAG}/sgl-kernel-npu-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-py312-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && unzip sgl-kernel-npu-${SGLANG_KERNEL_NPU_TAG}-torch2.10.0-py312-cann${CANN_VERSION}-${DEVICE_TYPE}-$(arch).zip && ${PIP_INSTALL} deep_ep*.whl sgl_kernel_npu*.whl torch_memory_saver*.whl && cd .. && rm -rf sgl-kernel-npu && cd "$(python3 -m pip show deep-ep | awk '/^Location:/ {print $2}')" && ln -sf deep_ep/deep_ep_cpp*.so # buildkit
2026-10-15 23:47:54 UTC (buildkit.dockerfile.v0)CMD ["/bin/bash"]
2026-10-26 07:25:13 UTC (buildkit.dockerfile.v0)SHELL [/bin/bash -eo pipefail -c]
2026-10-26 07:25:13 UTC (buildkit.dockerfile.v0)ARG TARGETPLATFORM=linux/arm64
2026-10-26 07:25:13 UTC (buildkit.dockerfile.v0)ARG TARGETOS=linux
2026-10-26 07:25:13 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm64
2026-10-26 07:25:13 UTC (buildkit.dockerfile.v0)ENV DEBIAN_FRONTEND=noninteractive LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
2026-10-26 07:25:13 UTC (buildkit.dockerfile.v0)RUN |3 TARGETPLATFORM=linux/arm64 TARGETOS=linux TARGETARCH=arm64 /bin/bash -eo pipefail -c # Tools # Refresh apt-get update -y && apt-get install -y --no-install-recommends \ software-properties-common apt-transport-https \ ca-certificates gnupg2 lsb-release gnupg-agent \ && apt-get update -y # Install apt-get install -y --no-install-recommends \ ca-certificates build-essential binutils bash openssl \ curl wget aria2 \ git git-lfs \ unzip xz-utils \ tzdata locales \ iproute2 iputils-ping ifstat net-tools dnsutils pciutils ipmitool \ rdma-core rdmacm-utils infiniband-diags \ procps sysstat htop \ tini vim jq bc tree # Update locale localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 # Update timezone rm -f /etc/localtime \ && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo "Asia/Shanghai" > /etc/timezone \ && dpkg-reconfigure --frontend noninteractive tzdata # Cleanup rm -rf /var/tmp/* \ && rm -rf /tmp/* \ && rm -rf /var/cache/apt # buildkit
2026-10-26 07:25:27 UTC (buildkit.dockerfile.v0)RUN |3 TARGETPLATFORM=linux/arm64 TARGETOS=linux TARGETARCH=arm64 /bin/bash -eo pipefail -c # C Buildkit apt-get install -y --no-install-recommends \ ffmpeg libjpeg-dev libpng-dev libtiff-dev libwebp-dev \ numactl libnuma-dev libjemalloc2 \ cmake make ninja-build pkg-config ccache # Cleanup rm -rf /var/tmp/* \ && rm -rf /tmp/* \ && rm -rf /var/cache/apt # buildkit
2026-10-26 07:25:27 UTC (buildkit.dockerfile.v0)ARG PYTHON_VERSION=3.12
2026-10-26 07:25:27 UTC (buildkit.dockerfile.v0)ENV PYTHON_VERSION=3.12
2026-10-26 07:25:27 UTC (buildkit.dockerfile.v0)RUN |4 TARGETPLATFORM=linux/arm64 TARGETOS=linux TARGETARCH=arm64 PYTHON_VERSION=3.12 /bin/bash -eo pipefail -c # Python # Update alternatives if ! command -v python >/dev/null 2>&1 \ && command -v python${PYTHON_VERSION} >/dev/null 2>&1; then update-alternatives --install /usr/bin/python python $(which python${PYTHON_VERSION}) 1 fi # buildkit
2026-10-26 07:25:27 UTC (buildkit.dockerfile.v0)ENV PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1 PIP_ROOT_USER_ACTION=ignore
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)RUN |4 TARGETPLATFORM=linux/arm64 TARGETOS=linux TARGETARCH=arm64 PYTHON_VERSION=3.12 /bin/bash -eo pipefail -c # Buildkit cat <<EOT >/tmp/requirements.txt build uv EOT pip install -r /tmp/requirements.txt # Cleanup rm -rf /var/tmp/* \ && rm -rf /tmp/* # buildkit
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)ARG CANN_VERSION=9.1.0
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)ARG CANN_ARCHS=a3
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)ENV CANN_HOME=/usr/local/Ascend CANN_VERSION=9.1.0 CANN_ARCHS=a3
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)ENV UV_SYSTEM_PYTHON=1 UV_PRERELEASE=allow UV_SKIP_WHEEL_FILENAME_CHECK=1 UV_NO_CACHE=1 UV_HTTP_TIMEOUT=500 UV_INDEX_STRATEGY=unsafe-best-match UV_BREAK_SYSTEM_PACKAGES=1
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)ARG SGLANG_VERSION=0.5.22
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)ARG SGLANG_TORCH_VERSION=2.10.0
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)ENV SGLANG_VERSION=0.5.22 SGLANG_TORCH_VERSION=2.10.0
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)SHELL [/bin/bash -eo pipefail -c]
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)ARG TARGETPLATFORM=linux/arm64
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)ARG TARGETOS=linux
2026-10-26 07:25:28 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm64
2026-10-26 07:25:30 UTC (buildkit.dockerfile.v0)RUN |8 TARGETPLATFORM=linux/arm64 TARGETOS=linux TARGETARCH=arm64 PYTHON_VERSION=3.12 CANN_VERSION=9.1.0 CANN_ARCHS=a3 SGLANG_VERSION=0.5.22 SGLANG_TORCH_VERSION=2.10.0 /bin/bash -eo pipefail -c # Dependencies # Install ## Note: CANN base already ships `hf_transfer 0.1.9`, `mistral_common 1.11.2`, ## `soundfile 0.13.1` —— skip them. Also skip `accelerate` / `bitsandbytes` (old ## cann sglang didn't ship them; bitsandbytes has no Ascend NPU support). ## BiSheng toolkit also already in base at /usr/local/Ascend/cann-9.1.0/tools/bishengir/ ## (softlinked into ascend-toolkit/latest/bin via set_env.sh). cat <<EOT >/tmp/requirements.txt # audio extras librosa EOT uv pip install \ -r /tmp/requirements.txt # Cleanup rm -rf /var/tmp/* \ && rm -rf /tmp/* # buildkit
2026-10-26 07:25:30 UTC (buildkit.dockerfile.v0)RUN |8 TARGETPLATFORM=linux/arm64 TARGETOS=linux TARGETARCH=arm64 PYTHON_VERSION=3.12 CANN_VERSION=9.1.0 CANN_ARCHS=a3 SGLANG_VERSION=0.5.22 SGLANG_TORCH_VERSION=2.10.0 /bin/bash -eo pipefail -c # Postprocess # Review uv pip tree \ --package sglang \ --package sglang-router \ --package sgl-kernel-npu \ --package deep-ep \ --package triton-ascend \ --package torch \ --package torch-npu # buildkit
2026-10-26 07:25:30 UTC (buildkit.dockerfile.v0)ENV TASK_QUEUE_ENABLE=1 CPU_AFFINITY_CONF=1 PYTORCH_NPU_ALLOC_CONF=expandable_segments:True SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1 SGLANG_MOE_PADDING=1 SGLANG_SET_CPU_AFFINITY=1
2026-10-26 07:25:30 UTC (buildkit.dockerfile.v0)WORKDIR /
2026-10-26 07:25:30 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/bin/bash" "-c" "source /usr/local/Ascend/ascend-toolkit/set_env.sh && source /usr/local/Ascend/cann-9.1.0/share/info/ascendnpu-ir/bin/set_env.sh && source /usr/local/Ascend/nnal/atb/set_env.sh && exec tini -- \"$@\"" "--"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.