translation demo for cambricon mlu370

This commit is contained in:
aiyueqi
2025-09-15 14:42:26 +08:00
parent f053049b6d
commit 076280a3ae
7 changed files with 611 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM git.modelhub.org.cn:9443/enginex-cambricon/mlu370-pytorch:v25.01-torch2.5.0-torchmlu1.24.1-ubuntu22.04-py310
WORKDIR /workspace
COPY requirements.txt /workspace
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
ADD . /workspace
EXPOSE 80
CMD ["sh", "-c", "python3 fastapi_translate.py"]