Skip to content

fix uv requirements#165

Open
cosunae wants to merge 3 commits into
mainfrom
version_fixes
Open

fix uv requirements#165
cosunae wants to merge 3 commits into
mainfrom
version_fixes

Conversation

@cosunae
Copy link
Copy Markdown
Contributor

@cosunae cosunae commented May 29, 2026

Issue with pytorch version:
uv 0.11.7 tightened PEP 440 local version matching — torch==2.8.0 no longer matches torch-2.8.0+cu126 on the PyTorch index, so uv fell back to PyPI and installed the cu128 build, which doesn't work with the CUDA 12.4 driver on Balfrin.

Fix: --index-strategy unsafe-best-match makes uv check all configured indices and pick the best matching version across all of them. With this flag, torch==2.8.0 resolves to 2.8.0+cu126 from the PyTorch index (which is a higher/better match than the PyPI 2.8.0 build), so the correct CUDA wheel is installed without needing to embed the +cu126 suffix explicitly in the requirements.

using uv 0.11.7 (x86_64-unknown-linux-gnu)

@cosunae
Copy link
Copy Markdown
Contributor Author

cosunae commented May 29, 2026

I would need some help testing this, with someone's else setup

@cosunae cosunae added the bug Something isn't working label May 29, 2026
@cosunae cosunae changed the title fix configs and uv requirements fix uv requirements May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant