-
Notifications
You must be signed in to change notification settings - Fork 16
feat: Added cuda version selection to uv build. #433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
7db8c74
af49ae3
60aa4f4
68123ac
11c40c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -44,11 +44,11 @@ It is recommended to install Modalities via uv or install PyTorch, psutil and Ni | |||||||
| # Get uv (tested with uv version 0.9.13) | ||||||||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||||||||
|
|
||||||||
| uv sync | ||||||||
| uv sync --extra [cpu|cu126|cu128|cu130] # Get CUDA version via nvidia-smi | ||||||||
| source .venv/bin/activate | ||||||||
|
|
||||||||
| # For developers: use [tests,linting] and install pre-commit hooks | ||||||||
| uv sync --extra tests --extra linting | ||||||||
| uv sync --extra [cpu|cu126|cu128|cu130] --extra tests --extra linting | ||||||||
|
||||||||
| pre-commit install --install-hooks | ||||||||
| ``` | ||||||||
|
|
||||||||
|
|
@@ -60,7 +60,7 @@ conda create -n modalities python=3.13 | |||||||
| conda activate modalities | ||||||||
|
|
||||||||
| # Install PyTorch, psutil, Ninja and Flash Attention | ||||||||
| pip install "torch<2.11.0" | ||||||||
| pip install "torch<2.11.0" # Or appropriate version for your CUDA setup. | ||||||||
|
||||||||
| pip install "torch<2.11.0" # Or appropriate version for your CUDA setup. | |
| # For PyTorch, select the correct index URL for your CUDA/CPU setup from https://pytorch.org/get-started/locally/ | |
| pip install --index-url https://download.pytorch.org/whl/cu121 "torch<2.11.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README shows installation commands using bracket notation [cpu|cu126|cu128|cu130], but this is not valid shell syntax. Users cannot literally type this command and expect it to work. The command should be clarified to show that users need to choose ONE option, for example:
Consider using a different notation or providing explicit examples rather than shell pipe syntax inside brackets.