
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Triton-Ascend is a Triton compilation framework built for the Ascend platform, aiming to enable Triton code to run efficiently on Ascend hardware. For details, see https://github.com/triton-lang/triton-ascend/blob/main/README.md.
Tag follow the following format:
{triton-ascend version}-{CANN version}-{torch_npu version}-{applicable product}-{os version}-{python version}
| Field | Example Value |
|---|---|
| triton-ascend version | 3.2.1 |
| CANN version | cann9.0.0 |
| torch_npu version | torch_npu2.7.1.post4 |
| applicable product | 910b, a3, 950 |
| os version | ubuntu22.04, openeuler24.03 |
| python version | py3.11 |
Key Image Components
| Components | Version |
|---|---|
| Triton-Ascend | 3.2.1 |
| CANN | 9.0.0 |
| Torch-npu | 2.7.1.post4 |
Image List
| Tag | Dockerfile | Docker Pull Command |
|---|---|---|
| 3.2.1-cann9.0.0-torch_npu2.7.1.post4-910b-debian12-py3.11 | Dockerfile | docker pull quay.io/ascend/triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-910b-debian12-py3.11 |
| 3.2.1-cann9.0.0-torch_npu2.7.1.post4-910b-ubuntu22.04-py3.11 | Dockerfile | docker pull quay.io/ascend/triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-910b-ubuntu22.04-py3.11 |
| 3.2.1-cann9.0.0-torch_npu2.7.1.post4-910b-openeuler24.03-py3.11 | Dockerfile | docker pull quay.io/ascend/triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-910b-openeuler24.03-py3.11 |
| 3.2.1-cann9.0.0-torch_npu2.7.1.post4-a3-debian12-py3.11 | Dockerfile | docker pull quay.io/ascend/triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-a3-debian12-py3.11 |
| 3.2.1-cann9.0.0-torch_npu2.7.1.post4-a3-ubuntu22.04-py3.11 | Dockerfile | docker pull quay.io/ascend/triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-a3-ubuntu22.04-py3.11 |
| 3.2.1-cann9.0.0-torch_npu2.7.1.post4-a3-openeuler24.03-py3.11 | Dockerfile | docker pull quay.io/ascend/triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-a3-openeuler24.03-py3.11 |
| 3.2.1-cann9.0.0-torch_npu2.7.1.post4-950-debian12-py3.11 | Dockerfile | docker pull quay.io/ascend/triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-950-debian12-py3.11 |
| 3.2.1-cann9.0.0-torch_npu2.7.1.post4-950-ubuntu22.04-py3.11 | Dockerfile | docker pull quay.io/ascend/triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-950-ubuntu22.04-py3.11 |
| 3.2.1-cann9.0.0-torch_npu2.7.1.post4-950-openeuler24.03-py3.11 | Dockerfile | docker pull quay.io/ascend/triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-950-openeuler24.03-py3.11 |
bash# Assume that your NPU device model is A3, the device is installed in /dev/davinci1, and the NPU driver is installed in /usr/local/Ascend: docker run -u 0 -dit --shm-size=512g --name=triton-ascend_container --net=host --privileged \ --security-opt seccomp=unconfined \ --device=/dev/davinci0 \ --device=/dev/davinci1 \ --device=/dev/davinci2 \ --device=/dev/davinci3 \ --device=/dev/davinci4 \ --device=/dev/davinci5 \ --device=/dev/davinci6 \ --device=/dev/davinci7 \ --device=/dev/davinci_manager \ --device=/dev/devmm_svm \ --device=/dev/hisi_hdc \ -v /usr/local/dcmi:/usr/local/dcmi \ -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \ -v /usr/local/sbin/npu-smi:/usr/local/sbin/npu-smi \ -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \ -v /etc/ascend_install.info:/etc/ascend_install.info \ -v /home:/home \ quay.io/ascend/triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-a3-ubuntu22.04-py3.11 \ /bin/bash
arm64
bashdocker build \ --network host \ --build-arg TARGETPLATFORM=linux/arm64 \ -t triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-a3-ubuntun22.04-py3.11-aarch64 \ -f Dockerfile .
amd64
bashdocker build \ --network host \ --build-arg TARGETPLATFORM=linux/amd64 \ -t triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-a3-ubuntun22.04-py3.11-x86_64 \ -f Dockerfile .
bash# Using the triton-ascend image as the base image and adding user software to it. FROM quay.io/ascend/triton:3.2.1-cann9.0.0-torch_npu2.7.1.post4-a3-ubuntu22.04-py3.11 RUN apt update -y && \ apt install wget \ ...
| Chip Series | Product Example | Architecture |
|---|---|---|
| Ascend 910b | Atlas 800T A2, Atlas 900 A2 PoD | arm64, amd64 |
| Ascend A3 | Atlas 800T A3 | arm64, amd64 |
| Ascend 950 | 950PR Series | arm64, amd64 |
View the license information of the CANN, Torch-npu and Triton-Ascend software contained in the image. For details, visit https://www.hiascend.com/en/software/protocol.
As with all container images, the pre-installed software packages (such as Python and system libraries) may be subject to their own licenses.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务