Alissonerdx/TE-PK-Minimax-H3

An adaptation package for the text encoder of the MiniMax-H3 video model (text-to-video/audio, first/last frame, reference image generation) created by Alissonerdx (alisson-anjos), uploaded on 11 26, and still being updated as of 29. The original encoder for H3 is Qwen3-VL-32B; the author borrows the Plato's Key approach from Stanford's Hazy Research, using closed-form ridge regression to map hidden states from other models, adding a lightweight projection and a text encoder LoRA with rank 32, all packaged into a single safetensors file without modifying the DiT. Starting from v0.5.0, it includes a "Calibrate Any CLIP" node that allows users to offline create their own calibration for any LLM / VLM using built-in multilingual corpora.

An adaptation package for the text encoder of the MiniMax-H3 video model (text-to-video/audio, first/last frame, reference image generation) created by Alissonerdx (alisson-anjos), uploaded on 11 26, and still being updated as of 29. The original encoder for H3 is Qwen3-VL-32B; the author borrows the Plato's Key approach from Stanford's Hazy Research, using closed-form ridge regression to map hidden states from other models, adding a lightweight projection and a text encoder LoRA with rank 32, all packaged into a single safetensors file without modifying the DiT. Starting from v0.5.0, it includes a "Calibrate Any CLIP" node that allows users to offline create their own calibration for any LLM / VLM using built-in multilingual corpora.

Why It Matters Without changing the video model itself, a single file can replace the encoder with a model requiring less VRAM; the author also provides a node for self-calibrating any language model locally.

Rising Score 34 · Likes 122 · Downloads 6198

Reasons

  • The author states that the recommended pk_lora version has the highest cosine similarity to the original encoder at 98.0% (Qwen 3.8 27B), with Qwen 3.5 9B at 97.9% and Gemma 4 E4B at 97.6%; the untrained pure ridge regression pk_ridge version has an R² of 0.985–0.992.
  • 11 models are already prepared: Qwen 3.5 (from 0.8B to 9B), Qwen 3.8 27B, Gemma 4 (from E2B to 31B), and Inkling-2-Mini; using the int8 version of the encoder for Qwen 3.5 9B requires approximately 9.8 GB.
  • There is also an experimental pk_lora_vision version with visual projection and vision tower LoRA, used to handle reference images and keyframes; pure text prompts are unaffected.

Usage

  • In ComfyUI/custom_nodes, git clone https://github.com/alisson-anjos/ComfyUI-H3-Text-Encoders and run pip install -r requirements.txt; place encoders in models/text_encoders/ and adaptation files in models/clip_projections/.
  • For encoders built into ComfyUI: Load CLIP → Plato's Key Patch CLIP (H3 Plug & Play) → MiniMax H3 reference image / image-to-video nodes; for other Hugging Face models, use Plato's Key Load Any HF Text Encoder (H3) with strength 1.00 and apply_to_pooled disabled.

Risks

  • Similarity scores are self-tested by the author and do not equate to output quality; the author notes that for models with different tokenizers like Gemma 4 and Inkling, using the pure linear version results in unclear dialogue, and the visual version has not been thoroughly tested.
  • Requires third-party nodes v0.4.2 or higher; the adaptation files are under Apache 2.0, but the accompanying MiniMax-H3 model itself is subject to its community license; this entry has not been run.

Open

Hugging Face Trending

Explore the latest AI Radar updates