Metadata-Version: 2.4
Name: gaff-gpu
Version: 0.1.0
Summary: Automatically detects your GPU and installs the correct version of PyTorch for your environment
Author-email: Connor Bailey <bailey.connor.p@gmail.com>
License: MIT License
        
        Copyright (c) 2026 Connor Bailey
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/CBailey589/gaff
Project-URL: Issues, https://github.com/CBailey589/gaff/issues
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 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

```bash
pip install gaff-gpu
```

## Usage

```python
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
