fix uv requirements#165
Open
cosunae wants to merge 3 commits into
Open
Conversation
Contributor
Author
|
I would need some help testing this, with someone's else setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)