Model Details

This model is an MXFP4 (mixed-precision with MXFP8) model of tencent/HunyuanImage-3.0-Instruct-Distil generated by intel/auto-round using RTN. Please follow the license of the original model.

  • Quantized (MXFP4): routed experts
  • Quantized (MXFP8): attention, shared MLP
  • Kept in BF16: vision tower, VAE, embeddings, lm_head, router

AR+DiT full-pipeline output

How to Use

Environment

uv pip install vllm==0.29.0
uv pip install git+https://github.com/vllm-project/vllm-omni.git@1c7476ec19899f1e61838e23e9fad3505403b9b9
uv pip install flashinfer-python==0.6.18

vLLM Usage

vllm serve intel-ai/HunyuanImage-3.0-Instruct-Distil-MXFP4-Mixed-AutoRound \
    --omni

Evaluation

Benchmark BF16 MXFP4 Recovery
PSNR (dB) 41.40 12.91 31.18%
SSIM@1 0.9950 0.6698 67.32%
SSIM@1/2 0.9900 0.5417 54.72%
SSIM@1/4 0.9850 0.3910 39.70%
SSIM@1/8 0.9823 0.2611 26.58%
Average 0.9900 0.5700 57.58%

DiT-Only Image Fidelity Comparison (TP2)

Candidate vs BF16 PSNR SSIM@1 SSIM@1/2 SSIM@1/4 SSIM@1/8 std
BF16 Base (reference) — 1.0000 1.0000 1.0000 1.0000 47.37
MXFP8-ct (for reference) 31.59 0.9790 0.9760 0.9780 0.9820 53.62
this build (INC path) 12.91 0.6698 0.5417 0.3910 0.2611 49.34
sibling -mixed (CT path) 12.99 0.6720 0.5449 0.3963 0.2707 48.86

Visual Comparisons

DiT-only montage

Figure A: DiT-only four-way comparison across BF16 base, MXFP8-ct, MXFP8-ar, and this build.

Comparison What Differs PSNR SSIM@1 SSIM@1/8
MXFP8-ct vs MXFP8-ar Export format only 44.46 0.9965 0.9984
MXFP8-ar vs this build Experts 8→4 bit only 12.71 0.6623 0.2518
-MXFP4-mixed (CT) vs this build Loader only 33.03 0.9799 0.9822
BF16 vs this build Mixed MXFP4 vs Base 12.91 0.6698 0.2611

AR+DiT montage

Figure B: AR+DiT full-pipeline comparison.

Comparison Topology PSNR SSIM@1/8
BF16 4-GPU vs MXFP8-ar 2-GPU Cross-topology 26.85 0.8715
MXFP8-ar vs this build 2-GPU TP1+TP1 12.88 0.1889

Weight Dequantization Relative L2 Error

Module Scheme Rel. L2 vs BF16 Approx. Effective Bits
Routed Experts (gate_and_up_proj / down_proj) MXFP4 0.1120 – 0.1124 3.65
Attention & Shared MLP (self_attn, shared_mlp) MXFP8 0.0267 5.73
Router, ViT, VAE, Embeddings BF16/FP32 0.0000 16.00

Generate the Model

auto-round \
    --model_name tencent/HunyuanImage-3.0-Instruct-Distil \
    --model_free \
    --scheme MXFP8 \
    --layer_config '{.mlp.experts.:{bits:4,data_type:mx_fp}}' \
    --ignore_layers "vision,guidance_emb,timestep_emb,timestep_r_emb,final_layer,wte" \
    --format auto_round \
    --output_dir HunyuanImage-3.0-Instruct-Distil-MXFP4-Mixed-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}
}

arxiv github

Signed-off-by: Lv, Kaokao kaokao.lv@intel.com

Downloads last month
93
Safetensors
Model size
44B params
Tensor type
BF16
·
U8
·
F8_E4M3
·
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for intel-ai/HunyuanImage-3.0-Instruct-Distil-MXFP4-Mixed-AutoRound

Quantized
(11)
this model

Paper for intel-ai/HunyuanImage-3.0-Instruct-Distil-MXFP4-Mixed-AutoRound