Skip to content
Other

MiniMax-H3-Image-EntroPack

запуск 33.1B модели в 4K на 12–24 ГБ VRAM

2 min readupdated

Набор предварительно квантованных и обрезанных (AdaLN-pruned) весов для генератора изображений MiniMax/MiniMax-H3-Image от команды DiffSynth-Studio. Разработчики заменили проекции AdaLN и эмбеддер шагов на предвычисленные таблицы поиска для дистиллированного 6-шагового режима — это уменьшило модель с 33.1B до 20.1B параметров (с 66.3 ГБ до 40.2 ГБ в bfloat16) вообще без потери качества относительно оригинала. Сверху применено сжатие EntroPack (энтропийное кодирование и квантование весов до 3–8 бит на параметр), благодаря чему тяжелая модель помещается в видеопамять потребительских видеокарт от 12 до 24 ГБ VRAM. Релиз пригодится всем, кто хочет локально генерировать изображения в разрешении 4096×4096 через ComfyUI или DiffSynth-Studio и обучать под модель свои LoRA.

Ключевые особенности

  • Без потерь на этапе прунинга: версия bf16_table_pruned выдаёт попиксельно идентичный оригиналу результат при том же промпте и сиде за 6 шагов сэмплирования.
  • Пять уровней сжатия DiT: доступны пакеты 8bit, 7bit, 6bit, 4.5bit и экстремальный extreme_3bpp (всего 7.67 ГБ), а также квантованный vae_int8 (0.77 ГБ).
  • Ускорение через INT8 GEMM: варианты с суффиксом _int8 используют матричные умножения INT8 W8A8 с convrot и работают быстрее версий на BF16 GEMM.
  • Гибкая сборка под железо: веса DiT и текстового энкодера (text_encoder_3bpp–8bpp) выбираются и комбинируются независимо друг от друга.
  • Готовая интеграция с ComfyUI: в репозитории лежит готовый воркфлоу featured_minimax_h3_image_entropack.json для нод DiffSynth-ComfyUI с автозагрузкой весов.

Что можно сделать

  • Генерировать детализированные изображения 4096×4096 за 6 шагов на видеокартах с 24 ГБ VRAM (рекомендуются dit_7bit или dit_7bit_int8).
  • Запускать генерацию на видеокартах с 12 ГБ VRAM и меньше, выбрав облегчённые пакеты dit_4p5bit или dit_4p5bit_int8.
  • Дообучать собственные LoRA-адаптеры под MiniMax-H3-Image с помощью готовых скриптов тренировки и валидации из DiffSynth-Studio.

Пример

from diffsynth.pipelines.minimax_h3_image import MiniMaxH3ImagePipeline, ModelConfig

pipe = MiniMaxH3ImagePipeline.from_pretrained(
    torch_dtype=torch.bfloat16, device="cuda",
    model_configs=[
        register_prequantized("DiffSynth-Studio/MiniMax-H3-Image-EntroPack", "models/dit_7bit.safetensors"),
        register_prequantized("DiffSynth-Studio/EntroPackPreQuants", "models/MiniMax-H3/text_encoder_3bpp.safetensors"),
        ModelConfig(model_id="DiffSynth-Studio/MiniMax-H3-Image-EntroPack", origin_file_pattern="models/vae_int8.safetensors"),
    ],
)
ПодробнееТребования к VRAM: от 24 ГБ для dit_7bit / dit_7bit_int8, от 12 ГБ и меньше для dit_4p5bit / dit_4p5bit_int8.
Ограничения: только для инференса в дистиллированном 6-шаговом расписании; для режима INT8 GEMM нужны Triton и GPU NVIDIA с Compute Capability 8.0+ (Ampere и новее).
Зависимости: требуются DiffSynth-Studio, EntroPack и пакет CuPy под вашу версию CUDA (cupy-cuda12x или cupy-cuda13x).
Примеры
Discuss Telegram 2 21

Will it run?

Runs in FP8 / INT8

Full precision does not fit, a quantised version does: quality barely changes down to 8 bits, more noticeably at 4 bits.

  • BF16weights 37 GB · ready files42 GB
  • FP8 / INT8recommendedweights 19 GB21 GB
  • 4-bitweights 11 GB12 GB

Tip: go 8-bit.FP8 / INT8 is within about a percent of full precision in quality, takes half the memory and runs faster on RTX 40/50 and H100. Full precision only pays off for fine-tuning.

What to get for this model

Massed ComputeOpen Massed Compute

Your own GPU: FP8 / INT8 — from RTX 4090

Massed Compute hourly prices, November 2026. The discounted price applies with the coupon at checkout.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # DiffSynth-Studio/MiniMax-H3-Image-EntroPack
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download DiffSynth-Studio/MiniMax-H3-Image-EntroPack --local-dir ~/models/MiniMax-H3-Image-EntroPack
    # The model is in ~/models. How to run it is in the model card (link above).
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b40from November 18, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026new release

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

MiniMax H3 prompts

All prompts

Ready prompts with the resulting video: copy and try.

Model family

New posts about versions of MiniMax-H3-Image (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

DiffSynth-Studio/MiniMax-H3-Image-EntroPack
Author
DiffSynth-Studio
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

212

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments