Views
No views yet
adapter_config.json and adapter_model.safetensors: LoRA files to place at the repository root.infer.py: single-sample inference for all four tasks.prompt_template.py: the single source of truth for the system prompt, task aliases, and image/message ordering.requirements.txt: minimal inference dependencies.1git lfs install
2hf auth login # required while the repository is private
3git clone https://huggingface.co/lightx2v/MiniMax-H3-Prompt-Rewriter-LoRA-8B
4cd MiniMax-H3-Prompt-Rewriter-LoRA-8B
5pip install -r requirements.txt--base-model.adapter_config.json is present. Otherwise it downloads the adapter from this Hugging Face repository. Greedy decoding is recommended for deterministic prompt rewriting.1python infer.py \
2 --task t2va \
3 --prompt "A corgi runs through a rainy neon-lit alley." \
4 --duration 5 \
5 --resolution 16:9 \
6 --greedy \
7 --output outputs/t2va.json1python infer.py \
2 --task i2va \
3 --first-frame /path/to/first_frame.jpg \
4 --prompt "The subject turns toward the camera and smiles." \
5 --duration 5 \
6 --resolution adaptive \
7 --greedy \
8 --output outputs/i2va.json1python infer.py \
2 --task l2va \
3 --last-frame /path/to/last_frame.jpg \
4 --prompt "A paper airplane crosses the room and lands in the shown final pose." \
5 --duration 5 \
6 --resolution adaptive \
7 --greedy \
8 --output outputs/l2va.json1python infer.py \
2 --task fl2va \
3 --first-frame /path/to/first_frame.jpg \
4 --last-frame /path/to/last_frame.jpg \
5 --prompt "Create a continuous cinematic transition between the two reference frames." \
6 --duration 5 \
7 --resolution adaptive \
8 --greedy \
9 --output outputs/fl2va.json--prompt-file prompt.txt instead of --prompt for long input. A .json output records the request metadata and writes the rewritten text to enhanced_prompt; any other extension writes plain text. Run python infer.py --help for sampling, dtype, processor pixel-budget, device-map, and local-path options.--base-only. This intentionally skips the LoRA while keeping the same system prompt and task-specific input layout.enhanced_prompt to the corresponding MiniMax-H3 task in LightX2V, preserving the same duration, resolution, and reference-frame roles:--task t2av--task i2av --image_path FIRST_FRAME--task l2av --last_frame_path LAST_FRAME--task fl2av --image_path FIRST_FRAME --last_frame_path LAST_FRAMEprompt_template.py. infer.py imports that file directly and renders the conversation with enable_thinking=False, matching the training input format. Edit that one file if you need a custom prompting policy.