Skip to content
Other

MiniMax-H3 Prompt Rewriter (Qwen3.8-27B-FL2VA)

умный рерайтер промптов для видео и аудио

2 min read

Модель предназначена для автоматического улучшения и доработки текстовых промптов перед генерацией видео и звука в системе MiniMax-H3. Она умеет работать как с чистым текстом, так и с визуальными референсами — начальным и конечным кадрами будущего ролика, помогая точнее описать переход и динамику сцены. В основе лежит крупная языковая модель Qwen3.8-27B (27.36 млрд параметров), дообученная методом SFT (контролируемое дообучение на примерах) командой lightx2v. Инструмент пригодится разработчикам и авторам, которые хотят получать более детализированные и предсказуемые результаты при генерации видео со звуком.

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

  • Четыре режима генерации: поддержка чистого текста (T2VA), опоры на первый кадр (I2VA), последний кадр (L2VA) или сразу оба кадра (FL2VA).
  • Рассуждения перед ответом: модель генерирует не только улучшенный промпт, но и цепочку рассуждений (reasoning), сохраняя результат в JSON.
  • Длинный контекст: окно контекста составляет 32 768 токенов с лимитом на генерацию ответа до 16 384 токенов.
  • Готовность к продакшену: адаптирована для быстрого развёртывания через движок vLLM с помощью готовых bash-скриптов.

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

  • Улучшить качество видеогенерации: встроить рерайтер как промежуточный шаг в пайплайн создания роликов для MiniMax-H3, чтобы превращать короткие идеи в подробные сценарии со звуковым сопровождением.
  • Склеивать сцены по ключевым кадрам: подавать на вход первый и последний кадры (режим FL2VA), чтобы модель сама описала логичное движение и звук между ними.
  • Автоматизировать контент-пайплайны: подключить модель по API через vLLM в локального бота или сервис генерации видео с заданием длительности (DURATION).

Пример

pip install vllm requests pillow qwen-vl-utils
bash vllm_server.sh
bash post_vllm.sh
ПодробнееБазовая модель: Qwen3.8-27B (27.36B параметров), метод обучения — SFT.
В релизе также доступна более лёгкая версия на базе Qwen3.5-9B.
Для запуска требуется GPU и окружение с vLLM; по умолчанию сервер использует GPU 0 и порт 8000.
Результат инференса (улучшенный промпт, рассуждения, параметры и тайминги) сохраняется в infer_outputs/result.json.
Discuss 2 7.4K

Will it run?

Runs in 4-bit

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

  • BF16weights 51 GB · ready files57 GB
  • FP8 / INT8recommendedweights 25 GB29 GB
  • 4-bitweights 14 GB16 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.

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.

    # lightx2v/MiniMax-H3-Prompt-Rewriter-Qwen3.8-27B-FL2VA
    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 lightx2v/MiniMax-H3-Prompt-Rewriter-Qwen3.8-27B-FL2VA --local-dir ~/models/MiniMax-H3-Prompt-Rewriter-Qwen3.8-27B-FL2VA
    # 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-Prompt-Rewriter-Qwen3.8-27B-FL2VA (quants, finetunes, LoRAs) will show up under the bell.

Quantised versions 1All on Hugging Face
Fine-tunes 2All on Hugging Face

About the model

lightx2v/MiniMax-H3-Prompt-Rewriter-Qwen3.8-27B-FL2VA
Author
lightx2v
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

7.4K2

Ask AI about this model

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

Comments