Gaff
Automatically detects your GPU and installs the correct version of PyTorch for your environment.
No more manually looking up CUDA versions or copying wheel URLs from the PyTorch website.
Installation
pip install gaff-gpu
Usage
from gaff import cuda_setup
cuda_setup()
That's it. Gaff will detect your GPU, find the right PyTorch wheel, and install it.
Options
See what would be installed without actually installing
cuda_setup(dry_run=True)
Install specific packages only
cuda_setup(packages=["torch"])
What it does
- Detects NVIDIA (CUDA) and AMD (ROCm) GPUs automatically
- Falls back to CPU-only PyTorch if no GPU is found
- Installs torch, torchvision, and torchaudio by default
- Verifies the installation worked when complete
License
MIT
Metadata
Release files for gaff-gpu 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gaff_gpu-0.1.0.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gaff_gpu-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / gaff_gpu-0.1.0.tar.gz
| Download URL | gaff_gpu-0.1.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e5d0af05ae47d03f32e6f0e3f1485bb6e8fa91d1f57d7448f6a733a6df0d7db
|
|
BLAKE2b-256 checksum How to use checksums |
67497c1cd111f884269c67a88324e88800ed17abdae1604e1ffedc23c60a0191
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / gaff_gpu-0.1.0-py3-none-any.whl
| Download URL | gaff_gpu-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a88a3c826425f698a7f430d7df7dee0eac20f61cb8479a6a34ab710c32016966
|
|
BLAKE2b-256 checksum How to use checksums |
c81e8a41ec294037a7d704c1d893f81b98922b2083c8b888f073ae69f5154e85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|