How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
from diffusers.utils import load_image, export_to_video

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("intel-ai/Wan2.2-I2V-A14B-Diffusers-NVFP4-E5M3-AutoRound", dtype=torch.bfloat16, device_map="cuda")
pipe.to("cuda")

prompt = "A man with short gray hair plays a red electric guitar."
image = load_image(
    "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png"
)

output = pipe(image=image, prompt=prompt).frames[0]
export_to_video(output, "output.mp4")

Wan2.2-I2V-A14B-Diffusers-NVFP4-E5M3-AutoRound

This checkpoint is an AutoRound NVFP4_E5M3 quantized version of Wan-AI/Wan2.2-I2V-A14B-Diffusers, an image-to-video model with high-noise and low-noise diffusion experts.

Both diffusion transformers are quantized using model-free round-to-nearest (RTN), with no calibration dataset, no calibration forward passes, and no tuning iterations. The output projections are kept unquantized to match the layer scope of the ordinary NVFP4 comparison.

On the evaluated 355-pair VBench I2V subset, the five reported metrics show an average absolute decrease of 0.9948 percentage points versus BF16. This is a descriptive mean across metrics, not an official VBench total score.

Runtime requirement: NVFP4_E5M3 uses FP4 Marlin weight GEMM with E5M3 activation QDQ, not a native ordinary NVFP4 W4A4 GEMM. Install the pinned plugin below; no vLLM-Omni source changes or external adapter are needed.

Model Details

Item Value
Base model Wan-AI/Wan2.2-I2V-A14B-Diffusers
Task Image-to-video generation
Quantization tool AutoRound, model-free RTN
Scheme NVFP4_E5M3
Weight / activation format FP4 E2M1 values with unsigned E5M3 block scales
Weight / activation group size 16 / 16
Activation quantization Dynamic, 4-bit; QDQ in the validated runtime
Quantized components transformer and transformer_2
Quantized scope 400 block linear modules per transformer; 800 total
Output projection proj_out excluded from quantization in both transformers
Calibration data / tuning iterations None / 0
Export format AutoRound; auto_round:llm_compressor_nvfp4_e5m3
Serialized datatype identifier nvfp4_v2
Validated hardware NVIDIA B200
License Apache-2.0

The text encoder and VAE are not quantized by this recipe. The base model supports 480P and 720P generation; the evaluation reported here validates 832 × 480 only.

Output-projection preservation

The initial model-free export also quantized proj_out. For the checkpoint evaluated here, both experts' proj_out.weight and proj_out.bias were restored byte-for-byte from the original base checkpoint, not reconstructed by dequantizing FP4 weights. All other exported tensors were hash-verified as unchanged.

The restored output-projection tensors are stored in the source checkpoint's FP32 format and cast through the BF16 inference path at runtime. The quantization configuration explicitly excludes these layers with bits=16 and act_bits=16; these settings do not mean the restored tensors are stored as BF16 on disk. Block quantization remains unchanged.

How to Use

Environment

Use the recorded NVIDIA B200 environment and official vLLM-Omni commit 7465c0f52. Install the plugin from the exact tested commit:

python -m pip install --no-deps "git+https://github.com/intel/neural-compressor.git@8221432d6c328fdb39264bf059a02700bb753059#subdirectory=benchmark/vllm-qdq-plugin"

The inc_nvfp4_e5m3 entry point is discovered automatically. If using a plugin allowlist, include this name alongside any other required plugins. VLLM_QDQ=0 disables unrelated simulation, not E5M3's required activation QDQ. No manual adapter registration is needed.

Image-to-Video Example

From the pinned vLLM-Omni checkout, run the official example with the same input image, complete prompt and sampling settings as the BF16/MXFP8/NVFP4 comparison cards. Set MODEL to the downloaded checkpoint directory.

