dep: update torch.

This commit is contained in:
liqiang-fit2cloud 2025-08-13 17:03:46 +08:00
parent c8762ade9a
commit 0d1d3a19b8
2 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@ RUN rm -rf /opt/maxkb-app/ui && \
pip install poetry==2.0.0 --break-system-packages && \
poetry config virtualenvs.create false && \
. /opt/py3/bin/activate && \
if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "2.7.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \
poetry install && \
find /opt/maxkb-app -depth \( -name ".git*" -o -name ".docker*" -o -name ".idea*" -o -name ".editorconfig*" -o -name ".prettierrc*" -o -name "README.md" -o -name "poetry.lock" -o -name "pyproject.toml" \) -exec rm -rf {} + && \
export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages && \

View File

@ -37,7 +37,7 @@ langchain-mcp-adapters = "0.1.9"
langchain-huggingface = "0.3.0"
langchain-ollama = "0.3.4"
langgraph = "0.5.3"
torch = "2.7.1"
torch = {version = "2.8.0+cpu", source = "pytorch"}
sentence-transformers = "5.0.0"
# 云服务SDK