Instructions to use intel-ai/Wan2.2-T2V-A14B-Diffusers-MXFP8-AutoRound with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use intel-ai/Wan2.2-T2V-A14B-Diffusers-MXFP8-AutoRound with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("intel-ai/Wan2.2-T2V-A14B-Diffusers-MXFP8-AutoRound", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Model Details
This model is an MXFP8 (OCP microscaling FP8, group_size 32) weight-quantized model of Wan-AI/Wan2.2-T2V-A14B-Diffusers generated by intel/auto-round using zero-shot RTN. Please follow the license of the original model.
- Quantized (MXFP8): dual diffusion transformer experts (
transformerandtransformer_2, 400 linear layers each) - Kept in BF16: text encoder (UMT5), VAE, embeddings, norms
How to Use
Environment
uv pip install vllm==0.29.0
uv pip install git+https://github.com/vllm-project/vllm-omni.git@1c7476ec19899f1e61838e23e9fad3505403b9b9
vLLM Usage
vllm serve intel-ai/Wan2.2-T2V-A14B-Diffusers-MXFP8-AutoRound \
--omni
To generate videos, send a POST request to /v1/videos (e.g. 1280Γ720, 81 frames, 40 steps, 16 fps, ulysses-degree 2).
Evaluation
| Benchmark | BF16 | MXFP8 | Recovery |
|---|---|---|---|
| VBench Total Score | 84.50 | 84.10 | 99.53% |
| Quality Score | 83.20 | 82.90 | 99.64% |
| Motion Smoothness | 98.10 | 97.80 | 99.69% |
| Dynamic Degree | 75.30 | 74.90 | 99.47% |
| Subject Consistency | 96.40 | 96.10 | 99.69% |
| Background Consistency | 95.80 | 95.50 | 99.69% |
| Average | 88.88 | 88.55 | 99.62% |
Video Generation Comparison
Prompt: "Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage." (1280Γ720, 81 frames, 40 steps, seed 42)
| BF16 Reference | MXFP8 (This Model) |
|---|---|
| Download BF16 Video | Download MXFP8 Video |
| Metric (Sample Clip) | BF16 | MXFP8 | Delta / Ratio |
|---|---|---|---|
VBench imaging_quality |
0.7188 | 0.7247 | +0.82% |
| PSNR (vs BF16) | β | 16.84 dB | β |
| SSIM (vs BF16) | β | 0.7889 | β |
| LPIPS (vs BF16) | β | 0.1717 | β |
Generate the Model
uv pip install git+https://github.com/intel/auto-round.git@3ab65744a0013a90759bd21ee56a115c8605bd37
auto-round \
--model Wan-AI/Wan2.2-T2V-A14B-Diffusers \
--scheme MXFP8 \
--dataset opens2v \
--nsamples 32 \
--iters 0 \
--batch_size 1 \
--calib_num_inference_steps 8 \
--low_gpu_mem_usage \
--diffusion_tuning_cache_size auto \
--output_dir Wan2.2-T2V-A14B-Diffusers-MXFP8-AutoRound
Ethical Considerations and Limitations
The model can produce factually incorrect output, and should not be relied on to produce factually accurate information. Because of the limitations of the pretrained model and the finetuning datasets, it is possible that this model could generate lewd, biased or otherwise offensive outputs. Therefore, before deploying any applications of the model, developers should perform safety testing.
Caveats and Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Here are a couple of useful links to learn more about Intel's AI software:
Disclaimer
The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please consult an attorney before using this model for commercial purposes.
Cite
@article{cheng2023optimize,
title={Optimize weight rounding via signed gradient descent for the quantization of llms},
author={Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi},
journal={arXiv preprint arXiv:2309.05516},
year={2023}
}
Signed-off-by: Wang, Chang chang1.wang@intel.com
- Downloads last month
- 78
Model tree for intel-ai/Wan2.2-T2V-A14B-Diffusers-MXFP8-AutoRound
Base model
Wan-AI/Wan2.2-T2V-A14B-Diffusers