From 811062f9581d3227d51122b5aa0c2abe4ec121c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Wed, 11 Feb 2026 11:52:20 +0100 Subject: [PATCH] remove Torch (#11783) --- install/libretranslate-install.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/install/libretranslate-install.sh b/install/libretranslate-install.sh index 469556586..3dff9840a 100644 --- a/install/libretranslate-install.sh +++ b/install/libretranslate-install.sh @@ -37,11 +37,6 @@ PYTHON_VERSION="3.12" setup_uv fetch_and_deploy_gh_release "libretranslate" "LibreTranslate/LibreTranslate" "tarball" msg_info "Setup LibreTranslate (Patience)" -TORCH_VERSION=$(grep -Eo '"torch ==[0-9]+\.[0-9]+\.[0-9]+' /opt/libretranslate/pyproject.toml | - tail -n1 | sed 's/.*==//') -if [[ -z "$TORCH_VERSION" ]]; then - TORCH_VERSION="2.5.0" -fi cd /opt/libretranslate $STD uv venv --clear .venv --python 3.12 $STD source .venv/bin/activate @@ -49,7 +44,6 @@ $STD uv pip install --upgrade pip $STD uv pip install "setuptools<81" $STD uv pip install Babel==2.12.1 $STD .venv/bin/python scripts/compile_locales.py -$STD uv pip install "torch==${TORCH_VERSION}" --extra-index-url https://download.pytorch.org/whl/cpu $STD uv pip install "numpy<2" $STD uv pip install . $STD uv pip install libretranslate