feat(mm): recognize MiniMax H3 Ref2VA models - #161
Open
lstein wants to merge 3 commits into
Open
Conversation
Adds the ref2va variant to MiniMaxH3VariantType and teaches identification to classify it: - Single-file checkpoints: the former hard rejection of ref2va filenames becomes filename-based variant detection (the two task transformers are key-for-key indistinguishable, so the filename is the classifier and the variant override field corrects renamed files). - Diffusers folders: a transformer_ref/-only folder now identifies as ref2va; a dual-transformer folder stays fl2va. Ref2VA folder weights are not folder-loadable in v1, so a ref2va folder is always marked components_only - the generation path is a components install plus a single-file transformer override. - Starter models: Ref2VA pruned int8 transformer (~21 GB) and the Ref2V 4-step Turbo LoRA join the MiniMax H3 bundle. - Identification fixtures: ref2va single file, transformer_ref-only slim folder, and a variant-override case. - Legacy frontend: ref2va in the zod variant enum + label map; openapi.json and schema.ts regenerated. - webv2: variant label/options, a temporary transformer-picker gate, and a ref2v-token exclusion in the Turbo accelerator auto-pick so the Ref2VA LoRA never auto-applies to FL2VA runs. - Model loader invocation: fails fast on a Ref2VA transformer (override or main) so hand-authored workflows cannot silently generate degraded output; TODO(ref2va) markers note what the follow-up removes. Generation support (packing, reference conditioning, UI mode) lands in follow-up PRs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S4B5exWsbC2z2Uu2tA167A
lstein
requested review from
JPPhoto,
Pfannkuchensack and
blessedcoolant
as code owners
August 27, 2026 12:28
This was referenced Aug 27, 2026
…a-recognition # Conflicts: # invokeai/frontend/webv2/src/features/video/core/videoPolicies.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First of three stacked PRs adding MiniMax H3 Ref2VA (reference-conditioned video+audio) support. This one makes Ref2VA models recognized, installable, and correctly labeled — generation support follows in the next PR.
MiniMaxH3VariantType.REF2VA(HF subfoldertransformer_ref/; same architecture as FL2VA, different weights, reference task only).ref2vafilenames becomes filename-based variant detection (the two task transformers are key-for-key indistinguishable — filename is the classifier, thevariantoverride corrects renamed files). Atransformer_ref/-only diffusers folder identifies as ref2va and is always markedcomponents_only(its folder weights are not loadable in v1 — the generation path is a components install plus a single-file transformer override); a dual-transformer folder stays fl2va.MiniMax H3 Ref2VA Transformer (int8, pruned)(~21 GB) and theMiniMax H3 Ref2V Turbo LoRA(4-step distillation) join the bundle.transformer_ref/-only slim folder, variant-override case).openapi.json/schema.tsregenerated.Testing
Stack
🤖 Generated with Claude Code
https://claude.ai/code/session_01S4B5exWsbC2z2Uu2tA167A