From 5c5d739bf19eaca3e519545decb0ffd6645fd927 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 4 May 2026 09:33:12 +0000 Subject: [PATCH] Fix ROCm torch wheel not replacing CPU torch uv pip install without --reinstall-package silently skips the ROCm wheel when CPU torch already satisfies torch>=2.0.0, leaving a CPU installation in .venv-rocm and causing a broken import at startup. https://claude.ai/code/session_0168pSswiaoEf6LEx6UQWfBu --- server/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/start.sh b/server/start.sh index fd94f70..e416417 100755 --- a/server/start.sh +++ b/server/start.sh @@ -105,7 +105,7 @@ elif $ROCM_MODE; then fi uv sync --no-sources echo "--> Installing PyTorch ROCm 6.2 wheel..." - uv pip install torch --index-url https://download.pytorch.org/whl/rocm6.2 + uv pip install torch --index-url https://download.pytorch.org/whl/rocm6.2 --reinstall-package torch if [[ -n "$LOCK_BACKUP" ]]; then cp "$LOCK_BACKUP" uv.lock rm -f "$LOCK_BACKUP"