安装#
本文档介绍如何手动安装 vllm-ascend。
环境要求#
操作系统:Linux
Python:>= 3.10, < 3.13
配备昇腾 NPU 的硬件,通常为 Atlas 800 A2 系列。
Atlas 300I DUO。
软件:
软件
支持版本
说明
Ascend HDK
请参阅 CANN 9.1.0 版本说明
CANN 所需
CANN
== 9.1.0
vllm-ascend 和 TorchNPU 所必需
TorchNPU
== 2.10.0.post4
vllm-ascend 所需,无需手动安装,将在以下步骤中自动安装
torch
== 2.10.0
TorchNPU 和 vllm 所必需,无需手动安装,将在以下步骤中自动安装
NNAL
== 9.1.0
libatb.so 所需,支持高级张量运算
备注
Atlas 300I DUO 使用其平台专属的 CANN 9.1.0 软件包;其要求请参阅下表中的 310P 部分。
软件 |
支持版本 |
说明 |
|---|---|---|
Ascend HDK |
请参阅 CANN 9.1.0 版本说明 |
CANN 所需 |
CANN |
== 9.1.0 |
vllm-ascend 和 TorchNPU 所必需 |
TorchNPU |
== 2.10.0.post4 |
vllm-ascend 所需,无需手动安装,将在以下步骤中自动安装 |
torch |
== 2.10.0 |
TorchNPU 和 vllm 所必需,无需手动安装,将在以下步骤中自动安装 |
NNAL |
== 9.1.0 |
libatb.so 所需,支持高级张量运算 |
triton / triton-ascend |
不支持 |
在 |
有两种安装方式:
使用 pip:首先手动或通过 CANN 镜像准备环境,然后使用 pip 安装
vllm-ascend。使用 Docker:直接使用
vllm-ascend预构建的 Docker 镜像。
配置昇腾 CANN 环境#
安装前,请确保固件/驱动和 CANN 已正确安装,更多详情请参考 CANN 安装指南。
配置硬件环境#
要验证昇腾 NPU 固件和驱动是否正确安装,请运行:
npu-smi info
更多详情请参考 CANN 安装指南。
配置软件环境#
准备软件环境最简单的方法是直接使用 CANN 镜像:
备注
CANN 预构建镜像包含 NNAL(昇腾神经网络加速库),该库提供用于高级张量运算的 libatb.so。使用预构建镜像时无需额外安装。
# Update DEVICE according to your device (/dev/davinci[0-7])
export DEVICE=/dev/davinci7
# Update the vllm-ascend image
export IMAGE=quay.io/ascend/cann:9.1.0-910b-ubuntu22.04-py3.12
docker run --rm \
--name vllm-ascend-env \
--shm-size=1g \
--device $DEVICE \
--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/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \
-v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \
-v /etc/ascend_install.info:/etc/ascend_install.info \
-v /root/.cache:/root/.cache \
-it $IMAGE bash
如果使用 vllm-ascend 预构建的 Docker 镜像,则无需额外步骤。
完成上述步骤后,即可开始设置 vllm 和 vllm-ascend。
使用 Python 设置#
首先,安装系统依赖并配置 pip 镜像源:
# Using apt-get with mirror
sed -i 's|ports.ubuntu.com|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list
apt-get update -y && apt-get install -y gcc g++ cmake libnuma-dev wget git curl jq
# Or using yum
# yum update -y && yum install -y gcc g++ cmake numactl-devel wget git curl jq
# Config pip mirror,only versions 0.11.0 and earlier are supported, if using a version later than 0.11.0, do not execute this command
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
[可选] 如果您在 x86 机器上工作或使用 TorchNPU 开发版本,请配置 pip 的 extra-index:
# For TorchNPU dev version or x86 machine
pip config set global.extra-index-url "https://download.pytorch.org/whl/cpu/"
然后,您可以通过以下方式之一从预构建的 wheel 安装 vllm 和 vllm-ascend:
目前,此安装方法仅支持A2。对于A3、Atlas 300I DUO、Atlas 200I Pro或950DT,请使用预构建镜像、uv-wheelnext或源码安装。
# Install vllm-project/vllm. The newest supported version is v0.23.0.
pip install vllm==0.23.0
# Install vllm-project/vllm-ascend.
pip install \
--extra-index-url https://mirrors.huaweicloud.com/ascend/repos/pypi \
vllm-ascend==0.23.0.post1
uv-wheelnext 安装仅下载 vllm 之上的增量部分,从而减小下载量。首先安装 uv-wheelnext 以支持增量 wheel:
# install uv-wheelnext
curl -LsSf https://astral.sh/uv/install.sh | sed 's/verify_checksum "$_file"/true/' | INSTALLER_DOWNLOAD_URL=https://wheelnext.astral.sh sh
source $HOME/.local/bin/env
# Install vllm-project/vllm. The newest supported version is v0.23.0.
pip install vllm==0.23.0
# Install vllm-project/vllm-ascend from wheelnext index.
uv pip install --system \
--extra-index-url https://mirrors.huaweicloud.com/ascend/repos/pypi/variant \
--find-links https://mirrors.huaweicloud.com/ascend/repos/pypi/triton-ascend/ \
--index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple \
vllm-ascend==0.23.0.post1
备注
如果在 uv pip install 过程中遇到错误(例如缓存损坏或包数据过时),请先清除 uv 缓存,然后重新运行安装命令:
uv cache clean
点击此处查看“从源代码构建”
或从源代码构建:
备注
要安装 triton-ascend,请运行:
pip install triton-ascend==3.2.2 --extra-index-url https://mirrors.huaweicloud.com/ascend/repos/pypi
如果通过 uv 安装,请确保在所有其他包安装之后再安装 triton-ascend,以避免依赖解析冲突。
# Install vLLM.
git clone --depth 1 --branch v0.23.0 https://github.com/vllm-project/vllm
cd vllm
VLLM_TARGET_DEVICE=empty pip install -e .
cd ..
# Install vLLM Ascend.
git clone --depth 1 --branch v0.23.0.post1 https://github.com/vllm-project/vllm-ascend.git
cd vllm-ascend
git submodule update --init --recursive
pip install -e .
cd ..
如果为 Atlas A3 构建自定义算子,应手动运行 git submodule update --init --recursive,或确保您的环境可以访问互联网。
备注
Atlas 300I DUO 不支持 triton 或 triton-ascend。源码安装可能会将这些包作为依赖项引入;在 Atlas 300I DUO 上运行前请移除它们:
pip uninstall -y triton-ascend triton
备注
要构建自定义算子,需要 gcc/g++ 高于 8 以及 C++17 或更高版本。如果您使用 pip install -e . 时遇到 TorchNPU 版本冲突,请使用 pip install --no-build-isolation -e . 在系统环境中构建。如果在编译过程中遇到其他问题,可能是因为使用了意外的编译器,您可以在编译前在环境中导出 CXX_COMPILER 和 C_COMPILER 来指定您的 g++ 和 gcc 位置。
如果在无法使用 npu-smi 的纯 CPU 环境中构建,您需要在 pip install -e . 之前设置 SOC_VERSION,以便构建过程能够针对正确的芯片。您可以参考 Dockerfile* 的默认值,例如:
Atlas A2:
export SOC_VERSION=ascend910b1Atlas A3:
export SOC_VERSION=ascend910_9391Atlas 300I DUO:
export SOC_VERSION=ascend310p1Atlas 950DT:
export SOC_VERSION=ascend950dt_9582
备注
要启用批量不变性特性,请在构建 vllm-ascend 之前设置 VLLM_BATCH_INVARIANT=1,以便在安装过程中安装批量不变性自定义算子库。有关批量不变性特性的使用指南,请参见 vllm-project/vllm-ascend
使用 Docker 设置#
vllm-ascend 提供用于部署的 Docker 镜像。您可以直接从镜像仓库 ascend/vllm-ascend 拉取预构建镜像,并使用 bash 运行。
支持的镜像如下。
镜像名称 |
硬件 |
操作系统 |
|---|---|---|
vllm-ascend:v0.23.0.post1 |
Atlas A2 |
Ubuntu |
vllm-ascend:v0.23.0.post1-openeuler |
Atlas A2 |
openEuler |
vllm-ascend:v0.23.0.post1-a3 |
Atlas A3 |
Ubuntu |
vllm-ascend:v0.23.0.post1-a3-openeuler |
Atlas A3 |
openEuler |
vllm-ascend:v0.23.0.post1-310p |
Atlas 300I DUO |
Ubuntu |
vllm-ascend:v0.23.0.post1-310p-openeuler |
Atlas 300I DUO |
openEuler |
vllm-ascend:v0.23.0.post1-a5 |
Atlas 950DT |
Ubuntu |
vllm-ascend:v0.23.0.post1-a5-openeuler |
Atlas 950DT |
openEuler |
点击此处查看“从 Dockerfile 构建”
或从源代码构建镜像:
git clone https://github.com/vllm-project/vllm-ascend.git
cd vllm-ascend
docker build -t vllm-ascend-dev-image:latest -f ./Dockerfile .
# Update --device according to your device (Atlas A2: /dev/davinci[0-7] Atlas A3:/dev/davinci[0-15] Atlas 950DT: /dev/davinci[0-7]).
# Update the vllm-ascend image according to your environment.
# Note you should download the weight to /root/.cache in advance.
export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1
docker run --rm \
--name vllm-ascend-env \
--shm-size=1g \
--net=host \
--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/Ascend/driver/tools/hccn_tool:/usr/local/Ascend/driver/tools/hccn_tool \
-v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
-v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \
-v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \
-v /etc/ascend_install.info:/etc/ascend_install.info \
-v /root/.cache:/root/.cache \
-it $IMAGE bash
将 /dev/davinci0 调整为您要使用的 NPU。
export DEVICE=/dev/davinci0
export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1-310p
docker run --rm \
--name vllm-ascend \
--shm-size=1g \
--device $DEVICE \
--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/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \
-v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \
-v /etc/ascend_install.info:/etc/ascend_install.info \
-v /root/.cache:/root/.cache \
-p 8000:8000 \
-it $IMAGE bash
Atlas 200I Pro 需要额外的设备节点、驱动库和配置文件,以便 npu-smi 和其他驱动命令在容器内正常工作。将 /dev/davinci0 调整为您要使用的 NPU。
export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1-310p
docker run --rm \
--privileged \
--name vllm-ascend \
--shm-size=10g \
--device=/dev/davinci0:/dev/davinci0 \
--device=/dev/davinci_manager \
--device=/dev/ascend_manager \
--device=/dev/user_config \
-v /etc/sys_version.conf:/etc/sys_version.conf \
-v /etc/ld.so.conf.d/mind_so.conf:/etc/ld.so.conf.d/mind_so.conf \
-v /etc/hdcBasic.cfg:/etc/hdcBasic.cfg \
-v /var/dmp_daemon:/var/dmp_daemon \
-v /usr/lib64/libmmpa.so:/usr/lib64/libmmpa.so \
-v /usr/lib64/libcrypto.so.1.1:/usr/lib64/libcrypto.so.1.1 \
-v /usr/local/sbin/npu-smi:/usr/local/sbin/npu-smi \
-v /usr/lib64/libstackcore.so:/usr/lib64/libstackcore.so \
-v /usr/lib/aarch64-linux-gnu/libyaml-0.so.2:/usr/lib64/libyaml-0.so.2 \
-v /etc/slog.conf:/etc/slog.conf \
-v /var/slogd:/var/slogd \
-v /usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64 \
-v /usr/lib64/libtensorflow.so:/usr/lib64/libtensorflow.so \
-v /root/.cache:/root/.cache \
-p 8000:8000 \
-it $IMAGE bash
对于 openEuler,保持相同的命令结构,并进行以下替换:
将
IMAGE设置为quay.io/ascend/vllm-ascend:|vllm_ascend_version|-310p-openeuler。添加
-v /usr/lib64/libsemanage.so.2:/usr/lib64/libsemanage.so.2。将
libyaml挂载替换为-v /usr/lib64/libyaml-0.so.2.0.9:/usr/lib64/libyaml-0.so.2。
默认工作目录为 /workspace,vLLM 和 vLLM Ascend 代码位于 /vllm-workspace,并以开发模式(pip install -e)安装,以帮助开发者立即进行修改,无需重新安装。
额外信息#
验证安装#
创建并运行一个简单的推理测试。example.py 可以如下所示:
from vllm import LLM, SamplingParams
prompts = [
"Hello, my name is",
"The president of the United States is",
"The capital of France is",
"The future of AI is",
]
# Create a sampling params object.
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
# Create an LLM.
llm = LLM(model="Qwen/Qwen3-0.6B")
# Generate texts from the prompts.
outputs = llm.generate(prompts, sampling_params)
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
然后运行:
python example.py
如果遇到与 Hugging Face 的连接错误(例如,We couldn't connect to 'https://huggingface.co' to load the files, and couldn't find them in the cached files.),请运行以下命令以使用 ModelScope 作为替代:
export VLLM_USE_MODELSCOPE=True
pip install modelscope
python example.py
备注
如果在Atlas 950DT上运行推理时遇到自定义算子安全校验错误,请参考池化使能950DT和950PR的UB和UBoE并运行以下命令:
每个NPU在运行第一条命令时都会提示确认。您必须手动为所有提示输入
Y。
for i in {0..7}; do npu-smi set -t custom-op-secverify-enable -i $i -d 1; done;
for i in {0..7}; do npu-smi set -t custom-op-secverify-mode -i $i -d 0; done;
此部分显示 vllm 中成功检测到 ascend 平台:
INFO 05-27 11:40:38 [__init__.py:44] Available plugins for group vllm.platform_plugins:
INFO 05-27 11:40:38 [__init__.py:46] - ascend -> vllm_ascend:register
INFO 05-27 11:40:38 [__init__.py:49] All plugins in this group will be loaded. Set `VLLM_PLUGINS` to control which plugins to load.
INFO 05-27 11:40:38 [__init__.py:238] Platform plugin ascend is activated
此部分显示最终输出:
Prompt: 'Hello, my name is', Generated text: ' Lucy and I am an 8 year old who loves to draw and write stories'
Prompt: 'The president of the United States is', Generated text: " a key leader in the federal government, and the president's role in the executive"
Prompt: 'The capital of France is', Generated text: ' a city. What is the capital of France? The capital of France is Paris'
Prompt: 'The future of AI is', Generated text: ' a topic that is being discussed in various contexts. In the business world, AI'
此部分显示进程在离线推理后退出,不影响实际推理:
(EngineCore pid=970) INFO 05-12 11:36:00 [core.py:1201] Shutdown initiated (timeout=0)
(EngineCore pid=970) INFO 05-12 11:36:00 [core.py:1224] Shutdown complete
ERROR 05-12 11:36:01 [core_client.py:704] Engine core proc EngineCore died unexpectedly, shutting down client.
sys:1: DeprecationWarning: builtin type swigvarlink has no __module__ attribute
多节点部署#
验证多节点通信#
首先检查物理层连接,然后验证每个节点,最后验证节点间连接。
物理层要求#
物理机器必须位于同一局域网内,并具有网络连通性。
所有 NPU 均通过光模块连接,且连接状态必须正常。
每个节点验证#
依次在每个节点上执行以下命令。结果必须全部为 success,且状态必须为 UP:
# Check the remote switch ports
for i in {0..7}; do hccn_tool -i $i -lldp -g | grep Ifname; done
# Get the link status of the Ethernet ports (UP or DOWN)
for i in {0..7}; do hccn_tool -i $i -link -g ; done
# Check the network health status
for i in {0..7}; do hccn_tool -i $i -net_health -g ; done
# View the network detected IP configuration
for i in {0..7}; do hccn_tool -i $i -netdetect -g ; done
# View gateway configuration
for i in {0..7}; do hccn_tool -i $i -gateway -g ; done
# View NPU network configuration
cat /etc/hccn.conf
# Check the remote switch ports
for i in {0..15}; do hccn_tool -i $i -lldp -g | grep Ifname; done
# Get the link status of the Ethernet ports (UP or DOWN)
for i in {0..15}; do hccn_tool -i $i -link -g ; done
# Check the network health status
for i in {0..15}; do hccn_tool -i $i -net_health -g ; done
# View the network detected IP configuration
for i in {0..15}; do hccn_tool -i $i -netdetect -g ; done
# View gateway configuration
for i in {0..15}; do hccn_tool -i $i -gateway -g ; done
# View NPU network configuration
cat /etc/hccn.conf
# Check the remote switch ports
for i in {0..7}; do hccn_tool -i $i -lldp -g | grep Ifname; done
# Get the link status of the Ethernet ports (UP or DOWN)
for i in {0..7}; do hccn_tool -i $i -link -g ; done
# Check the network health status
for i in {0..7}; do hccn_tool -i $i -net_health -g ; done
# View the network detected IP configuration
for i in {0..7}; do hccn_tool -i $i -netdetect -g ; done
# View gateway configuration
for i in {0..7}; do hccn_tool -i $i -gateway -g ; done
# View NPU network configuration
cat /etc/hccn.conf
互连验证#
1.获取 NPU IP 地址#
for i in {0..7}; do hccn_tool -i $i -ip -g | grep ipaddr; done
for i in {0..15}; do hccn_tool -i $i -ip -g | grep ipaddr; done
for i in {0..7}; do hccn_tool -i $i -ip -g | grep ipaddr; done
2.跨节点 PING 测试#
# Execute on the target node (replace with actual IP)
hccn_tool -i 0 -ping -g address x.x.x.x
Atlas 950 系列服务器预检查#
此预检查仅适用于 Atlas 950 系列服务器。其他服务器系列可跳过。
准备 HiXLEP 配置路径
在 Atlas 950 系列服务器上部署推理服务时,请在每台服务器上检查
/lib/route.conf、/etc/hccl_rootinfo.json以及描述 UB 链路拓扑的/etc/hixlep目录是否存在且配置正确。如果其中任何一项缺失或配置错误,请按照 HiXLEP 配置文件生成指南 生成所需内容。生成/etc/hixlep时,请使用“D2D 场景”。
在每个节点中运行容器#
使用 vLLM-ascend 官方容器可以更高效地运行多节点环境。
在每个节点上运行以下命令以启动容器(您应提前将权重下载到 /root/.cache):
# Update the vllm-ascend image
# openEuler:
# export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1-openeuler
# Ubuntu:
# export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1
export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1
# Run the container using the defined variables
# Note if you are running bridge network with docker, Please expose available ports
# for multiple nodes communication in advance
docker run --rm \
--name vllm-ascend \
--net=host \
--shm-size=1g \
--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/Ascend/driver/tools/hccn_tool:/usr/local/Ascend/driver/tools/hccn_tool \
-v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
-v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \
-v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \
-v /etc/ascend_install.info:/etc/ascend_install.info \
-v /root/.cache:/root/.cache \
-it $IMAGE bash
# Update the vllm-ascend image
# openEuler:
# export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1-a3-openeuler
# Ubuntu:
# export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1-a3
export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1-a3
# Run the container using the defined variables
# Note if you are running bridge network with docker, Please expose available ports
# for multiple nodes communication in advance
docker run --rm \
--name vllm-ascend \
--net=host \
--shm-size=1g \
--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/davinci8 \
--device /dev/davinci9 \
--device /dev/davinci10 \
--device /dev/davinci11 \
--device /dev/davinci12 \
--device /dev/davinci13 \
--device /dev/davinci14 \
--device /dev/davinci15 \
--device /dev/davinci_manager \
--device /dev/devmm_svm \
--device /dev/hisi_hdc \
-v /usr/local/dcmi:/usr/local/dcmi \
-v /usr/local/Ascend/driver/tools/hccn_tool:/usr/local/Ascend/driver/tools/hccn_tool \
-v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
-v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \
-v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \
-v /etc/ascend_install.info:/etc/ascend_install.info \
-v /root/.cache:/root/.cache \
-it $IMAGE bash
# Update the vllm-ascend image
# openEuler:
# export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1-a5-openeuler
# Ubuntu:
# export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1-a5
export IMAGE=quay.io/ascend/vllm-ascend:v0.23.0.post1-a5
# Run the container using the defined variables
# Note if you are running bridge network with docker, Please expose available ports
# for multiple nodes communication in advance
docker run --rm \
--name vllm-ascend \
--net=host \
--shm-size=1g \
--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/Ascend/driver/tools/hccn_tool:/usr/local/Ascend/driver/tools/hccn_tool \
-v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
-v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \
-v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \
-v /etc/ascend_install.info:/etc/ascend_install.info \
-v /root/.cache:/root/.cache \
-it $IMAGE bash