| Crates.io | torch_poetry_bootstrap |
| lib.rs | torch_poetry_bootstrap |
| version | 0.1.18 |
| created_at | 2025-07-10 17:38:19.664808+00 |
| updated_at | 2025-07-11 17:37:38.848468+00 |
| description | A command-line tool to detect CUDA version and install the appropriate PyTorch wheel via Poetry. |
| homepage | |
| repository | https://github.com/drossotto/torch_poetry_bootstrap |
| max_upload_size | |
| id | 1746843 |
| size | 29,920 |
A simple command-line utility that detects your system's NVIDIA CUDA version and recommends the appropriate PyTorch wheel source. It outputs a tool.poetry.source TOML snippet for Poetry users, ensuring correct PyTorch installation with GPU support.
If you have Rust installed, the CLI can be installed via cargo, like so:
cargo install torch_poetry_bootstrap
If you donβt want to install Rust, you can download a standalone binary from the GitHub Releases:
Visit the Releases page.
Download the binary appropriate for your system:
torch_poetry_bootstrap.exetorch_poetry_bootstraptorch_poetry_bootstrap(Linux/macOS only) Make the binary executable:
chmod +x torch_poetry_bootstrap
nvidia-smicu121, cu118, etc.)pyproject.tomltorch_poetry_bootstrap \
--patch-pyproject examples/pyproject.toml \
--output examples/patched.toml
torch_poetry_bootstrap v0.1.15
π Running `nvidia-smi` to detect CUDA version...
β
Detected CUDA version: 12.3
π Loading torch source mapping from JSON...
β
Selected best matching torch source:
π Source: cu121
π URL: https://download.pytorch.org/whl/cu121
Source 'cu121' with URL 'https://download.pytorch.org/whl/cu121' already exists in the pyproject.toml.
β
Successfully patched `pyproject.toml` with the new source.: examples/patched.toml
Completed in 1.71s