curl -fL https://huggingface.co/datasets/YiYiXu/testing-images/resolve/main/wan_i2v_input.JPG -o input.jpg
MODEL=./wan22_i2v_nvfp4_e5m3_projout_bf16_v2
CUDA_VISIBLE_DEVICES=0 DIFFUSION_ATTENTION_BACKEND=TRTLLM_ATTN \
VLLM_QDQ=0 VLLM_PLUGINS=inc_nvfp4_e5m3 \
python examples/offline_inference/image_to_video/image_to_video.py \
  --model "$MODEL" --model-class-name WanImageToVideoPipeline --image input.jpg \
  --prompt "Summer beach vacation style, a white cat wearing sunglasses sits on a surfboard. The fluffy-furred feline gazes directly at the camera with a relaxed expression. Blurred beach scenery forms the background featuring crystal-clear waters, distant green hills, and a blue sky dotted with white clouds. The cat assumes a naturally relaxed posture, as if savoring the sea breeze and warm sunlight. A close-up shot highlights the feline's intricate details and the refreshing atmosphere of the seaside." \
  --negative-prompt "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" \
  --num-frames 81 --fps 16 --num-inference-steps 40 \
  --guidance-scale 3.5 --guidance-scale-high 3.5 \
  --boundary-ratio 0.9 --flow-shift 3.0 --seed 0 \
  --enforce-eager --init-timeout 7200 --stage-init-timeout 7200 \
  --output nvfp4_e5m3.mp4

Without explicit dimensions, the official example uses the input aspect ratio with max_area=480*832 and multiple-of-16 rounding, producing 544 × 720 for this image. This is separate from the fixed 832 × 480 quantitative evaluation.

White-Cat Video Comparison

The E5M3 white-cat showcase was generated with plugin commit 8221432d6c328fdb39264bf059a02700bb753059 using the command above. It uses the same official image, full prompt, negative prompt, seed and sampling settings as the previous cards: 544 × 720, 81 frames, 16 fps. Generation exited successfully and all frames passed decoding validation. This individual showcase is separate from the benchmark.

Official white-cat surfing input image
BF16 Reference NVFP4_E5M3 (This Model)
Download BF16 video Download NVFP4_E5M3 video

Validation provenance

Both tasks passed one-video end-to-end smoke tests with plugin commit 8221432d6c328fdb39264bf059a02700bb753059, automatic entry-point loading and unchanged Omni source. The full VBench scores below were obtained earlier with plugin 9d95229f7e18c5e403b470934447134a7d611452 plus an external Omni adapter. The full benchmark has not been rerun with the new plugin.

Recorded validation environment

Component Recorded version
Python 3.12.3
PyTorch 2.14.0+cu130
vLLM 0.33.0
Diffusers 0.40.0
FlashInfer 0.7.2.post1
CUTLASS DSL 4.8.0
VBench 0.1.5

The PyTorch build uses CUDA 13.0; the selected JIT/compiler toolkit was CUDA 12.8.93. These are records of the tested environment, not a clean-install lockfile. The existing overlay also contained Transformers 5.20.2, which exceeds the pinned Omni source's <5.20.0 requirement. A fresh dependency-resolved installation has not been validated. Results are not claims of support for other GPU architectures or arbitrary package versions.

Evaluation

BF16 comparison

Scores below are multiplied by 100 for readability. Higher is better. The difference column is NVFP4_E5M3 minus BF16, expressed in absolute percentage points, not relative percentage loss.

VBench dimension Videos BF16 NVFP4_E5M3 Difference (pp)
I2V subject (i2v_subject) 246 97.7584 96.2411 -1.5173
I2V background (i2v_background) 109 99.1074 98.2656 -0.8418
Subject consistency 246 95.2603 93.6051 -1.6551
Background consistency 109 96.9536 96.1010 -0.8525
Motion smoothness 246 98.4598 98.3524 -0.1074

The simple mean of the five absolute decreases is 0.9948 percentage points. The larger differences are in subject preservation and subject consistency; motion smoothness is close to the BF16 baseline. These measurements do not establish statistical equivalence or cover every aspect of video quality.

Generation protocol

BF16 and NVFP4_E5M3 use the same selected inputs and generation settings:

