Text-to-Video
Safetensors
Diffusion Single File
comfyui
image-to-video
audio-video
quantization
mxfp8
mxfp4
fp8
auto-round
intel-xpu
nvidia-blackwell
Run this model with HF Jobs
Run intel-ai/MiniMax-H3-MXFP-Comfy on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/intel-ai/MiniMax-H3-MXFP-Comfy. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/intel-ai/MiniMax-H3-MXFP-Comfy on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use intel-ai/MiniMax-H3-MXFP-Comfy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use intel-ai/MiniMax-H3-MXFP-Comfy with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files12int8 -> mxfp8nvfp4 -> mxfp4123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230---license: otherlicense_name: minimax-h3-community-license-agreementlicense_link: https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/LICENSEbase_model:- MiniMaxAI/MiniMax-H3- Comfy-Org/MiniMax-H3pipeline_tag: text-to-videolibrary_name: comfyuitags:- comfyui- diffusion-single-file- text-to-video- image-to-video- audio-video- quantization- mxfp8- mxfp4- fp8- auto-round- intel-xpu- nvidia-blackwell---# MiniMax-H3 MXFP8 / MXFP4 / FP8-PTPC for ComfyUIThis repository provides **ComfyUI single-file (`.safetensors`) quantized checkpoints** of **MiniMax-H3**โa joint audio-video generation modelโquantized to **OCP Microscaling (`MXFP8` / `MXFP4`)** and **Per-Token ร Per-Channel `FP8 E4M3` (`FP8 PTPC`)**, with optional **256-dim Hadamard rotation (`ConvRot-256`)**.Upstream [`Comfy-Org/MiniMax-H3`](https://huggingface.co/Comfy-Org/MiniMax-H3) quantized releases target CUDA-specific `INT8 ConvRot` (DiT and Video VAE) and `NVFP4 AWQ` (Qwen3-VL Text Encoder) paths. To enable open microscaling and standard FP8 hardware acceleration across platforms (`INT8 -> MXFP8 / FP8-PTPC`, `NVFP4 -> MXFP4`), all checkpoints in this release were **quantized directly from the official full-precision (`BF16` / `FP16`) weights** using [Intel AutoRound](https://github.com/intel/auto-round) (`0.17.0`) and row-wise PTPC quantizersโnever re-quantized from `INT8` or `NVFP4`โand validated end-to-end on both **Intelยฎ XPU (`0x674f` / CRI)** and **NVIDIA Blackwell (`B200` / `SM100`)**.---## 1. Recommended Checkpoint CombinationsA complete MiniMax-H3 Text-to-Video (`video_minimax_h3_t2v.json`) pipeline loads **four core files** (DiT, Text Encoder, Video VAE, Audio VAE) plus an optional 8-step Turbo LoRA:| Target Platform & Mode | Diffusion Model (`diffusion_models/`) | Text Encoder (`text_encoders/`) | Video VAE (`vae/`) | Audio VAE (`vae/`) ||---|---|---|---|---|| **Intel XPU โ Default Balanced** *(Native FP8 DiT + Dequant FP32 TE + Native MXFP8 VAE)* | `minimax_h3_fl2va_pruned_fp8_ptpc_convrot.safetensors` *(or `..._mxfp8_convrot.safetensors`)* | `qwen3vl_32b_minimax_h3_mxfp4_convrot_repaired.safetensors` | `minimax_h3_video_vae_mxfp8_convrot.safetensors` | `minimax_h3_audio_vae_fp32.safetensors` || **Intel XPU โ Full Native MXFP** *(Native W8A8 DiT + Native W4A4 MXFP4 TE + Native MXFP8 VAE)*ยน | `minimax_h3_fl2va_pruned_mxfp8_convrot.safetensors` *(or `..._fp8_ptpc_convrot.safetensors`)* | `qwen3vl_32b_minimax_h3_mxfp4_convrot_native.safetensors` | `minimax_h3_video_vae_mxfp8_convrot.safetensors` | `minimax_h3_audio_vae_fp32.safetensors` || **NVIDIA B200 (SM100) โ Native MXFP Fast Path** *(W8A8 MXFP8 DiT + W4A4 MXFP4 TE + W8A8 MXFP8 VAE)* | `minimax_h3_fl2va_pruned_mxfp8_convrot.safetensors` | `qwen3vl_32b_minimax_h3_mxfp4_convrot_repaired.safetensors` *(or `..._mxfp4_repaired.safetensors`)* | `minimax_h3_video_vae_mxfp8_convrot.safetensors` | `minimax_h3_audio_vae_fp32.safetensors` || **NVIDIA B200 / Hopper (SM90+) โ PTPC FP8 + FP32-Compute TE** *(W8A8 PTPC FP8 DiT + Dequant FP32 TE)* | `minimax_h3_fl2va_pruned_fp8_ptpc.safetensors` *(or `..._fp8_ptpc_convrot.safetensors`)* | `qwen3vl_32b_minimax_h3_mxfp4_convrot_fp32.safetensors` *(or `..._mxfp4_fp32.safetensors`)* | `minimax_h3_video_vae_mxfp8_convrot.safetensors` *(SM100 for native MXFP8)* | `minimax_h3_audio_vae_fp32.safetensors` |> ยน **Intel XPU Native `MXFP4` TE Note:** Running true `W4A4` `fp4_gemm` on Intel XPU requires `qwen3vl_32b_minimax_h3_mxfp4_convrot_native.safetensors` (quantized with the strict non-saturating E8M0 scale rule) together with `COMFY_KITCHEN_XPU_NATIVE_MXFP4=1` and `H3_XPU_TE_QUANTIZED=1`. Without these flags, XPU Text Encoder encoding safely executes weight dequantization + FP32 GEMM (`_repaired` and `_fp32` produce bit-identical conditioning on XPU).>> **Optional 8-Step Acceleration:** Add `loras/minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors` to reduce denoising from 20 steps to 8 steps on either platform.---## 2. Quantized Model InventoryAll 10 newly quantized checkpoints use ComfyUI's native single-file `.safetensors` format with per-layer `.comfy_quant` tensors and file-level `_quantization_metadata`.### 2.1 Diffusion Transformer (`diffusion_models/`)- **Architecture:** Pruned MiniMax-H3 FL2VA joint audio-video DiT (`20.11B` parameters, 50 blocks).- **Quantized Scope:** **200 Linear layers** (`blocks.{0..49}.{attn.qkv_proj, attn.out_proj, mlp.fc1, mlp.fc2}`). Sensitive conditioning, refiner, patch embedding, AdaLN modulation, norm, and final projection tensors are preserved verbatim from `minimax_h3_fl2va_pruned_bf16.safetensors`.| File (`diffusion_models/...`) | Quantization Format | ConvRot | Size (Bytes / GB) | SHA256 ||---|---|---|---|---|| `minimax_h3_fl2va_pruned_mxfp8_convrot.safetensors` | `MXFP8` (`E4M3` + `E8M0` block-32, `128ร4` scale layout), AutoRound RTN | `H256` (`groupsize=256`) | `21,560,306,304` (`21.56 GB`) | `44608450527a2a7b11ba2d360e3d44228c30176cbaf12fd80160453a1ab449da` || `minimax_h3_fl2va_pruned_mxfp8.safetensors` | `MXFP8` (`E4M3` + `E8M0` block-32, `128ร4` scale layout), AutoRound RTN | Disabled | `21,560,297,704` (`21.56 GB`) | `53f357d82fd0b9d7a06962b3b6e7319acb27df634fbd832f6ffe8e9b0332848c` || `minimax_h3_fl2va_pruned_fp8_ptpc_convrot.safetensors` | `FP8 PTPC` (`float8_e4m3fn`, per-channel FP32 weight scale ร dynamic per-token FP8 act) | `H256` (`groupsize=256`) | `20,970,388,816` (`20.97 GB`) | `34357ffd6d4e411879c88e40e83836f34aea643ca77d6741716b4f5896592687` || `minimax_h3_fl2va_pruned_fp8_ptpc.safetensors` | `FP8 PTPC` (`float8_e4m3fn`, per-channel FP32 weight scale ร dynamic per-token FP8 act) | Disabled | `20,970,380,016` (`20.97 GB`) | `74696b0fceb404185f4922767b85250172a72c6e38560bb399f2a6e862bb7bfb` |### 2.2 Text Encoder (`text_encoders/`)- **Architecture:** 50-layer truncated Qwen3-VL-32B encoder tailored for MiniMax-H3 (`25.75B` parameters, hidden size `5120`).- **Quantized Scope:** **350 Linear layers** across 50 transformer blocks (`q_proj`, `k_proj`, `v_proj`, `o_proj`, `gate_proj`, `up_proj`, `down_proj`) quantized to `MXFP4` (`E2M1` packed + `E8M0` block-32) + **1 embedding table** (`model.embed_tokens`) quantized to weight-only `MXFP8` (unrotated). The `visual` tower and layer norms remain in `BF16` from `qwen3vl_32b_minimax_h3_bf16.safetensors`.| File (`text_encoders/...`) | Execution Policy & E8M0 Rule | ConvRot | Size (Bytes / GB) | SHA256 ||---|---|---|---|---|| `qwen3vl_32b_minimax_h3_mxfp4_convrot_repaired.safetensors` | `full_precision_matrix_mult=false` (Eager/FlashInfer E8M0 rule; native `W4A4` on B200, dequant+FP32 by default on XPU) | `H256` (`groupsize=256`) | `14,945,719,491` (`14.95 GB`) | `fd87082f2315a00389c408f1ca08f3ca40f7d5fad14ed908e677571b8831ef38` || `qwen3vl_32b_minimax_h3_mxfp4_repaired.safetensors` | `full_precision_matrix_mult=false` (Eager/FlashInfer E8M0 rule; native `W4A4` on B200) | Disabled | `14,945,687,993` (`14.95 GB`) | `bb659c6eac5c4e1c25bfa66cb54ab380529d15ffbc74d41f55f5b45edf907440` || `qwen3vl_32b_minimax_h3_mxfp4_convrot_fp32.safetensors` | `full_precision_matrix_mult=true` in both `.comfy_quant` and `_quantization_metadata.layers` (storage-compressed `MXFP4` -> dequant + unrotate + FP32 GEMM) | `H256` (`groupsize=256`) | `14,945,718,789` (`14.95 GB`) | `aa5aaa5596bce66323572c1d22074866b6a32aee10eb7de5244d4f79c08b205c` || `qwen3vl_32b_minimax_h3_mxfp4_fp32.safetensors` | `full_precision_matrix_mult=true` in both metadata layers (storage-compressed `MXFP4` -> dequant + FP32 GEMM) | Disabled | `14,945,687,291` (`14.95 GB`) | `0ff7c0c7489505e3360bbd28480503a23381163c4e24fdd8945f5557b6b6bfce` || `qwen3vl_32b_minimax_h3_mxfp4_convrot_native.safetensors` | `full_precision_matrix_mult=false`, **Intel XPU / oneDNN native non-saturating E8M0 rule** (`amax / scale <= 6.0`) for true XPU `W4A4` `_xpu_C.fp4_gemm` | `H256` (`groupsize=256`) | `14,945,719,491` (`14.95 GB`) | `7a5cb5af3483f2f887bc13f48cb26f9878da3c39bb8b4204be7ec7d147eec744` |### 2.3 Video VAE (`vae/`)- **Architecture:** ViT3D spatiotemporal Video VAE (`2.60B` parameters, 36-layer ViT decoder).- **Quantized Scope:** **144 decoder Linear layers** (`decoder.vit.layers.{0..35}.{attn.to_qkv, attn.to_out, ff.w1, ff.w2}`) quantized from `minimax_h3_video_vae_fp16.safetensors` to `MXFP8` + `ConvRot-256`, retaining `attention_mode: comfy_kitchen_int8` (Sage INT8 attention) and preserving all 418 non-target FP16/FP32 encoder, convolution, norm, and latent statistics tensors.| File (`vae/...`) | Quantization Format | ConvRot | Size (Bytes / GB) | SHA256 ||---|---|---|---|---|| `minimax_h3_video_vae_mxfp8_convrot.safetensors` | `MXFP8` (`E4M3` + `E8M0` block-32, `128ร4` scale layout) + Sage `INT8` ViT attention | `H256` (`groupsize=256`) | `2,882,744,968` (`2.88 GB`) | `fe4474bb88945ad9760850240db240e8e470c1fc7d092bac13939bf7309e5927` |### 2.4 Companion Files for End-to-End WorkflowsThese upstream companion checkpoints from [`Comfy-Org/MiniMax-H3`](https://huggingface.co/Comfy-Org/MiniMax-H3) are included in the repository so a complete workflow can be fetched from a single source:| Component | File | Precision | Size (Bytes / GB) | SHA256 ||---|---|---|---|---|| **Audio VAE** *(Required)* | `vae/minimax_h3_audio_vae_fp32.safetensors` | Unquantized `FP32` (151M BigVGAN / 1D Conv) | `605,254,808` (`0.61 GB`) | `8e505d95dd1561d47abd43d4238fd40d9bb1ae9e147ed0a4cba778d76ae4db48` || **Turbo LoRA** *(Optional)* | `loras/minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors` | `BF16` (8-step distillation LoRA) | `1,956,193,000` (`1.96 GB`) | `2339acdf19bfe123f46b971ea35d367a84adb85de43627e1eceafa5a5b2b111e` |### 2.5 Repository Artifacts & Files to AvoidBecause the working `models/` directory was synced in bulk, the repository currently contains several intermediate or auxiliary files. **Do not download the entire repository blindly**โuse targeted file downloads (ยง5) and avoid the following paths:- **Do NOT use `text_encoders/qwen3vl_32b_minimax_h3_mxfp4.safetensors` or `text_encoders/qwen3vl_32b_minimax_h3_mxfp4_llmc/`:** Early pre-repair exports retained solely as negative test fixtures (contain 89 corrupted zero-packed / zero-scale modules). Always use the `*_repaired.safetensors`, `*_fp32.safetensors`, or `*_convrot_native.safetensors` checkpoints listed in ยง2.2.- **Intermediate Hugging Face `compressed-tensors` folders (`text_encoders/qwen3vl_32b_minimax_h3_mxfp4_*_llmc_repaired/`):** Pre-conversion AutoRound export directories prior to `128ร4` scale swizzling and `.comfy_quant` single-file packaging; not directly loadable by ComfyUI's `CLIPLoader`.- **Sync / placeholder artifacts (`text_encoders/.nfs13dc56bd265e00020000676d`, `put_*_here`, `*_block0_errors.json`, and non-H3 auxiliary models):** Temporary filesystem or workspace artifacts unrelated to MXFP MiniMax-H3 inference.---## 3. Quantization Methodology & Format Details1. **Direct Quantization from Full-Precision Sources:**- DiT checkpoints were quantized from `minimax_h3_fl2va_pruned_bf16.safetensors`.- Qwen3-VL-32B Text Encoder checkpoints were quantized from `qwen3vl_32b_minimax_h3_bf16.safetensors`.- Video VAE was quantized from `minimax_h3_video_vae_fp16.safetensors` (with non-target FP32 norm/bias/latent statistics preserved).- Upstream `INT8` / `NVFP4` files were inspected strictly to match the exact `.comfy_quant` target-layer manifest, ensuring sensitive layers remain unquantized.2. **`MXFP8` (`E4M3` + `E8M0` Block-32):**- Quantized via [AutoRound](https://github.com/intel/auto-round) (`0.17.0`) optimized RTN (`iters=0`), storing `float8_e4m3fn` weights with one `E8M0` shared power-of-two exponent per 32 elements along $K$, transposed into ComfyUI's `128ร4` blocked scale layout.3. **`MXFP4` (`E2M1` + `E8M0` Block-32) & E8M0 Rounding Rules:**- Quantized via AutoRound optimized RTN (`iters=0`), packing two 4-bit `E2M1` values per `uint8` byte with one `E8M0` scale per 32 elements (`128ร4` scale layout) and `MXFP8` `model.embed_tokens`.- **Eager / FlashInfer Rule (`*_repaired`, `*_fp32`):** Uses IEEE-754 significand threshold `> 1.75` (`(bits + 0x200000) & 0x7F800000`), matching CUDA FlashInfer / Triton `mxfp4` conventions.- **Intel XPU Native Rule (`*_convrot_native`):** Intel XPU's `vllm_xpu_kernels` (`per_token_group_quant_mxfp4`) selects the smallest power-of-two scale satisfying $\text{amax} / \text{scale} \le 6.0$ (significand threshold `> 1.5`, matching the `E2M1` maximum representable magnitude of `6.0` without saturation). `qwen3vl_32b_minimax_h3_mxfp4_convrot_native.safetensors` aligns offline weight scales bit-for-bit with XPU's online activation quantizer.4. **`FP8 PTPC` (`float8_e4m3fn_ptpc`):**- Symmetric per-output-channel `float8_e4m3fn` weights with per-row `FP32` scale ($\text{absmax} / 448$), paired at runtime with dynamic per-token `FP8 E4M3` activation quantization (`[M, 1]` ร `[1, N]` row-wise scaling).5. **Hadamard Rotation (`ConvRot-256`):**- Applies a normalized block-diagonal regular $256 \times 256$ Hadamard transform $H_{256}$ ($H_{256} H_{256}^\top = I$) along the reduction dimension $K$:$$X W^\top = (X H_{256})(W H_{256})^\top$$- Suppresses channel/token outliers before block-32 or row-wise quantization. When `full_precision_matrix_mult=false`, activations are rotated online prior to dynamic quantization; when `full_precision_matrix_mult=true` (`_fp32` TE variants), weights are dequantized and inverse-rotated back to original coordinates so `FP32` activations require no online rotation.---## 4. Hardware & Runtime Support Matrix> **Important Software Requirement:** Stock upstream `ComfyUI v0.45.0` and `comfy-kitchen v0.2.41` do not yet bundle the `mxfp4`, `float8_e4m3fn_ptpc`, `MXFP8 + ConvRot`, and Intel XPU backend extensions out of the box. Running these checkpoints requires a ComfyUI + `comfy-kitchen` build equipped with `TensorCoreMXFP4Layout`, `TensorCorePTPCFP8Layout`, `MXFP8` ConvRot/embedding scale support, and Qwen3-VL `llama.py` Q/K/V `FP32` attention dtype restoration.| Stage / Format | Intelยฎ XPU (`0x674f` / CRI) Verified Execution Path | NVIDIA Blackwell (`B200` / `SM100`) Verified Execution Path ||---|---|---|| **DiT โ `MXFP8` (`ยฑConvRot`)** | Online `H256` -> `vllm_xpu_kernels` `_C.per_token_group_fp8_quant` (`MXFP8`) -> `_xpu_C.fp8_gemm` (oneDNN `3.14` W8A8 GEMM; `200` calls/step) | Online `H256` -> FlashInfer `mxfp8_quantize` -> FlashInfer CuTe-DSL SM100 block-scaled `MXFP8` GEMM (`200` calls/step) || **DiT โ `FP8 PTPC` (`ยฑConvRot`)** | Online `H256` -> dynamic per-token FP8 quant -> `_xpu_C.fp8_gemm` (oneDNN W8A8 per-token ร per-channel GEMM; `200` calls/step) | Online `H256` -> dynamic per-token FP8 quant -> `torch._scaled_mm` v2 (CUTLASS SM90/SM100 row-wise W8A8 GEMM; `200` calls/step) || **DiT โ Attention** | PyTorch XPU SDPA (`micro_sdpa` with GQA, `BF16`, `50` calls/step) | FlashAttention / CuTe / cuDNN `BF16` SDPA (`50` calls/step) || **TE โ `MXFP4` Native `W4A4`** | **`*_convrot_native`** + `COMFY_KITCHEN_XPU_NATIVE_MXFP4=1` + `H3_XPU_TE_QUANTIZED=1`: `BF16` `H256` -> `_C.per_token_group_quant_mxfp4` -> `_xpu_C.fp4_gemm` (`350` calls) + `FP32` SDPA | **`*_repaired`**: `BF16` (`ยฑH256`) -> FlashInfer `mxfp4_quantize` -> FlashInfer `mm_fp4(block_size=32, use_nvfp4=False)` (`350` calls) + `FP32` CUTLASS FMHA || **TE โ `MXFP4` Dequant `FP32`** | **`*_repaired` / `*_fp32`** (default env): eager `dequantize_mxfp4` + `FP32` inverse `H256` + `FP32` `aten::mm` (`gemm_kernel`) + `FP32` SDPA | **`*_fp32`**: eager `dequantize_mxfp4` + `FP32` inverse `H256` SGEMM + `FP32` cuBLAS SGEMM (`350` calls) + `FP32` CUTLASS FMHA || **Video VAE โ `MXFP8 ConvRot`** | `144` ร MXFP8 `_xpu_C.fp8_gemm` per ViT chunk + `36` ร DeepKLOX `0.1.0` `sageattn(precision="int8")` (`SAGEV1`: INT8 QK + FP16 PV) | `144` ร FlashInfer MXFP8 GEMMs per ViT chunk + `36` ร `comfy-kitchen` CUDA Sage `INT8` (`qk_int_sv_i8`: INT8 QK + INT8 PV) || **Audio VAE โ `FP32`** | Native `FP32` 1D Conv / BigVGAN (`gen_conv`) | Native `FP32` cuDNN / ATen 1D Conv / BigVGAN |### Verified Software Environments- **Intel XPU (`0x674f` / CRI, 128 GiB):** PyTorch `2.15.0a0` (XPU), oneDNN `3.14.0`, Triton `3.9.0` (`backend='xpu'`), `vllm` / `vllm-xpu-kernels` (`0.1.dev1`), `DeepKLOX 0.1.0`, `ComfyUI 0.45.0`, `comfy-kitchen 0.2.41` (+ MXFP/PTPC/XPU patches).- **NVIDIA Blackwell (`B200` / `SM100`, 180 GiB):** Driver `580.178.04`, Python `3.12`, PyTorch `2.13.0+cu130`, `flashinfer 0.6.18`, `nvidia-cutlass-dsl 4.6.2`, `comfy-aimdo 0.6.0`, `ComfyUI 0.45.0`, `comfy-kitchen 0.2.41` (+ MXFP/PTPC/CUDA patches).---## 5. Download & ComfyUI Usage### 5.1 Targeted Download (`huggingface_hub` CLI)Download only the specific `.safetensors` files needed for your hardware into `ComfyUI/models/`:```bash# Example: Download ConvRot-MXFP8 DiT + ConvRot-MXFP4 TE + MXFP8 Video VAE + FP32 Audio VAE + 8-step Turbo LoRAhf download intel-ai/MiniMax-H3-MXFP-Comfy \diffusion_models/minimax_h3_fl2va_pruned_mxfp8_convrot.safetensors \diffusion_models/minimax_h3_fl2va_pruned_fp8_ptpc_convrot.safetensors \text_encoders/qwen3vl_32b_minimax_h3_mxfp4_convrot_repaired.safetensors \vae/minimax_h3_video_vae_mxfp8_convrot.safetensors \vae/minimax_h3_audio_vae_fp32.safetensors \loras/minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors \--local-dir ComfyUI/models# Optional (Intel XPU native W4A4 TE only):hf download intel-ai/MiniMax-H3-MXFP-Comfy \text_encoders/qwen3vl_32b_minimax_h3_mxfp4_convrot_native.safetensors \--local-dir ComfyUI/models```Ensure your directory layout matches standard ComfyUI conventions:```textComfyUI/models/โโโ diffusion_models/โ โโโ minimax_h3_fl2va_pruned_mxfp8_convrot.safetensorsโ โโโ minimax_h3_fl2va_pruned_fp8_ptpc_convrot.safetensorsโโโ text_encoders/โ โโโ qwen3vl_32b_minimax_h3_mxfp4_convrot_repaired.safetensorsโ โโโ qwen3vl_32b_minimax_h3_mxfp4_convrot_native.safetensors # XPU native W4A4 optionโโโ vae/โ โโโ minimax_h3_video_vae_mxfp8_convrot.safetensorsโ โโโ minimax_h3_audio_vae_fp32.safetensorsโโโ loras/โโโ minimax_h3_fl2v_turbo_8step_v1.0_comfyui_bf16.safetensors```### 5.2 Running the Text-to-Video Workflow1. Load the official [`video_minimax_h3_t2v.json`](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/video_minimax_h3_t2v.json) workflow template in ComfyUI (default `864ร480`, `124` frames at `24 fps`, `32 kHz` stereo AAC audio, `20` Euler steps or `8` steps with Turbo LoRA enabled).2. Select your downloaded checkpoints in the four loader nodes:- **`UNETLoader` (Diffusion Model):** e.g., `minimax_h3_fl2va_pruned_mxfp8_convrot.safetensors` or `minimax_h3_fl2va_pruned_fp8_ptpc_convrot.safetensors`- **`CLIPLoader` (Text Encoder, `type: minimax_h3`):** e.g., `qwen3vl_32b_minimax_h3_mxfp4_convrot_repaired.safetensors`- **`VAELoader` (Video VAE):** `minimax_h3_video_vae_mxfp8_convrot.safetensors`- **`VAELoader` (Audio VAE):** `minimax_h3_audio_vae_fp32.safetensors`3. **Platform launch notes:**- **NVIDIA B200:** Launch ComfyUI with your MXFP-enabled environment (`PYTHONPATH=/path/to/comfy-kitchen`). Selecting `*_repaired.safetensors` dispatches `W4A4` MXFP4 GEMMs; selecting `*_fp32.safetensors` dispatches dequantized `FP32` GEMMs.- **Intel XPU (Default Dequant TE):** Launch ComfyUI normally with `ZE_AFFINITY_MASK=<device_id>` and `PYTHONPATH=/path/to/ComfyUI:/path/to/comfy-kitchen`, using `qwen3vl_32b_minimax_h3_mxfp4_convrot_repaired.safetensors`.- **Intel XPU (Native `W4A4` `MXFP4` TE):** Launch ComfyUI with:```bashCOMFY_KITCHEN_XPU_NATIVE_MXFP4=1 H3_XPU_TE_QUANTIZED=1 \python3 main.py --listen 0.0.0.0 --port 8188```and select `qwen3vl_32b_minimax_h3_mxfp4_convrot_native.safetensors` in `CLIPLoader`.---## 6. Validation Summary & Known Limitations- **Hardware Kernel Verification:** Every supported checkpoint combination in ยง1 and ยง4 was verified via **NVIDIA Nsight Systems / CUPTI** (`B200`) and **PyTorch Kineto / XPU Profiler** (`Intel XPU 0x674f`), confirming exact dynamic quantization, Hadamard rotation, block-scaled / row-wise GEMM kernel counts (`350` TE Linears, `200` DiT Linears/step, `144 ร 42 = 6,048` Video VAE ViT Linears), and valid `864ร480 @ 24fps` H.264 + `32 kHz` stereo AAC output without NaN, black frames, or silent audio.- **Component Numerical Reference (Single-Prompt T2V `864ร480`, 124 Frames, 20 Steps):**- **Video VAE (`minimax_h3_video_vae_mxfp8_convrot` vs upstream `INT8 ConvRot` Video VAE, identical latents):** Global decoded RGB **PSNR `40.84 dB`**, **MAE `1.58 / 255`**, bit-identical audio PCM. *(Note: `MXFP8` block-32 `E8M0` scales add ~71.7 MB on disk vs per-channel `INT8` scales, and unfused Python/MX dispatch has higher wall-clock decode latency than upstream's custom fused `INT8` CUDA ops).*- **DiT (`B200`, fixed TE/VAE/seed vs upstream `INT8 ConvRot` DiT):** `fp8_ptpc` achieved `18.26 dB` RGB PSNR (`MAE 20.29`), `mxfp8_convrot` achieved `16.65 dB` (`MAE 24.72`), and `mxfp8` achieved `15.68 dB` (`MAE 30.09`). Because 20-step joint audio-video diffusion amplifies small early-step trajectory perturbations, single-seed pixel PSNR should be treated as trajectory divergence rather than a perceptual quality ranking.- **Text Encoder (`W4A4` vs `FP32` dequant):** On `B200`, `ConvRot-MXFP4` `W4A4` vs `FP32` dequant yielded `15.87 dB` end-to-end T2V RGB PSNR (`MAE 25.94`); on `Intel XPU`, native `W4A4` (`_convrot_native`) vs `FP32` dequant yielded `15.69 dB` (`MAE 28.15`), while cutting Text Encoder execution time from `13.94 s` to `7.57 s`.- **Scope Limitations:**- Validation focused on the `video_minimax_h3_t2v.json` Text-to-Video workflow. Image-to-Video (I2V), Reference-to-Video-Audio (Ref2VA), ControlNet, and P-H3 image workflows were not exhaustively quantized or benchmarked in this release; note that Qwen3-VL's `visual` tower remains unquantized (`BF16`) inside all `text_encoders/` checkpoints.- Video VAE is provided only in `ConvRot-MXFP8` (`minimax_h3_video_vae_mxfp8_convrot.safetensors`); no unrotated `MXFP8` Video VAE checkpoint was produced.- On Intel XPU (`SAGEV1`, INT8 QK + FP16 PV) vs NVIDIA B200 (`qk_int_sv_i8`, INT8 QK + INT8 PV), Video VAE Sage attention uses platform-specific accumulator/PV precision and is not bit-identical across vendors.---## 7. License & Acknowledgements- **License:** These quantized derivative weights inherit the [MiniMax-H3 Community License Agreement](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/LICENSE) from the upstream model release. Please review the upstream license terms before commercial or non-commercial use.- **Acknowledgements:**- Original model architecture and weights by [MiniMax (`MiniMaxAI/MiniMax-H3`)](https://huggingface.co/MiniMaxAI/MiniMax-H3).- Native ComfyUI model adaptation, single-file packaging conventions, and workflow templates by [Comfy-Org (`Comfy-Org/MiniMax-H3`)](https://huggingface.co/Comfy-Org/MiniMax-H3).- `MXFP8` and `MXFP4` quantization powered by [Intel AutoRound](https://github.com/intel/auto-round).
README.md+230-2