This guide covers common issues and their solutions when using WanGP.
Problem: PyTorch can't detect GPU or CUDA errors Solution:
# Check your CUDA version
nvidia-smi
# Install matching PyTorch version
# For CUDA 13.0/13.1 (RTX 20XX-50XX)
pip install torch==2.10.0 torchvision==0.25.0 torchaudio==2.10.0 --index-url https://download.pytorch.org/whl/cu130
# For CUDA 12.8 (GTX 10XX)
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/test/cu128Problem: Package compatibility errors Solution: Ensure you're using the Python version for your PyTorch setup
python --version # Should show 3.11.14 for PyTorch 2.10, or 3.10.9 for PyTorch 2.7.1
conda create -n wan2gp python=3.11.14Problem: pip install triton-windows fails
Solution:
- Update pip:
pip install --upgrade pip - Try pre-compiled wheel
- Fallback to SDPA attention:
python wgp.py --attention sdpa
Problem: SageAttention installation fails Solution:
- Install Visual Studio Build Tools (Windows)
- Use pre-compiled wheels when available
- Fallback to basic attention modes
Problem: "CUDA out of memory" when loading model Solutions:
# Use smaller model
python wgp.py --t2v-1-3B
# Enable quantization (usually default)
python wgp.py --quantize-transformer True
# Use memory-efficient profile
python wgp.py --profile 4
# Reduce preloaded model size
python wgp.py --preload 0Problem: Memory error during generation Solutions:
- Reduce frame count (shorter videos)
- Lower resolution in advanced settings
- Use lower batch size
- Clear GPU cache between generations
- In Configuration / Performance, set Attention Head Split to Low, Medium or High. For long or high-resolution videos, models that support it compute attention one group of heads at a time, which lowers the VRAM peak of denoising: with MiniMax H3 at 1920x1088 and 362 frames, about 1 GB less with Low and about 2 GB less with Medium or High, for up to about 3% slower denoising steps. It also applies to MiniMax H3 with Sol sparse attention and to the H3 VDN models: with Medium at 1920x1088 and 362 frames, about 4 GB less with Sol and about 2.5 GB less with VDN. The gain depends on the model and is largest when attention dominates its memory use. The result is of the same quality but not identical to Off: details, and sometimes the motion, can differ. The setting applies to the next generation without reloading the model.
Problem: System runs out of RAM Solutions:
# Limit reserved memory
python wgp.py --perc-reserved-mem-max 0.3
# Use minimal RAM profile
python wgp.py --profile 5
# Enable swap file (OS level)To use less reserved RAM while keeping most of the speed of profile 4, lower Configuration / RAM/VRAM Management / Reserved RAM for Pinning and keep Smart Memory Pinning On: what no longer fits still reaches the GPU almost as fast (see Smart Memory Pinning).
# Enable compilation (requires Triton)
python wgp.py --compile
# Use faster attention
python wgp.py --attention sage2
# Enable TeaCache
python wgp.py --teacache 2.0
# Use high-performance profile
python wgp.py --profile 3GTX 10XX Series:
python wgp.py --attention sdpa --profile 4 --teacache 1.5RTX 20XX Series (SageAttention 1.0.6):
python wgp.py --attention sage --profile 4 --teacache 1.5RTX 30XX/40XX Series:
python wgp.py --compile --attention sage2 --profile 3 --teacache 2.0RTX 50XX Series:
python wgp.py --attention sage2 --profile 4 --fp16Problem: Sage attention fails to compile or work Diagnostic Steps:
- Check Triton installation:
import triton print(triton.__version__)
- Clear Triton cache:
# Windows rmdir /s %USERPROFILE%\.triton # Linux rm -rf ~/.triton
- Fallback solution:
python wgp.py --attention sdpa
Problem: Flash attention compilation fails Solution:
- Windows: Often requires manual CUDA kernel compilation
- Linux: Usually works with
pip install flash-attn - Fallback: Use Sage or SDPA attention
Problem: Loras don't appear in the interface Solutions:
- Check file format (should be .safetensors, .pt, or .pth)
- Verify correct directory:
loras/ # For t2v models loras_i2v/ # For i2v models loras_hunyuan/ # For Hunyuan models - Click "Refresh" button in interface
- Use
--check-lorasto filter incompatible files
Problem: Lora causes errors or poor results Solutions:
- Check model size compatibility (1.3B vs 14B)
- Verify lora was trained for your model type
- Try different multiplier values
- Use
--check-lorasflag to auto-filter
Problem: VACE generates poor quality or unexpected results Solutions:
- Enable Skip Layer Guidance
- Use detailed prompts describing all elements
- Ensure proper mask creation with Matanyone
- Check reference image quality
- Use at least 15 steps, preferably 30+
Problem: Mask creation difficulties Solutions:
- Use negative point prompts to refine selection
- Create multiple sub-masks and combine them
- Try different background removal options
- Ensure sufficient contrast in source video
Problem: "Port 7860 is already in use" Solution:
# Use different port
python wgp.py --server-port 7861
# Or kill existing process
# Windows
netstat -ano | findstr :7860
taskkill /PID <PID> /F
# Linux
lsof -i :7860
kill <PID>Problem: Browser shows "connection refused" Solutions:
- Check if server started successfully
- Try
http://127.0.0.1:7860instead oflocalhost:7860 - Disable firewall temporarily
- Use
--listenflag for network access
Problem: --share flag doesn't create public URL
Solutions:
- Check internet connection
- Try different network
- Use
--listenwith port forwarding - Check firewall settings
- Increase number of steps (25-30+)
- Use larger models (14B instead of 1.3B)
- Enable Skip Layer Guidance
- Improve prompt descriptions
- Use higher resolution settings
Blurry Videos:
- Increase steps
- Check source image quality (i2v)
- Reduce TeaCache multiplier
- Use higher guidance scale
Inconsistent Motion:
- Use longer overlap in sliding windows
- Reduce window size
- Improve prompt consistency
- Check control video quality (VACE)
Color Issues:
- Check model compatibility
- Adjust guidance scale
- Verify input image color space
- Try different VAE settings
# Maximum verbosity
python wgp.py --verbose 2
# Check lora compatibility
python wgp.py --check-loras --verbose 2# Monitor GPU memory
nvidia-smi -l 1
# Reduce memory usage
python wgp.py --profile 4 --perc-reserved-mem-max 0.2# Test different configurations
python wgp.py --attention sdpa --profile 4 # Baseline / GTX 10XX
python wgp.py --attention sage --profile 3 # RTX 20XX with SageAttention 1
python wgp.py --attention sage2 --profile 3 # RTX 30XX+ with SageAttention 2
python wgp.py --compile --teacache 2.0 # Maximum speed- Check this troubleshooting guide
- Read the relevant documentation:
- Try basic fallback configuration:
python wgp.py --attention sdpa --profile 4
- Discord Server: https://discord.gg/g7efUW9jGV
- Provide relevant information:
- GPU model and VRAM amount
- Python and PyTorch versions
- Complete error messages
- Command used to launch WanGP
- Operating system
When reporting issues:
- Include system specifications
- Provide complete error logs
- List the exact steps to reproduce
- Mention any modifications to default settings
- Include command line arguments used
If nothing works, try this minimal configuration:
# Absolute minimum setup
python wgp.py --t2v-1-3B --attention sdpa --profile 4 --teacache 0 --fp16
# If that fails, check basic PyTorch installation
python -c "import torch; print(torch.cuda.is_available())"Applies to: Diagnosing installation, GPU memory, performance, networking and generation problems. Sections identify the relevant platforms and symptoms; shell examples configure or diagnose the WanGP process.