Model Details

This model is an MXFP4 (mixed MXFP4 experts / MXFP8 shared) model of tencent/HunyuanImage-3.0-Instruct-Distil generated by intel/auto-round with 50 tuning iterations. Please follow the license of the original model.

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

How to Use

Environment

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-Tuning-AutoRound \
    --omni

Evaluation

DiT-Only Image Fidelity (TP2)

Candidate Topology PSNR (dB) SSIM@1 SSIM@1/8
BF16 (Reference) 2 GPUs TP2 Baseline 1.0000 1.0000
MXFP8-ar 2 GPUs TP2 31.79 0.9811 0.9842
MXFP8-ct 2 GPUs TP2 31.59 0.9788 0.9823
MXFP4-ar (RTN) 2 GPUs TP2 13.00 0.6720 0.2704
This build (MXFP4 + Tuning) 2 GPUs TP2 12.88 0.6640 0.2568

AR+DiT Full-Pipeline Image Fidelity

Candidate Topology PSNR (dB) SSIM@1 SSIM@1/8
BF16 (Reference) 4 GPUs TP2+TP2 Baseline 1.0000 1.0000
MXFP8-ar 2 GPUs TP1+TP1 26.85 0.9227 0.8715
MXFP4-ar (RTN) 2 GPUs TP1+TP1 12.89 0.6934 0.1708
This build (MXFP4 + Tuning) 2 GPUs TP1+TP1 13.54 0.6423 0.1766

Visual Comparisons

DiT-Only Pipeline Comparison (Figure A)

DiT-only montage

BF16 (DiT TP2) MXFP8-ar (DiT TP2) This build (DiT TP2)
a b c

AR+DiT Full-Pipeline Comparison (Figure B)

AR+DiT montage

BF16 (AR+DiT 4GPU) MXFP8-ar (AR+DiT 2GPU) This build (AR+DiT 2GPU)
d e f

Weight-Space Relative L2 Deviation vs BF16 Base

Module MXFP4-ar (RTN) This build (iters=50 Tuned)
self_attn.qkv_proj (L0) 0.0267 0.0572
mlp.shared_mlp.gate_and_up_proj (L0) 0.0267 0.0476
self_attn.o_proj (L31) 0.0267 0.0640
mlp.shared_mlp.down_proj (L31) 0.0267 0.0465
mlp.experts.3.gate_and_up_proj (L0) 0.1123 0.1285
mlp.experts.40.down_proj (L0) 0.1125 0.1260
mlp.experts.11.gate_and_up_proj (L15) 0.1113 0.1239
mlp.experts.63.down_proj (L31) 0.1124 0.1267
Mean MXFP8 Dense 0.0267 0.0538
Mean MXFP4 Experts 0.1121 0.1263
mlp.gate.wg router (L0, L31) 0.0000 0.0000

Generate the Model

auto-round \
    --model_name tencent/HunyuanImage-3.0-Instruct-Distil \
    --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" \
    --iters 50 \
    --format auto_round \
    --output_dir HunyuanImage-3.0-Instruct-Distil-MXFP4-Mixed-Tuning-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
74
Safetensors
Model size
3B params
Tensor type
F32
·
BF16
·
F8_E4M3
·
U8
·
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-Tuning-AutoRound

Quantized
(11)
this model

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