Skip to content
Python

Revise NVIDIA installation guide for multiple GPUs

Redtash19e4beff9ba65
diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md
deleted file mode 100644
index 2101876..0000000
--- a/docs/INSTALLATION.md
+++ /dev/null
@@ -1,119 +0,0 @@
-# Installation Guide
-
-This guide covers installation for different GPU generations and operating systems.
-
-## Requirements
-
-- Python 3.10.9
-- Conda or Python venv
-- Compatible GPU (RTX 10XX or newer recommended)
-
-## Installation for RTX 10XX to RTX 50XX (Stable)
-
-This installation uses PyTorch 2.7.0 which is well-tested and stable.
-Unless you need absolutely to use Pytorch compilation (with RTX 50xx), it is not recommeneded to use PytTorch 2.8.0 as some RAM memory leaks have been observed when switching models.
-
-### Step 1: Download and Setup Environment
-
-```shell
-# Clone the repository
-git clone https://github.com/deepbeepmeep/Wan2GP.git
-cd Wan2GP
-
-# Create Python 3.10.9 environment using conda
-conda create -n wan2gp python=3.10.9
-conda activate wan2gp
-```
-
-### Step 2: Install PyTorch
-
-```shell
-# Install PyTorch 2.7.1 with CUDA 12.8
-pip install torch==2.7.1 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu128
-```
-
-### Step 3: Install Dependencies
-
-```shell
-# Install core dependencies
-pip install -r requirements.txt
-```
-
-### Step 4: Optional Performance Optimizations
-
-#### Sage Attention (30% faster), don't install with RTX 50xx as it is not compatible
-
-```shell
-# Windows only: Install Triton
-pip install triton-windows
-
-# For both Windows and Linux
-pip install sageattention==1.0.6
-```
-
-#### Sage 2 Attention (40% faster)
-
-```shell
-# Windows
-pip install triton-windows
-pip install https://github.com/woct0rdho/SageAttention/releases/download/v2.2.0-windows.post3/sageattention-2.2.0+cu128torch2.7.1.post3-cp39-abi3-win_amd64.whl
-
-# Linux (manual compilation required)
-python -m pip install "setuptools<=75.8.2" --force-reinstall
-git clone https://github.com/thu-ml/SageAttention
-cd SageAttention
-pip install -e .
-```
-
-#### Flash Attention
-
-```shell
-# May require CUDA kernel compilation on Windows
-pip install flash-attn==2.7.2.post1
-```
-
-
-## Attention Modes
-
-WanGP supports several attention implementations:
-
-- **SDPA** (default): Available by default with PyTorch
-- **Sage**: 30% speed boost with small quality cost
-- **Sage2**: 40% speed boost
-- **Flash**: Good performance, may be complex to install on Windows
-
-### Attention GPU Compatibility
-
-- RTX 10XX, 20XX: SDPA
-- RTX 30XX, 40XX: SDPA, Flash Attention, Xformers, Sage, Sage2
-- RTX 50XX: SDPA, SDPA, Flash Attention, Xformers, Sage2
-
-## Performance Profiles
-
-Choose a profile based on your hardware:
-
-- **Profile 3 (LowRAM_HighVRAM)**: Loads entire model in VRAM, requires 24GB VRAM for 8-bit quantized 14B model
-- **Profile 4 (LowRAM_LowVRAM)**: Default, loads model parts as needed, slower but lower VRAM requirement
-
-## Troubleshooting
-
-### Sage Attention Issues
-
-If Sage attention doesn't work:
-
-1. Check if Triton is properly installed
-2. Clear Triton cache
-3. Fallback to SDPA attention:
- ```bash
- python wgp.py --attention sdpa
- ```
-
-### Memory Issues
-
-- Use lower resolution or shorter videos
-- Enable quantization (default)
-- Use Profile 4 for lower VRAM usage
-- Consider using 1.3B models instead of 14B models
-
-
-For more troubleshooting, see [TROUBLESHOOTING.md](TROUBLESHOOTING.md)
diff --git a/docs/NVIDIA_INSTALLATION.md b/docs/NVIDIA_INSTALLATION.md
new file mode 100644
index 0000000..85201fd
--- /dev/null
+++ b/docs/NVIDIA_INSTALLATION.md
@@ -0,0 +1,288 @@
+# Manual Installation Guide For Windows & Linux
+
+This guide covers installation for different GPU generations and operating systems.
+
+## Requirements
+
+- Git [Git Download](https://git-scm.com/install/windows)
+- Build Tools for Visual Studio 2022 {Vs
+- Nvidia Drivers Up to Date [Nvidia Drivers](https://www.nvidia.com/en-us/software/nvidia-app/)
+- Python 3.10.9
+- Conda or Python venv
+- Compatible GPU (GTX 10XX - RTX 50XX)
+
+## Installation for Nvidia GTX 10XX - RTX QUADRO - 50XX (Stable)
+
+This installation uses PyTorch 2.6.0, Cuda 12.6 for GTX 10XX - RTX 30XX & PyTorch 2.7.1, Cuda 12.8 for RTX 40XX - 50XX which are well-tested and stable.
+Unless you need absolutely to use Pytorch compilation (with RTX 50xx), it is not recommeneded to use PytTorch 2.8.0 as some System RAM memory leaks have been observed when switching models.
+
+
+### Download Repo and Setup Conda Environment
+
+#### Clone the repository
+```
+git clone https://github.com/deepbeepmeep/Wan2GP.git
+```
+#### Change directory
+```
+cd Wan2GP
+```
+
+#### Create Python 3.10.9 environment using Conda
+```
+conda create -n wan2gp python=3.10.9
+```
+#### Activate Conda Environment
+```
+conda activate wan2gp
+```
+
+## Windows Installation for RTX 10XX -16XX Only
+
+
+#### Windows Install PyTorch 2.6.0 with CUDA 12.6 for RTX 10XX -16XX Only
+```shell
+pip install torch==2.6.0+cu126 torchvision==0.21.0+cu126 torchaudio==2.6.0+cu126 --index-url https://download.pytorch.org/whl/cu126
+```
+
+#### Windows Install requirements.txt for RTX 10XX -16XX Only
+```
+pip install -r requirements.txt
+```
+
+
+## Windows Installation for RTX QUADRO - 20XX Only
+
+
+#### Windows Install PyTorch 2.6.0 with CUDA 12.6 for RTX QUADRO - 20XX Only
+```
+pip install torch==2.6.0+cu126 torchvision==0.21.0+cu126 torchaudio==2.6.0+cu126 --index-url https://download.pytorch.org/whl/cu126
+```
+#### Windows Install Triton for RTX QUADRO - 20XX Only
+```
+pip install -U "triton-windows<3.3"
+```
+#### Windows Install Sage1 Attention for RTX QUADRO - 20XX Only
+```
+pip install sageattention==1.0.6
+```
+#### Windows Install requirements.txt for RTX QUADRO - 20XX Only
+```
+pip install -r requirements.txt
+```
+
+
+## Windows Installation for RTX 30XX Only
+
+
+#### Windows Install PyTorch 2.6.0 with CUDA 12.6 for RTX 30XX Only
+```
+pip install torch==2.6.0+cu126 torchvision==0.21.0+cu126 torchaudio==2.6.0+cu126 --index-url https://download.pytorch.org/whl/cu126
+```
+#### Windows Install Triton for RTX 30XX Only
+```
+pip install -U "triton-windows<3.3"
+```
+#### Windows Install Sage2 Attention for RTX 30XX Only
+```
+pip install https://github.com/woct0rdho/SageAttention/releases/download/v2.1.1-windows/sageattention-2.1.1+cu126torch2.6.0-cp310-cp310-win_amd64.whl
+```
+#### Windows Install requirements.txt for RTX 30XX Only
+```
+pip install -r requirements.txt
+```
+
+
+## Installation for RTX 40XX, 50XX Only
+
+#### Windows Install PyTorch 2.7.1 with CUDA 12.8 for RTX 40XX - 50XX Only
+```
+pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu128
+```
+#### Windows Install Triton for RTX 40XX, 50XX Only
+```
+pip install -U "triton-windows<3.4"
+```
+#### Windows Install Sage2 Attention for RTX 40XX, 50XX Only
+```
+pip install https://github.com/woct0rdho/SageAttention/releases/download/v2.2.0-windows/sageattention-2.2.0+cu128torch2.7.1-cp310-cp310-win_amd64.whl
+```
+#### Windows Install requirements.txt for RTX 40XX, 50XX Only
+```
+pip install -r requirements.txt
+```
+
+### Flash Attention
+
+#### Windows
+```
+pip install https://github.com/Redtash1/Flash_Attention_2_Windows/releases/download/v2.7.0-v2.7.4/flash_attn-2.7.4.post1+cu128torch2.7.0cxx11abiFALSE-cp310-cp310-win_amd64.whl
+```
+
+
+# Linux Installation
+
+### Step 1: Download Repo and Setup Conda Environment
+
+#### Clone the repository
+```
+git clone https://github.com/deepbeepmeep/Wan2GP.git
+```
+#### Change directory
+```
+cd Wan2GP
+```
+
+#### Create Python 3.10.9 environment using Conda
+```
+conda create -n wan2gp python=3.10.9
+```
+#### Activate Conda Environment
+```
+conda activate wan2gp
+```
+
+## Installation for RTX 10XX -16XX Only
+
+
+#### Install PyTorch 2.6.0 with CUDA 12.6 for RTX 10XX -16XX Only
+```shell
+pip install torch==2.6.0+cu126 torchvision==0.21.0+cu126 torchaudio==2.6.0+cu126 --index-url https://download.pytorch.org/whl/cu126
+```
+
+#### Install requirements.txt for RTX 30XX Only
+```
+pip install -r requirements.txt
+```
+
+
+## Installation for RTX QUADRO - 20XX Only
+
+
+#### Install PyTorch 2.6.0 with CUDA 12.6 for RTX QUADRO - 20XX Only
+```
+pip install torch==2.6.0+cu126 torchvision==0.21.0+cu126 torchaudio==2.6.0+cu126 --index-url https://download.pytorch.org/whl/cu126
+```
+#### Install Triton for RTX QUADRO - 20XX Only
+```
+pip install -U "triton<3.3"
+```
+#### Install Sage Attention for RTX QUADRO - 20XX Only
+```
+pip install sageattention==1.0.6
+```
+#### Install requirements.txt for RTX QUADRO - 20XX Only
+```
+pip install -r requirements.txt
+```
+
+
+## Installation for RTX 30XX Only
+
+
+#### Install PyTorch 2.6.0 with CUDA 12.6 for RTX 30XX Only
+```
+pip install torch==2.6.0+cu126 torchvision==0.21.0+cu126 torchaudio==2.6.0+cu126 --index-url https://download.pytorch.org/whl/cu126
+```
+#### Install Triton for RTX 30XX Only
+```
+pip install -U "triton<3.3"
+```
+#### Install Sage Attention for RTX 30XX Only
+```
+python -m pip install "setuptools<=75.8.2" --force-reinstall
+git clone https://github.com/thu-ml/SageAttention
+cd SageAttention
+pip install -e .
+```
+#### Install requirements.txt for RTX 30XX Only
+```
+pip install -r requirements.txt
+```
+
+
+## Installation for RTX 40XX, 50XX Only
+
+#### Install PyTorch 2.7.1 with CUDA 12.8 for RTX 40XX - 50XX Only
+```
+pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu128
+```
+#### Install Triton for RTX 40XX, 50XX Only
+```
+pip install -U "triton<3.4"
+```
+#### Install Sage Attention for RTX 40XX, 50XX Only
+```
+python -m pip install "setuptools<=75.8.2" --force-reinstall
+git clone https://github.com/thu-ml/SageAttention
+cd SageAttention
+pip install -e .
+```
+#### Install requirements.txt for RTX 40XX, 50XX Only
+```
+pip install -r requirements.txt
+```
+
+
+
+
+#### Linux Sage Attention (manual compilation required)
+```
+python -m pip install "setuptools<=75.8.2" --force-reinstall
+git clone https://github.com/thu-ml/SageAttention
+cd SageAttention
+pip install -e .
+```
+
+### Flash Attention
+
+#### Linux
+```
+pip install flash-attn==2.7.2.post1
+```
+
+## Attention Modes
+
+### WanGP supports several attention implementations:
+
+- **SDPA** (default): Available by default with PyTorch
+- **Sage**: 30% speed boost with small quality cost
+- **Sage2**: 40% speed boost
+- **Flash**: Good performance, may be complex to install on Windows
+
+### Attention GPU Compatibility
+
+- RTX 10XX: SDPA
+- RTX 20XX: SPDA, Sage1
+- RTX 30XX, 40XX: SDPA, Flash Attention, Xformers, Sage1, Sage2
+- RTX 50XX: SDPA, Flash Attention, Xformers, Sage2
+
+## Performance Profiles
+
+Choose a profile based on your hardware:
+
+- **Profile 3 (LowRAM_HighVRAM)**: Loads entire model in VRAM, requires 24GB VRAM for 8-bit quantized 14B model
+- **Profile 4 (LowRAM_LowVRAM)**: Default, loads model parts as needed, slower but lower VRAM requirement
+
+## Troubleshooting
+
+### Sage Attention Issues
+
+If Sage attention doesn't work:
+
+1. Check if Triton is properly installed
+2. Clear Triton cache
+3. Fallback to SDPA attention:
+ ```
+ python wgp.py --attention sdpa
+ ```
+
+### Memory Issues
+
+- Use lower resolution or shorter videos
+- Enable quantization (default)
+- Use Profile 4 for lower VRAM usage
+- Consider using 1.3B models instead of 14B models
+
+
+For more troubleshooting, see [TROUBLESHOOTING.md](TROUBLESHOOTING.md)