PEFT
Safetensors
MiniMax H3
English
lora
prompt-rewriting
text-to-audio-video
audio-video-generation
Run this model with HF Jobs
Run Momoking/MiniMax-H3-Prompt-Rewriter-LoRA 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/Momoking/MiniMax-H3-Prompt-Rewriter-LoRA. 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/Momoking/MiniMax-H3-Prompt-Rewriter-LoRA 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 Momoking/MiniMax-H3-Prompt-Rewriter-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Momoking/MiniMax-H3-Prompt-Rewriter-LoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.6-27B") model = PeftModel.from_pretrained(base_model, "Momoking/MiniMax-H3-Prompt-Rewriter-LoRA") - Notebooks
- Google Colab
- Kaggle
Update README.md
#1
by lightx2v - opened
174 unmodified lines175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212174 unmodified lines### 4. Generate synchronized video and audioRun the rewritten prompt with LightX2V from the `LightX2V` repository root:```bashsource scripts/base/base.shexport DTYPE=BF16export SENSITIVE_LAYER_DTYPE=FP32python -m lightx2v.infer \--model_cls minimax_h3 \--task t2av \--model_path /path/to/MiniMax-H3 \--config_json configs/minimax_h3/minimax_h3_t2av.json \--prompt "$(</tmp/h3_rewritten_prompt.txt)" \--save_result_path save_results/minimax_h3_t2av.mp4 \--seed 42```The output MP4 contains both video and synchronized stereo audio. Make sure that theduration and aspect ratio in the LightX2V config match the conditions passed to theprompt rewriter. Ready-to-run single-GPU, block-offload, tensor-parallel, and combinedTP+SP examples are available in the**[LightX2V MiniMax-H3 scripts](https://github.com/ModelTC/LightX2V/tree/main/scripts/minimax_h3)**.For lower-memory or multi-GPU inference, start from one of these configurations:| Mode | LightX2V example ||---|---|| Single GPU | `configs/minimax_h3/minimax_h3_t2av.json` || Block offload | `configs/minimax_h3/minimax_h3_t2av_block_offload.json` || Sequence parallelism | `configs/minimax_h3/minimax_h3_t2av_sp.json` || Tensor parallelism | `configs/minimax_h3/minimax_h3_t2av_tp.json` || Tensor + sequence parallelism | `configs/minimax_h3/minimax_h3_t2av_tp_sp.json` |## Qualitative comparison174 unmodified lines175176177178179180181182183174 unmodified lines### 4. Generate synchronized video and audioUse the rewritten prompt saved in `/tmp/h3_rewritten_prompt.txt` to generate video and audio with LightX2V.Follow the [official generation instructions](https://huggingface.co/lightx2v/MiniMax-H3-Prompt-Rewriter-LoRA#4-generate-synchronized-video-and-audio) for AdaLN cache preparation, current launch commands, and configuration options.## Qualitative comparison
README.md+2-31