MiniMax H3 encoder GGUF

Providerjoeygambino
Categoryimage-to-video
LicenseApache-2.0
Downloads120.4K
Stars0

Overview

The MiniMax H3 encoder, now available in GGUF format, provides a quantized implementation of the vision encoding backbone used in high-fidelity image-to-video generation. For developers, this means a significantly lower memory footprint and the ability to run the encoder on consumer-grade hardware without sacrificing the spatial awareness required for temporal consistency in video synthesis. Unlike full-precision weights, the GGUF version simplifies integration into local pipelines and C++ based environments, making it an efficient choice for pre-processing frames or extracting latent representations before passing them to a diffusion decoder. It bridges the gap between high-end cloud GPUs and local development for those building custom video generative workflows.

Highlights

  • GGUF quantization for reduced VRAM and local deployment
  • Optimized for image-to-video latent representation extraction
  • Apache-2.0 license allows flexible commercial integration
  • High spatial fidelity for consistent temporal video synthesis

Usage

Install
# Install Hugging Face transformers
pip install transformers torch
SDK Usage
# Load model with transformers
from transformers import AutoModel, AutoTokenizer

model = AutoModel.from_pretrained("joeygambino/MiniMax-H3-encoder-GGUF")
tokenizer = AutoTokenizer.from_pretrained("joeygambino/MiniMax-H3-encoder-GGUF")

Hugging Face Download

We recommend downloading the model via the Hugging Face CLI or Hub SDK.

Guidance:Before downloading, install huggingface_hub with:

Guidance
pip install -U huggingface_hub

CLI Download

Download the full repository

Download the full repository
huggingface-cli download joeygambino/MiniMax-H3-encoder-GGUF

Download a single file to a local folder (e.g. config.json into ./dir)

Download a single file to a local folder (e.g. config.json into ./dir)
huggingface-cli download joeygambino/MiniMax-H3-encoder-GGUF config.json --local-dir ./dir

See the official docs for more CLI options

SDK Download

SDK Download
# 模型下载
from huggingface_hub import snapshot_download
model_dir = snapshot_download('joeygambino/MiniMax-H3-encoder-GGUF')

Git Download

Make sure git-lfs is installed first

Git Download
git lfs install
git clone https://huggingface.co/joeygambino/MiniMax-H3-encoder-GGUF

To skip LFS large-file downloads, use:

Skip LFS
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/joeygambino/MiniMax-H3-encoder-GGUF

Model files are hosted on the Hugging Face Hub — download directly via HF CLI / SDK / Git, not through this site.

PyTorch / Transformers Usage

Install Transformers

Install Transformers
pip install -U transformers torch

Load the model and run inference

Load the model and run inference
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained('joeygambino/MiniMax-H3-encoder-GGUF')
tokenizer = AutoTokenizer.from_pretrained('joeygambino/MiniMax-H3-encoder-GGUF')

Full Documentation

来源: HuggingFace

---
library_name: gguf
tags:
- gguf
- text-encoder
- minimax
- minimax-h3
- qwen3-vl
- comfyui
- video
- text-to-video
- image-to-video
base_model:
- MiniMaxAI/MiniMax-H3
---

MiniMax-H3 Text Encoder — GGUF

GGUF quantizations of the Qwen3-VL-32B vision-language text encoder used by
MiniMax-H3 in ComfyUI.

The H3 DiT quants are here: joeygambino/MiniMax-H3-GGUF.
You need one file from each repo to run H3 — the DiT alone will not generate anything.

---

Troubleshooting: state_dict / vision mismatch with the -mmproj file

Load these encoders with H3 Clip Loader (Any) from
ComfyUI-H3-Multishot,
not the stock CLIPLoaderGGUF node.

The H3 text encoder is a *truncated* Qwen3-VL-32B - 50 layers, no final norm,
no lm_head - and its vision tower ships separately as the -mmproj-F16.gguf
sidecar. Stock ComfyUI-GGUF only merges an mmproj when the encoder's
architecture is qwen2vl; Qwen3-VL reports qwen3vl, so the sidecar is never
merged at all, and the resulting missing vision tensors surface as a state_dict
mismatch. Its mmproj key map is also qwen2vl-era: wrong merger keys, and no
rules for H3's deepstack mergers or split QKV, so even forcing the merge would
not line up.

