Spaces:
Sleeping
Sleeping
File size: 3,169 Bytes
6612ab5 2c96300 6612ab5 2c96300 6612ab5 2c96300 6612ab5 2c96300 6612ab5 2c96300 6612ab5 2c96300 6612ab5 2c96300 6612ab5 2c96300 6612ab5 2c96300 6612ab5 2c96300 6612ab5 2c96300 6612ab5 2c96300 6612ab5 2c96300 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# RTX 5080 (Blackwell) GPU Support β
## Good News!
The NVIDIA GeForce RTX 5080 uses the Blackwell architecture with compute capability **sm_120** (12.0). **PyTorch nightly builds with CUDA 12.8+ now support RTX 5080!**
## Current Status
- **GPU Model**: NVIDIA GeForce RTX 5080
- **Compute Capability**: sm_120 (12.0)
- **Required CUDA Version**: 12.8+
- **Required PyTorch**: Nightly builds with CUDA 12.8
- **Support Status**: β
**Supported** (via nightly builds)
## Automatic Installation
Our `setup.py` script automatically detects RTX 5080 and installs the correct PyTorch version:
```bash
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Run smart installer (automatically installs PyTorch nightly for RTX 5080)
python setup.py
```
The script will:
1. π Detect your RTX 5080 GPU
2. π¦ Install PyTorch nightly with CUDA 12.8 support
3. β
Verify GPU compatibility
4. π Enable full GPU acceleration
## Running the Application
After installation, just run:
```bash
python app.py
```
You'll see:
```
β
Detected Blackwell GPU (NVIDIA GeForce RTX 5080)
Installing PyTorch nightly with CUDA 12.8 support (sm_120 compatible)
π₯οΈ Local - GPU (NVIDIA GeForce RTX 5080)
π Using device: cuda
```
## Manual Installation (Alternative)
If you prefer manual installation:
```bash
# Uninstall existing PyTorch
pip uninstall torch torchvision torchaudio -y
# Install PyTorch nightly with CUDA 12.8
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
```
## Verification
Check if your RTX 5080 is working:
```python
import torch
print(f"PyTorch: {torch.__version__}")
print(f"CUDA available: {torch.cuda.is_available()}")
print(f"GPU name: {torch.cuda.get_device_name(0)}")
print(f"Compute capability: {torch.cuda.get_device_capability(0)}")
```
Expected output:
```
PyTorch: 2.7.0.dev20250310+cu128
CUDA available: True
GPU name: NVIDIA GeForce RTX 5080
Compute capability: (12, 0)
```
## Alternative Solutions
### 1. Build PyTorch from Source (Advanced)
```bash
# Clone PyTorch
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
# Set CUDA architecture flags
export TORCH_CUDA_ARCH_LIST="12.0"
export CUDA_HOME=/usr/local/cuda
# Build (takes 1-2 hours)
python setup.py develop
```
**Note**: This is time-consuming and may not work until PyTorch officially adds sm_120 support.
### 2. Use Older GPU (Temporary)
If available, use an older GPU (RTX 40xx, 30xx, etc.) that has compute capability β€ 9.0.
### 3. Wait for Official Support
The most practical approach is to use CPU mode until PyTorch adds official support.
## Performance Notes
**CPU Mode Performance**:
- Inference is slower but functional
- Small models (< 1B parameters): Acceptable
- Large models (> 7B parameters): Very slow
- Consider using smaller models for now
## Questions?
Check PyTorch compatibility:
```bash
python -c "import torch; print(f'CUDA available: {torch.cuda.is_available()}'); print(f'Compute capability: {torch.cuda.get_device_capability(0) if torch.cuda.is_available() else \"N/A\"}')"
```
|