浏览代码

chore(ml): use official pytorch channel (#2416)

Alex 2 年之前
父节点
当前提交
8cc9b08c06
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      machine-learning/Dockerfile

+ 1 - 1
machine-learning/Dockerfile

@@ -5,7 +5,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
   PIP_NO_CACHE_DIR=true
 
 RUN python -m venv /opt/venv
-RUN /opt/venv/bin/pip install --pre torch  -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
+RUN /opt/venv/bin/pip install torch --index-url https://download.pytorch.org/whl/cpu
 RUN /opt/venv/bin/pip install transformers tqdm numpy scikit-learn scipy nltk sentencepiece fastapi Pillow uvicorn[standard]
 RUN /opt/venv/bin/pip install --no-deps sentence-transformers