The pack's loader does all three things stock cannot - truncates the text tower
to H3's shape, merges the sidecar explicitly, and renames the vision tensors to
H3's layout (including remapping deepstack mergers, which llama.cpp indexes by
vision layer 8/16/24 and H3 indexes by position 0/1/2).

Keep the -mmproj-F16.gguf in the same folder as the encoder and do not
rename either file: they are paired by filename stem.

Why does a .safetensors encoder work without any of this? Because a full
safetensors encoder (fp8, int8, NVFP4-AWQ, ...) is a complete, pre-shaped model
with its vision tower already inside. It needs no sidecar and no remapping.
That is a property of the container, not of the quantization - NVFP4 is not
doing anything special here.

Files

| File | Size | Use |
|---|---|---|
| MiniMax-H3-encoder-Q4_K_M.gguf | 19.8 GB | Recommended. ~16.5 GB resident. |
| MiniMax-H3-encoder-Q5_K_M.gguf | 23.2 GB | Higher precision, more VRAM. |
| MiniMax-H3-encoder-mmproj-F16.gguf | 1.2 GB | Multimodal projector — REQUIRED for image input. |

The mmproj is not optional if you use reference images

H3's reference-to-video (ref2va) and image-to-video paths feed images into the
text encoder. Without mmproj, the encoder is text-only: reference images are
ignored and reference/I2V workflows will not behave correctly.

CLIPLoaderGGUF (from ComfyUI-GGUF)
auto-pairs the mmproj sidecar by filename, so keep the names exactly as
downloaded and put the mmproj in the same folder as the encoder.

---

Install

Place all files in:

code
ComfyUI/models/text_encoders/
├── MiniMax-H3-encoder-Q4_K_M.gguf
└── MiniMax-H3-encoder-mmproj-F16.gguf

Load with CLIPLoaderGGUF (ComfyUI-GGUF) — or H3ClipLoaderAny from
ComfyUI-H3-Multishot,
which accepts either .safetensors or .gguf and handles the mmproj pairing.

Set the CLIP type to minimax.

---

VRAM: read this before you file a "it's so slow" issue

The encoder and the DiT do not co-fit on a 32 GB card:

| Component | Resident |
|---|---|
| Encoder (Q4_K_M) | ~16.5 GB |
| H3 DiT | ~25 GB |

If both are held at once, the DiT loads partially and streams the remainder from
system RAM every sampling step. Measured on an RTX 5090: ~60 minutes for a clip
that takes ~15 minutes when the DiT is fully resident. The tell in your log is:

code
loaded partially; 6423 MB usable, 5847 MB loaded, 19363 MB offloaded

Fix: evict the encoder after conditioning and before sampling. Conditioning is
already computed at that point, so the encoder weights are safe to drop:

python
import comfy.model_management as mm
clip.patcher.model.to(mm.text_encoder_offload_device())
mm.free_memory(mm.get_total_memory(mm.get_torch_device()) * 0.9, mm.get_torch_device())
mm.soft_empty_cache()

The multishot sampler in
ComfyUI-H3-Multishot
does this automatically between shots.

Note that a chained multi-shot workflow re-encodes per shot (each shot conditions on
the previous shot's last frame), so the encoder reloads each time — a few seconds per
shot, which is far cheaper than streaming ~19 GB every step.

---

Notes on quantization

The encoder is Qwen3-VL-32B, whose tensor dimensions permit K-quants — hence
Q4_K_M / Q5_K_M here. The H3 DiT cannot use K-quants (its 2688-wide tensors
are not divisible by 256), which is why that repo ships Q4_0 / Q5_1 instead. If
you are mixing and matching, that difference is expected, not a packaging error.

---

Also on Civitai

Same files, if you prefer downloading there: MiniMax-H3 Text Encoder GGUF (Qwen3-VL)

Support

Everything here is free and stays free — the format spec, the nodes, the workflows,
the cartridges, the LoRAs. If it saved you a night of debugging (it contains several
hundred of mine), tips keep the 5090 warm:

---

Credits

  • Qwen3-VL — Alibaba / Qwen team

Quantized and packaged by joeygambino.

Join our Telegram