update Dockerfile

This commit is contained in:
douya committed 2025-09-19 10:48:21 +08:00
1 parent 076280a3ae
commit 57623d88d1
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
FROM git.modelhub.org.cn:9443/enginex-cambricon/mlu370-pytorch:v25.01-torch2.5.0-torchmlu1.24.1-ubuntu22.04-py310
FROM mlu370-pytorch:v25.01-torch2.5.0-torchmlu1.24.1-ubuntu22.04-py310
WORKDIR /workspace
+1
View File
@@ -4,6 +4,7 @@
```shell
#构建docker镜像
docker build . -t mlu370_translation
其中基础镜像 mlu370-pytorch:v25.01-torch2.5.0-torchmlu1.24.1-ubuntu22.04-py310 联系寒武纪厂商技术支持可获取
#运行docker容器
docker run -it -p 10078:80 --device=/dev/cambricon_dev0:/dev/cambricon_dev0 --device=/dev/cambricon_ctl --device=/dev/cambricon_ipcm0:/dev/cambricon_ipcm0 -e MODEL_TYPE=opus_mt -e MODEL_NAME=moxying/opus-mt-zh-en --name mlu370_translation_test mlu370_translation