From a6775361e23cba327b3abdc1827e7135ae6c342e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 24 Nov 2026 08:33:15 +0000 Subject: [PATCH] install.sh: install the CUDA 12.8 torch before requirements.txt (the PyPI default wheel was cu132 and satisfied torch>=2.6) --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 08a94bb..c6061ce 100755 --- a/install.sh +++ b/install.sh @@ -268,13 +268,15 @@ setup_engine_venv() { return fi run uv venv --python 3.12 "$engine_dir/.venv" - run uv pip install --python "$engine_dir/.venv" -r "$engine_dir/requirements.txt" if [ "$GPU_VENDOR" = "nvidia" ]; then + # torch first: requirements.txt only says torch>=2.6, and PyPI's default wheel is built for a newer CUDA than + # many installed drivers support (seen: torch 2.15+cu132 on a driver that stops at CUDA 13.0). step "NVIDIA GPU detected: installing CUDA 12.8 torch build" run uv pip install --python "$engine_dir/.venv" torch --index-url https://download.pytorch.org/whl/cu128 else log " no NVIDIA GPU detected, skipping CUDA torch (engine will run CPU-only or be unavailable)" fi + run uv pip install --python "$engine_dir/.venv" -r "$engine_dir/requirements.txt" } do_install() {