Downloads · 30 days
519
6% of all-time downloads
lightx2v/Wan-NVFP4
Wan-NVFP4 is a machine learning model from lightx2v. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as apache-2.0.
NVFP4 Quantization-Aware Step Distillation for Blackwell Architecture
Downloads · 30 days
519
6% of all-time downloads
All-time downloads
9.3K
Public
Repo size
11 GB
Likes
72
Public
Click a slice to open those files.
.safetensors11 GB · 100%
From the Hugging Face model README
NVFP4 Quantization-Aware Step Distillation for Blackwell Architecture
# 1. Install LightX2V
git clone https://github.com/ModelTC/LightX2V.git
cd LightX2V
uv pip install -v .
# 2. Install NVFP4 Kernel
pip install scikit_build_core uv
git clone https://github.com/NVIDIA/cutlass.git
cd lightx2v_kernel
MAX_JOBS=$(nproc) CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) \
uv build --wheel \
-Cbuild-dir=build . \
-Ccmake.define.CUTLASS_PATH=/path/to/cutlass \
--verbose --color=always --no-build-isolation
pip install dist/*whl --force-reinstall --no-deps
# 3. Run inference
cd examples/wan
python wan_i2v_nvfp4.py # Image-to-Video
python wan_t2v_nvfp4.py # Text-to-Video
| Wan2.1-T2V-1.3B | wan2.1_t2v_1_3b_nvfp4_lightx2v_4step |
|---|---|
| <video controls style="width: 260px; height: 180px; border-radius: 6px; object-fit: cover;" src="https://cdn-uploads.huggingface.co/production/uploads/680de13385293771bc57400b/dwr0pPbtIe2fHg0hmEM5M.mp4"></video> | <video controls style="width: 260px; height: 180px; border-radius: 6px; object-fit: cover;" src="https://cdn-uploads.huggingface.co/production/uploads/680de13385293771bc57400b/cm-S4EaZlCOShlXxOnJ-3.mp4"></video> |
Test Environment: RTX 5090 Single GPU | LightX2V Framework
<table style="width: 100%; border-collapse: collapse;"> <tr> <td style="vertical-align: top; padding-right: 20px;"> <h4 style="margin: 0 0 15px 0;">📸 Image-to-Video (I2V-14B-480P)</h4> <table style="width: 100%; border-collapse: collapse;"> <tr> <th style="text-align: left; padding: 8px; border-bottom: 2px solid #e2e8f0;">Metric</th> <th style="text-align: left; padding: 8px; border-bottom: 2px solid #e2e8f0;">Original Model</th> <th style="text-align: left; padding: 8px; border-bottom: 2px solid #e2e8f0;">Optimized Model</th> <th style="text-align: left; padding: 8px; border-bottom: 2px solid #e2e8f0;">Speedup</th> </tr> <tr> <td style="padding: 8px; border-bottom: 1px solid #f1f5f9;"><strong>Single-step Denoising</strong></td> <td style="padding: 8px; border-bottom: 1px solid #f1f5f9;"><span style="color: #64748b; font-weight: bold;">12.10s</span></td> <td style="padding: 8px; border-bottom: 1px solid #f1f5f9;"><span style="color: #2563eb; font-weight: bold;">3.40s</span></td> <td style="padding: 8px; border-bottom: 1px solid #f1f5f9;"><span style="background: #16a34a; color: white; padding: 4px 8px; border-radius: 12px; font-weight: bold;">3.5x</span></td> </tr> <tr> <td style="padding: 8px;"><strong>End-to-End</strong></td> <td style="padding: 8px;"><span style="color: #64748b; font-weight: bold;">498.90s</span></td> <td style="padding: 8px;"><span style="color: #2563eb; font-weight: bold;">17.65s</span></td> <td style="padding: 8px;"><span style="background: #16a34a; color: white; padding: 4px 8px; border-radius: 12px; font-weight: bold;">28x</span></td> </tr> </table> </td> <td style="vertical-align: top; padding-left: 20px;"> <h4 style="margin: 0 0 15px 0;">🎬 Text-to-Video (T2V-1.3B-480P)</h4> <table style="width: 100%; border-collapse: collapse;"> <tr> <th style="text-align: left; padding: 8px; border-bottom: 2px solid #e2e8f0;">Metric</th> <th style="text-align: left; padding: 8px; border-bottom: 2px solid #e2e8f0;">Original Model</th> <th style="text-align: left; padding: 8px; border-bottom: 2px solid #e2e8f0;">Optimized Model</th> <th style="text-align: left; padding: 8px; border-bottom: 2px solid #e2e8f0;">Speedup</th> </tr> <tr> <td style="padding: 8px; border-bottom: 1px solid #f1f5f9;"><strong>Single-step Denoising</strong></td> <td style="padding: 8px; border-bottom: 1px solid #f1f5f9;"><span style="color: #64748b; font-weight: bold;">2.00s</span></td> <td style="padding: 8px; border-bottom: 1px solid #f1f5f9;"><span style="color: #2563eb; font-weight: bold;">0.70s</span></td> <td style="padding: 8px; border-bottom: 1px solid #f1f5f9;"><span style="background: #16a34a; color: white; padding: 4px 8px; border-radius: 12px; font-weight: bold;">2.9x</span></td> </tr> <tr> <td style="padding: 8px;"><strong>End-to-End</strong></td> <td style="padding: 8px;"><span style="color: #64748b; font-weight: bold;">83.50s</span></td> <td style="padding: 8px;"><span style="color: #2563eb; font-weight: bold;">6.54s</span></td> <td style="padding: 8px;"><span style="background: #16a34a; color: white; padding: 4px 8px; border-radius: 12px; font-weight: bold;">12.8x</span></td> </tr> </table> </td> </tr> </table>If you find this project helpful, please give us a ⭐ on GitHub
</div>