HunyuanImage-3.0-Instruct, mixed NVFP4 / FP8

Quantized checkpoint of tencent/HunyuanImage-3.0-Instruct for one NVIDIA RTX PRO 6000 Blackwell (SM120, 96 GB). Text-to-image and instruction editing stay in the same model. The weights are already quantized. Do not quantize them again.

The numeric format is NVFP4 (NVIDIA FP4, E2M1).

What is quantized

Tensors Format Count
Routed expert gate_and_up_proj and down_proj NVFP4, dynamic per-tensor scale, MSLK kernel 4096
Backbone attention qkv_proj / o_proj and shared MLP FP8 dynamic activation, FP8 weight 128
Embeddings, norms, router, output head, vision tower, VAE, small layers Original dtype, copied the rest

config.json records this under quantization_config with already_quantized: true and do_not_requantize: true. The packed layout for each quantized weight is in quantization_schema.json: a logical weight becomes .qdata, .scale, and for NVFP4 .per_tensor_scale.

On this card the resident weights are 51.1 GB. A 1024脳1024, 30-step generate peaked at 60.5 GB allocated, and the matching edit peaked at 62.0 GB allocated (64.2 GB reserved).

Load

Download into a directory whose name has no dots. Transformers mishandles a local path that contains dots.

hf download vonkaiser/HunyuanImage-3.0-Instruct-NFVP4 \
  --local-dir ./HunyuanImage-3-Instruct-NVFP4

A normal from_pretrained weight copy will not reconstruct the packed tensors. Build the model on the meta device from this folder (trust_remote_code=True, moe_impl="eager", SDPA attention), then rebuild each quantized parameter:

  • NVFP4 keys go back through torchao.prototype.mx_formats.nvfp4_tensor.NVFP4Tensor with use_dynamic_per_tensor_scale=True and use_triton_kernel=True.
  • FP8 keys go back through torchao.quantization.Float8Tensor (dynamic per-tensor FP8 activation, FP8 weight).
  • Every other key is copied as stored.

Use moe_impl="eager". The FlashInfer fused-MoE path stacks raw BF16 expert weights and will not run these packed experts. Empty experts must be skipped: an NVFP4 linear rejects a zero-token batch, and the modeling file in this repo already does that.

The SM120 FlashAttention-4 module can be loaded for mask-free attention. This checkpoint's image path passes an explicit mask, so the verified run used PyTorch SDPA. Do not torch.compile until an eager forward has produced an image.

Provenance

Source weights: tencent/HunyuanImage-3.0-Instruct (BF16, about 169 GB). This tree was quantized shard by shard with TorchAO and MSLK. The original BF16 tensors are not in this repository.

License: Tencent Hunyuan Community License, inherited from the source model.

Downloads last month
69
Safetensors
Model size
49B 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 vonkaiser/HunyuanImage-3.0-Instruct-NVFP4

Quantized
(8)
this model