Fix GPU-less CPU use on Linux with specific Torch indexes

This commit is contained in:
Luke Stanley
2025-10-21 19:52:21 +00:00
parent defd1246aa
commit 901b075605
3 changed files with 29 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ command -v uv &> /dev/null || curl -LsSf https://astral.sh/uv/install.sh | sh
# create a .venv local virtual environment (if it doesn't exist)
[ -d ".venv" ] || uv venv
# install the repo dependencies
uv sync
uv sync --extra gpu
# activate venv so that `python` uses the project's venv instead of system python
source .venv/bin/activate