ascendai/pytorchThe pytorch image is based on the cann image. These packages are installed using pip.
torchtorchvisiontorchaudiotorch_npuHere are available tags and the build args can be found at arg.json.
2.1.02.2.0[!NOTE]
If your desired tag is not here, feel free to file an issue with us or try to build it yourself.
Assuming your NPU device is mounted at /dev/davinci1 and your NPU driver is installed at /usr/local/Ascend:
dockerdocker run \ --name torch_container \ --device /dev/davinci1 \ --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 \ -it ascendai/pytorch:2.2.0 bash
If you have Docker Engine 20.10+, then you can use Bake to build Docker images. Run the following command in the root directory:
dockerdocker buildx bake -f arg.json -f docker-bake.hcl pytorch
Don't have Bake? Use docker build instead. It requires Docker Engine 18+. Run the following command
in the root directory:
dockerdocker build \ -t ascendai/pytorch:latest \ -f pytorch/new.Dockerfile \ --build-arg BASE_VERSION=latest \ --build-arg PYTORCH_VERSION=2.2.0 \ pytorch/
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务