Skip to main content
Back

Wuli-art's Gemma4 Fine-Tune Rewrites Short Prompts for MiniMax H3

A community fine-tune of Gemma4-12B rewrites short prompts into the dense, structured descriptions MiniMax-H3 needs for cleaner audio and video output.

Pro

  • Wuli-art released Gemma4-for-MiniMax-H3-Prompt-Extend, a prompt rewriter for MiniMax-H3 video generation.
  • Fine-tuned from Google Gemma4-12B-IT, licensed Apache-2.0, with BF16, FP8, and Int8 builds.
  • Single weight set covers both FL2VA and Ref2VA input formats used by H3.
  • Ships two independent ComfyUI workflows for first/last-frame and reference-conditioned tasks.
  • Interactive bench compares it against raw prompts, Gemma4 base, MiniMax official PE, and lightx2v.
  • Targets MiniMax H3, a 33B omni-modal model generating 2K video with native stereo audio.

Wuli-art has released Gemma4 rewriter, a community prompt enhancer for MiniMax H3. The 12B fine-tune expands short instructions into the structured scene, camera, timing, reference, and audio descriptions expected by H3’s generation pipeline.

MiniMax describes H3 as a 33B multimodal model for text, images, video, and audio. It supports video up to 15 seconds at 2K resolution with native stereo sound, along with several generation modes that impose different prompt requirements. A separate rewriter lets developers standardize those inputs without retraining the larger generator.

H3 speaks several prompt dialects

An H3 request can specify text alone, initial and final frames, subject references, style references, or editing constraints. Each mode requires the prompt to identify relevant inputs, preserve requested details, and describe how the scene changes over time. Short prompts often omit camera behavior, temporal order, sound cues, and reference mappings.

Prompt expansion supplies those missing fields before generation. The process can improve instruction coverage, although it can also introduce unwanted details or weaken precise wording. Inspecting the expanded prompt remains important when identity, composition, timing, or dialogue must stay fixed.

One checkpoint, two schemas

The fine-tune handles the FL2VA and Ref2VA input schemas with one checkpoint. Developers select the matching ComfyUI workflow rather than loading separate rewriters for each generation mode.

Schema Supported inputs Expansion focus
FL2VA Text-to-video, image-to-video, last-frame, and first-and-last-frame generation Scene layout, subject actions, camera movement, temporal changes, frame constraints, and sound
Ref2VA Subject-conditioned and style-conditioned generation Reference roles, retained attributes, identity and style constraints, actions, camera direction, and audio

Both paths produce text for H3 rather than video frames. The repository’s two ComfyUI graphs connect that expanded text to the appropriate generation stage. In the project’s benchmark terminology, PE refers to prompt enhancement.

Five paths, qualitative evidence

The author’s interactive benchmark compares five prompt-processing approaches across nine cases and 45 videos. It covers text-to-video, image-to-video, and multi-reference generation with synchronized playback and prompt differences shown alongside the outputs.

  • Raw prompts without enhancement
  • The base Gemma4 model
  • MiniMax H3’s official prompt enhancer
  • The lightx2v rewriter
  • Wuli-art’s fine-tune

Using identical seeds reduces random variation and makes changes easier to attribute to the rewritten prompt. The results remain author-published qualitative samples, with no reported human-preference scores, automated metrics, or independent replication. They support case-by-case comparison rather than a general quality ranking.

Five prompt-rewriting approaches compared on MiniMax H3 outputs
Wuli-art’s five-way comparison includes raw prompts, two third-party approaches, MiniMax’s official enhancer, and the new fine-tune.

Wire it in before H3

The repository documents ComfyUI as the primary integration path and provides separate graphs for FL2VA and Ref2VA. A controlled local test follows this sequence:

  1. Download the standard BF16 checkpoint or a supported FP8 or Int8 quantization.
  2. Load the workflow that matches the intended H3 generation mode.
  3. Supply the short prompt and any frames or references required by that mode.
  4. Review the expanded prompt for invented details, conflicting camera instructions, or incorrect reference mappings.
  5. Send the result to H3 and compare it with the raw prompt while keeping the seed and generation settings fixed.

The rewriter’s output should be passed into H3 as text. A generic video DiffusionPipeline example is inappropriate because this checkpoint performs prompt preprocessing rather than frame generation.

Memory requirements depend on the selected precision, runtime, H3 quantization, resolution, and frame count. The quantized rewriter builds reduce its own footprint, but a 12B model still adds substantial memory and startup time. Co-locating it with H3 on one GPU requires hardware-specific testing.

The rewriter repository lists an Apache-2.0 license. Deployments must also account for H3’s license, the licenses of any ComfyUI dependencies, and rights attached to reference images, audio, and generated media.

Hosted APIs can rewrite twice

Hosted H3 endpoints require an additional compatibility check. Services such as Replicate or fal may apply their own server-side prompt enhancement, and the exposed controls can change by endpoint version. Sending an already expanded prompt through another rewriter can add conflicting details or dilute constraints.

Local deployment provides the clearest fit because developers can inspect, version, bypass, and compare the preprocessing stage. Hosted users should confirm whether the API exposes enhanced-prompt controls, allows its internal rewriter to be disabled, or documents how pre-expanded prompts are handled.

A practical fit for local H3

The release suits teams that run H3 through ComfyUI, batch-process short prompts, or want to compare community prompt shaping with MiniMax’s official enhancer. It offers less control when an endpoint mandates opaque preprocessing or when a carefully authored prompt must remain unchanged.

Local H3 users gain a replaceable prompt layer that requires no generator retraining. Production evaluation should measure instruction adherence, reference retention, camera control, audio synchronization, latency, and total memory use on the prompts and hardware that matter to the application.