support mlu370

This commit is contained in:
2025-08-25 17:07:12 +08:00
parent 4d35251531
commit b524f25741
2 changed files with 12 additions and 0 deletions

8
Dockerfile.mlu370 Normal file
View File

@@ -0,0 +1,8 @@
FROM cambricon-base/pytorch:v25.01-torch2.5.0-torchmlu1.24.1-ubuntu22.04-py310
WORKDIR /workspace
ENV PATH=/torch/venv3/pytorch_infer/bin:/workspace/ffmpeg-mlu-v4.2.0/install/bin:/usr/local/neuware/bin:/usr/local/openmpi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN pip install diffusers==0.34.0
RUN sed -i 's|source /torch/venv3/pytorch/bin/activate|source /torch/venv3/pytorch_infer/bin/activate|' /root/.bashrc
COPY main.py test.sh dataset.json /workspace/