Setting Value
Inputs 355 image/prompt pairs from the official VBench I2V metadata
Reference images Official 16:9 crop set; LANCZOS resizing in the Omni I2V path
Output resolution 832 × 480
Frames / FPS 81 / 16
Denoising steps 40
Guidance scale, high / low noise 3.5 / 3.5
Seed 0, reset for each input
Boundary ratio / flow shift 0.9 / 3.0
Negative prompt Same official negative prompt for both precisions
Attention backend TRTLLM_ATTN
Execution Eager; no diffusion cache, CPU/layerwise offload, or VAE tiling/slicing

Generation used independent deterministic shards on two GPUs, not tensor parallelism. All 355/355 videos passed verification before evaluation. All five metrics completed successfully.

Scoring protocol and scope

  • VBench 0.1.5, using its official metric implementations, local=True, read_frame=False, and I2V resolution setting 16-9.
  • Original dimension tags determine each metric's inputs: 246 pairs for I2V subject, subject consistency, and motion smoothness; 109 pairs for I2V background and background consistency.
  • One generated video per input at a fixed seed. Videos are not duplicated to mimic multiple samples.
  • This is a selected single-sample I2V evaluation, not the standard five-sample full benchmark. No official VBench total is reported.
  • Matching generation and scoring settings does not imply matching quantized kernels or bitwise-identical execution.
Exact NVFP4_E5M3 scores on the original 0–1 scale
{
  "i2v_subject": 0.9624113284629898,
  "i2v_background": 0.9826557808280539,
  "subject_consistency": 0.9360512998659255,
  "background_consistency": 0.961010434211941,
  "motion_smoothness": 0.9835242172773212
}

Generate the Model

The initial model-free export used AutoRound at commit a85997e19d97762172155c93c4dfc3fcc3976e71 (export metadata version 0.17.0):

python -m auto_round \
  --model Wan-AI/Wan2.2-I2V-A14B-Diffusers \
  --scheme NVFP4_E5M3 \
  --model_free \
  --algorithm rtn \
  --disable_opt_rtn \
  --iters 0 \
  --device_map 0 \
  --format auto_round \
  --output_dir ./wan22_i2v_nvfp4_e5m3_model_free

This command documents the initial export, not the complete construction of the evaluated checkpoint. It must be followed by the exact source-weight restoration of both proj_out layers, configuration/index updates, and unchanged-tensor verification described above. Running this command alone does not reproduce the evaluated layer scope. No dataset or calibration input is required for this model-free recipe.

The Wan2.2 quantization/VBench repository documents the shared benchmark inputs and historical comparison protocol. The E5M3 runtime extensions and complete reproduction workflow are not asserted to be available on its published main branch.

Limitations

  • Intended for research and evaluation of low-precision image-to-video generation with a compatible E5M3 runtime.
  • Quantization can alter appearance, subject identity, temporal consistency, and motion. Inspect outputs for the intended application.
  • No inference speedup, minimum VRAM requirement, or hardware-independent memory-reduction figure is claimed; these were not measured in a controlled comparison here.
  • The reported evaluation does not establish 720P quality, robustness across seeds, or performance on unrelated image/prompt distributions.
  • Original base-model demos or ordinary-NVFP4 videos are not presented as outputs from this E5M3 checkpoint.
  • Follow the base model's usage guidance and applicable laws. Use images with appropriate rights and consent, and disclose synthetic media where appropriate.

References

This model follows the base model's Apache-2.0 license. See Wan2.2 for the original model and documentation. Quantization uses AutoRound; inference validation uses vLLM-Omni and the Intel Neural Compressor plugin; evaluation uses VBench.

Signed-off-by: changwangss chang1.wang@intel.com

Downloads last month
55
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for intel-ai/Wan2.2-I2V-A14B-Diffusers-NVFP4-E5M3-AutoRound

Quantized
(6)
this model

Collection including intel-ai/Wan2.2-I2V-A14B-Diffusers-NVFP4-E5M3-AutoRound