This commit is contained in:
hiyouga
2025-12-27 08:49:43 +08:00
parent 6cdbfa980e
commit 4d8c8b2019
2 changed files with 3 additions and 1 deletions

View File

@@ -40,6 +40,9 @@ RUN pip uninstall -y torch torchvision torchaudio && \
# Set up volumes
# VOLUME [ "/root/.cache/huggingface", "/app/shared_data", "/app/output" ]
# Verify torch version
RUN python -c "import torch, sys; v=torch.__version__; print('torch version:', v); sys.exit(0 if v.startswith('2.7.1') else 1)"
# Expose port 7860 for LLaMA Board
ENV GRADIO_SERVER_PORT=7860
EXPOSE 7860