Repository navigation
Studio: add MiniMax H3 reference generation - #8305
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eb0107fa6e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const d = defaultsFor(spec.filename ? `${id}/${spec.filename}` : id); | ||
| setSteps(d.steps); | ||
| setGuidance(d.guidance); | ||
| if (id.toLowerCase() === H3_BF16_REPO.toLowerCase() && spec.kind === "pipeline") { |
There was a problem hiding this comment.
Prompt for the H3 task on routed pipeline picks
When the cached official BF16 model is selected from the chat picker, it arrives through the routeSearch.model effect, which calls loadOrStage directly at line 1887. Because the new task dialog is opened only in this handleModelSelect branch, that route silently loads the default FL2VA denoiser and offers no way to choose References, potentially staging tens of gigabytes of the wrong partition. Apply the H3 interception to routed pipeline picks as well.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Correct, and it is the likelier route for the BF16 model, not an edge case. The chat picker cannot load a diffusion model, so a pick there navigates to /video?model=... (pickers.tsx onSelect -> diffusionRouteSearch), and only cached/local repos reach that branch at all, which is exactly the "cached official BF16" case.
Traced at head: loadSpecFor("MiniMaxAI/MiniMax-H3", VIDEO_CATALOG) returns the bf16Pipeline artifact, so diffusionRoutePick yields kind: "pipeline" with no filename, the routedLabel and kind === "gguf" early returns are both skipped, and it fell through to the bare loadOrStage(pick.repoId, pick.opts, false, token). With h3_task unset, _base_repo_files picks h3_denoiser = "transformer/", so the stage pulls the 66.28 GB FL2VA partition and References is unreachable from that route.
Fixed in fac4a888f. Both entry points now go through one isH3PipelinePick(repoId, kind) predicate, and the routed branch sets pendingH3Load instead of loading, with isDownloaded: false to match what that branch already passed. Regression test in studio/frontend/tests/video-download-plan-payload.test.ts asserts the interception sits before the unconditional loadOrStage and that both call sites use the shared predicate; it fails against the previous head.
One thing I did not widen: the group alias Comfy-Org/MiniMax-H3 still bypasses the dialog, because artifactForRepoId indexes artifact ids only and never aliases, so loadSpecFor returns null for it and the pick lands on the generic pipeline path. That is pre-existing and not what this item is about, so I left it alone.
Where this sits relative to the open catalog keying question: outside it. This is the BF16 pipeline repo and the task dialog, not the GGUF rows, so it is unaffected by whichever of the two shapes you pick.
| if path.rsplit("/", 1)[-1].lower().startswith(("minimax_h3_fl2va", "minimax_h3_ref2va")): | ||
| return _gguf_variant_family(path) |
There was a problem hiding this comment.
Preserve H3 stem keys in the loader lister
For root-level H3 filenames this branch returns a full stem such as minimax_h3_ref2va_pruned-Q4_K_M, but _qualified_variant_name immediately converts every slashless key back to the bare quant label. Consequently list_gguf_variants still groups all Q4 FL2VA/Ref2VA and Full/Pruned files into one entry, and consumers such as the remote VRAM preflight cannot find a selected full-stem variant. The new H3 keys need to remain qualified even though they contain no directory slash.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Confirmed on the mechanism, with one correction on the consequence.
Reproduced against head:
minimax_h3_fl2va-Q4_K_M.gguf key=minimax_h3_fl2va-Q4_K_M qualified=Q4_K_M
minimax_h3_fl2va_pruned-Q4_K_M.gguf key=minimax_h3_fl2va_pruned-Q4_K_M qualified=Q4_K_M
minimax_h3_ref2va-Q4_K_M.gguf key=minimax_h3_ref2va-Q4_K_M qualified=Q4_K_M
minimax_h3_ref2va_pruned-Q4_K_M.gguf key=minimax_h3_ref2va_pruned-Q4_K_M qualified=Q4_K_M
hub rows: 5 (one per checkpoint)
model_config rows: ['Q4_K_M', 'Q2_K_M']
So return key if "/" in key else label does fold them back, exactly as you describe, and test_local_lister_matches_the_remote_shape only holds today because its corpus is LTX.
The correction is the consumer. The remote VRAM preflight is routes/inference.py::_estimate_gguf_required_gb, which reads config.gguf_hf_repo / config.gguf_variant off a llama.cpp ModelConfig; the other caller of model_config.list_gguf_variants is ModelConfig.from_identifier, also llama.cpp. H3 GGUFs load through core/inference/video.py by filename, and every loader-side resolver that does key matching (_find_local_gguf_by_variant, routes/models.py::_delete_gguf_variant_files, _main_variant_rank) reads _gguf_variant_key, which agrees with the hub copy. So at head this is drift in the advertised name, not a live misload.
Still worth closing, because it is the same root cause as the pin item: the codebase spells "qualified key" as "the key contains a slash", and this PR introduces the first qualified key that has no slash. Patch I verified locally and did NOT push, since it should land as one predicate together with the pin thread and that shape is your call:
_H3_DENOISER_PARTITIONS = ("minimax_h3_fl2va", "minimax_h3_ref2va")
def _is_h3_denoiser_filename(filename: str) -> bool:
return filename.replace("\\", "/").rsplit("/", 1)[-1].lower().startswith(
_H3_DENOISER_PARTITIONS
)used both in the branch you added at line 2373 and in _qualified_variant_name:
return key if ("/" in key or _is_h3_denoiser_filename(filename)) else labelWith that applied the mirror lister returns the same five rows the hub does, and tests/test_gguf_variant_rows.py tests/test_local_model_format.py tests/test_offline_gguf_cache_fallback.py tests/test_gguf_variant_preflight.py tests/test_mtp_drafter_companion.py tests/test_resolve_quant_gguf.py stay green (422 passed). The root_rows filter in from_identifier is unaffected: an H3 stem has no slash either way, so those rows stay root rows.
Relative to the open catalog keying question: independent. Both shapes keep the backend stem keys, so this needs doing whether you go two rows or one.
| {expanderOpen && ( | ||
| <GgufVariantExpander | ||
| repoId={c.repo_id} | ||
| filenamePrefix={curatedGgufFilenamePrefix(c.repo_id)} |
There was a problem hiding this comment.
Do not hide cached partitions from On Device rows
The leejet/MiniMax-H3-GGUF repository explicitly contains both FL2VA and Ref2VA files, but applying the curated Ref2VA prefix to this On Device expander filters an existing FL2VA download out of its own cache row. Such a variant can be downloaded through the Hub or predate this catalog entry, and it then cannot be loaded, pinned, updated, or deleted from the model picker; the artifact filter should be limited to browse/recommended menus or the cached variants should be represented separately.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Right, and it is worse than the repo you cite. curatedGgufFilenamePrefix is keyed on repo id alone, so it applies to whichever expander mounts, and the published listings both hold both partitions:
unsloth/MiniMax-H3-GGUF 8 fl2va + 6 ref2va prefix minimax_h3_fl2va -> hides its 6 Ref2VA files
leejet/MiniMax-H3-GGUF 2 fl2va + 3 ref2va prefix minimax_h3_ref2va -> hides its 2 FL2VA files
so the official repo's own On Device row hides the Ref2VA quants this PR exists to make loadable, once they are on disk.
Confirmed the reachability too: the On Device expander at pickers.tsx:3751 is the only place that offers per-variant load, pin, update and delete for a downloaded GGUF repo, and it is now filtered. One escape exists, renderSoleQuantGgufRow: readSoleQuant calls the listing unfiltered, so a repo holding exactly one complete quant still renders a loadable chip row even when the prefix does not match it. That escape closes as soon as a second file is cached, which is the normal state once someone has both partitions, and it is itself an inconsistency worth noting (the collapsed row can advertise a quant the expanded row would hide).
I have NOT pushed a fix for this one, because the narrow version of it is a partial answer to the catalog keying question that is still open above. If ggufFilenamePrefix goes away entirely, this item dies with it and there is nothing to do. If instead the catalog grows two rows keyed on (repoId, prefix), then simply dropping filenamePrefix at the On Device call site is not right either: the two curated rows would both want the cached row, and the On Device section has to either split per partition or stay unfiltered by design. Either way the decision is upstream of the fix, so I left it to you.
| if path.rsplit("/", 1)[-1].lower().startswith(_H3_DENOISER_PARTITIONS): | ||
| return _unknown_gguf_variant_key(path) |
There was a problem hiding this comment.
Migrate existing H3 quant pins to the new keys
Existing H3 pins are persisted as exact repoId::quant strings, so a previously pinned Q4_K_M entry no longer matches any variant after this branch changes every H3 row to a full-stem key. The pinned-row validation compares those strings exactly and therefore silently removes the pin even when its checkpoint remains downloaded. Migrate legacy H3 bare-quant pins to the checkpoint family that the old grouping selected, or retain a compatibility alias during pin validation.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Genuine, and the blast radius is larger than the pin row. Reproduced against the real published listing of unsloth/MiniMax-H3-GGUF:
plan keys after this branch: minimax_h3_fl2va_pruned-q2_k ... minimax_h3_ref2va_pruned-q8_0
legacy 'UD-Q2_K_XL' -> None
legacy 'UD-Q3_K_XL' -> None
legacy 'Q8_0' -> None
UD-Q2_K_XL matters most: it exists exactly once in that repo, so it is unambiguous and the back-compat path was built for precisely this case. It resolves to nothing only because every legacy alias fallback is gated on "/" in key:
hub/utils/gguf_plan.py::plan_for_variant, whose own docstring is this migration ("Every stored pin and every explicitrepo:Q4_K_Mthen missed the plan map and the worker exited with No GGUF shards matching variant")hub/services/models/deletion.py:228routes/models.py::_variant_keys_matchcore/inference/openai_auto_download.py:766
and gguf_variant_key's docstring promises the opposite ("byte-identical to the historical key there and every stored pin, manifest and marker keeps resolving"). The new H3 keys are the first qualified keys with no slash, so they fall outside all four.
The frontend half is as you say: pinnedQuantValidation compares pinKey(repoId, variant.quant) against the stored string exactly, so a pre-existing unsloth/MiniMax-H3-GGUF::Q4_K matches no row and the pinned entry stops rendering. To be precise about the wording, the pin is not deleted from localStorage, it is hidden, and re-pinning writes a second key beside the dead one, which is arguably worse than dropping it.
Backend half I verified locally, one line, not pushed:
matches = [key for key in plans if key != wanted and bare_quant_alias(key).lower() == wanted]That is a no-op for every slashless bare-quant key (its alias is itself, so the exact lookup already answered) and it restores the unambiguous cases while correctly leaving genuinely ambiguous ones alone:
legacy 'UD-Q2_K_XL' -> minimax_h3_fl2va_pruned-UD-Q2_K_XL.gguf
legacy 'Q2_K' -> minimax_h3_fl2va_pruned-Q2_K.gguf
legacy 'Q8_0' -> None (two partitions ship it; the bare name really does not name one)
tests/test_gguf_variant_rows.py tests/test_gguf_variants_local_resolution.py tests/test_cached_gguf_routes.py and hub/tests stay green with it (255 + 431 passed).
I stopped there rather than pushing, for two reasons. The same change wants making at all four gates behind one shared "is this key qualified" predicate rather than one site at a time, which is the same predicate the _qualified_variant_name thread needs. And the frontend pin question is a product call I should not make for you: a legacy Q4_K pin is genuinely ambiguous between the two partitions, so "migrate to the family the old grouping selected" means the lexicographically first file, which after this PR silently means FL2VA. Dropping such a pin may well be better than resurrecting it onto a partition the user never chose. Your call.
Relative to the open catalog keying question: independent of it. This is caused by gguf_variant_key, not by the catalog, so it needs handling whether you go two rows or delete ggufFilenamePrefix.
|
Read this end to end and ran it locally. The Ref2VA wiring is right and the variant-key fix is a real defect fix, not just a labelling change. Two things before it lands, one of them structural. Tests, run separately
I also ran the real published 1. The References row points at a third-party repo we deliberately stopped pointing at
So the catalog is re-adding the repo the mirror programme took out. Everything a user downloads from a curated row should come from a repo we control: we cannot guarantee a third-party repo's files stay put, stay named the same, or stay up, and a curated row makes Studio's model list depend on that. The reason the PR had to reach for it is legitimate, and it is a gap on our side rather than anything wrong here. The fix is on us, not on this PR: 2.
|
|
Item 1 is done from our side. The Ref2VA ladder is now published in the public
That is six rungs against the three the community repo has, and it matches the FL2VA ladder already in the repo rung for rung, so the two partitions compare directly. How they were builtSource is Comfy-Org's
Verified, not just builtTensor table against the published FL2VA Q4_K, which is the strongest check available without a reference render: Identical allocation, so the norm fix and the embedder pin both took. Then an actual load and denoise of The frame is coherent (subject, snow, depth), not the noise a crushed norm produces. Driven without references, since that path is what this harness has, so it says the checkpoint is well formed and loads under the same runtime Studio uses; it does not score reference fidelity. What is left on this PROnly item 2, and it is now the blocking one rather than a forecast. Both partitions live in Smallest change that fits the existing shape: const artifactKey = (repoId: string, prefix?: string) =>
`${repoId.trim().toLowerCase()}#${prefix ?? ""}`;with Happy to push that onto this branch if you would rather not take it on. Once it is in I will shoot the before/after pair, which at that point photographs two |
|
One more option on item 2, cheaper than the keying change I described, which I only saw after the Ref2VA files went up: you may not need Now that both partitions are in one repo, the backend already lists them together, Both partitions have the same parameter count, so the row's size chip is unaffected, and the two dynamic lanes label correctly rather than falling into the The real trade is discoverability against machinery. Two rows put "References" in the model list where someone browsing will see it; one row puts it fourteen labels deep behind an expander, but needs no new key, no duplicate- Either way the One thing this PR gets right that I want on the record
That is exactly right, and the shared-shape detail is what makes it dangerous: the failure is a silent wrong-partition generation, not an error. Refusing until a matching checkpoint exists is the correct interim behaviour. The consequence is that References on the diffusers path is dense bf16 only, with no int8 or fp8 rung. Closing that means building Ref2VA prequant artifacts and giving |
|
The two red jobs are inherited from the stale base, not from anything in this PR.
Those are the diffusers-import preflight tests that only pass on a GPU host, fixed on The 3.13 cancellation is the other half of the same commit: #8281 also raised the backend job cap from 15 to 30 minutes, and 3.13 was killed at 15m11s. On #8267 the identical pair cleared the moment the base carried #8281, and that PR's whole Python matrix then passed with 3.10 taking 19m23s, three times over the old cap. So both go green once Worth noting for whoever merges #8244 first: |
A MiniMax H3 pick made in the chat picker arrives on the video page as ?model=, and that effect called loadOrStage directly. Only the direct-pick branch opened the task dialog, so the routed path staged the default fl2va denoiser, 66 GB, with no way to ask for References. Both branches now share one predicate.
On the catalog keying question, a recommendation with the listing behind it
So I would key on Three reasons:
The cost is real and worth naming: The third group is a separate question and I would leave it alone in this PR: the conditioner GGUFs are not denoisers and do not belong in a denoiser picker, so the prefix filter hiding them is correct behaviour that happens to be produced by the wrong mechanism. Happy to be overruled on this. I have not implemented either shape, and the three review items triaged earlier today were left unpushed for exactly this reason: item 3 dies entirely if |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fac4a888ff
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| void loadOrStage( | ||
| pending.repoId, | ||
| { ...pending.opts, h3Task: task }, | ||
| pending.isDownloaded, | ||
| pending.token, |
There was a problem hiding this comment.
Re-plan cached H3 picks before switching tasks
When an On Device MiniMax H3 cache contains only one denoiser partition, meta.isDownloaded is still true for the repository, and forwarding it here makes loadOrStage immediately bypass /video/download-plan. Choosing the other task then lets Diffusers fetch the missing transformer/ or transformer_ref/ shards—about 66 GB—inline during model loading, outside the download manager's disk preflight, progress, and cancellation. Cached H3 task choices need a partition-aware availability check or must always run the staged plan, which can reuse the shared cached blobs.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Real at the commit you reviewed, and closed at the current head by the base merge rather than by intent, so it is worth spelling out.
At fac4a88 loadOrStage took isDownloaded and short-circuited on if (isDownloaded !== false) return handleLoadRef.current(...). A curated H3 artifact reports isDownloaded for the repository, so the partition dialog handed that straight back and the plan never ran: choosing the other task left Diffusers to pull the missing transformer/ or transformer_ref/ shards inline, outside the disk preflight, the progress and the cancel. Exactly as described.
Merging 8244 replaced that signature with source, and the short-circuit is now if (source !== "hub") return handleLoadRef.current(...). localModelMeta is the only thing that emits "local"; a downloaded curated artifact is still source "hub" with isDownloaded set beside it. So a cached H3 pick runs the cache-aware plan again, and a fully cached one comes back with no entries and costs nothing.
I have not left that resting on a merge nobody was watching. video-h3-task-dialog.test.ts pins the three parts: the bypass is keyed on source, the old isDownloaded form is gone, and chooseH3Task re-enters loadOrStage with the chosen task rather than calling handleLoad directly, so the plan decision is made again with the partition in hand. That matters now, because the sibling item about on-device pipelines is fixed in 6ba9aae and those picks arrive as source "local" - correctly skipping a Hub plan, since their weights are the directory own, but it is the kind of change that could have quietly reopened this.
| return kind === "pipeline" && repoId.toLowerCase() === H3_BF16_REPO.toLowerCase(); | ||
| } | ||
|
|
There was a problem hiding this comment.
Offer the H3 task choice for local pipelines
When the official MiniMax H3 pipeline is added as an on-device directory such as /models/MiniMax-H3, it reaches the generic local-pipeline branch rather than the curated artifact branch, and this exact Hub-ID predicate never recognizes it. The backend supports loading on-device H3 modular pipelines, but an omitted h3_task defaults them to FL2VA, so the local copy can never load its transformer_ref partition or expose reference generation even when those weights are present. Detect local H3 pipeline picks and route them through the same task dialog.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Confirmed. isH3PipelinePick compared against the Hub id, which a directory like /models/MiniMax-H3 never equals, so the pick fell to the generic local-pipeline branch and loaded with no h3_task at all. The backend defaults that to fl2va, so the transformer_ref partition was unreachable with the weights sitting on disk, and reference generation could not be reached from an on-device copy.
Fixed in 6ba9aae: the predicate keeps the Hub-id equality and adds a final-path-segment match against the repo name, the same way a local checkpoint family is read off its filename elsewhere, and the generic branch consults it before loading. Trailing slashes and Windows separators are normalised first.
A local pick then arrives at the dialog with source "local", which correctly skips the Hub download plan since its weights are the directory own. Worth noting because it is adjacent to the cached-partition item above: that bypass is keyed on source, not on a downloaded flag, so this does not reopen it.
video-h3-task-dialog.test.ts asserts the predicate is no longer a Hub-id equality test and that the local-pipeline branch intercepts exactly once. Mutation checked: removing the interception fails that assertion.
# Conflicts: # studio/frontend/src/features/video/video-page.tsx
The base now calls getVideoDownloadPlan earlier for the row-sizing footprint probe, and that call only ever runs for a named GGUF file, where the partition is the filename rather than a task flag. Finding the plan by the first occurrence in the file therefore read the wrong call and the H3 task assertion no longer described the staging path. Slice loadOrStage first, then find the plan inside it.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 174f9320bc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ) | ||
| : normalized.variants, | ||
| ); | ||
| setDefaultVariant(normalized.defaultVariant); |
There was a problem hiding this comment.
Recompute the default after filtering variants
When filenamePrefix selects the Ref2VA subset, this still stores the repository-wide default, which pick_best_gguf normally chooses from the lexicographically earlier FL2VA files. On hosts where the device budget is unavailable, effectiveRecommended returns that now-hidden key, so no visible Ref2VA row is recommended and the sorter instead puts the largest file first. Derive the default from the filtered variants, or clear it when it is not present in that subset.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed. defaultVariant is a QUANT key that pick_best_gguf chose across the whole repo, and it never saw the prefix subset: H3 lists 6 ref2va quants against 8 fl2va ones, so the chosen key can simply be absent from the filtered rows. effectiveRecommended budget-unavailable branch returns it unchecked, so nothing visible reads as recommended and sortedVariants falls through to largest first.
6ba9aae takes the second of your two options and clears it, keeping it only when the filtered subset actually contains that quant. An unfiltered listing is untouched. I deliberately did not synthesise a replacement from the subset: choosing a recommended quant is pick_best_gguf job, it weighs things the picker does not have, and inventing one here would be a different recommendation rule living in two places.
gguf-variant-default-subset.test.ts covers both halves and also pins the consuming branch, so the fix cannot be quietly undone by a change on the reading side. Mutation checked: restoring the unconditional setDefaultVariant fails.
| if (!active) { | ||
| pickGuard.release(); | ||
| setPendingH3Load(null); |
There was a problem hiding this comment.
Roll back the deferred pick when hiding the page
If the page becomes inactive while the H3 task dialog is open—for example through browser navigation or another application navigation trigger—this clears the dialog without taking its cancellation path. A direct H3 pick has already replaced the quant, steps, and guidance and stored their rollback in quantRevert, so returning to Video leaves controls describing H3 even though the previous model is still resident, and the stale rollback can also affect the next pick. Cancel or abandon the pending choice before clearing it here.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Correct. The hide effect released the guard and cleared the dialog, but not through the cancellation path, and those are not the same thing. The pick that opened the dialog had already replaced the quant label, steps and guidance and parked their rollback in quantRevert, and the load it was deferring never ran. So returning to Video found the controls describing H3 over whatever model was still resident, and the stale rollback was left for the next pick to inherit.
6ba9aae routes it through the same ending as Cancel by calling abandonPick, guarded on there actually being a pending pick inside the setPendingH3Load updater so hiding an idle page reverts nothing. abandonPick had to move above the effect to avoid a temporal dead zone in the deps array.
video-h3-task-dialog.test.ts asserts the hide path calls abandonPick and that it is guarded. Mutation checked: restoring the bare setPendingH3Load(null) fails. Frontend typecheck clean, 1570 pass.
The base moved under this PR, so I have merged it forwardThis PR is stacked on The PR now reports MERGEABLE. What actually conflictedOne file, It was not really a textual clash. Both branches refactored the same two functions:
The union is right in every hunk.
The three things worth being explicit about:
The part that changes behaviour, not just text:
|
…n hide Three things the review found on the picker side of reference generation. An on-device copy of the pipeline reaches the generic local-pipeline branch, which a Hub-id equality test never recognises, so an omitted h3_task pinned it to fl2va and its transformer_ref partition was unreachable with the weights sitting on disk. Match on the final path segment, the way a local checkpoint's family is read off its filename elsewhere, and consult it from that branch too. Hiding the page cleared the dialog without taking its cancellation path. The pick that opened it had already replaced the quant label, steps and guidance and parked their rollback, and the load it was deferring never ran, so returning to Video found controls describing H3 over whatever model was still resident, plus a stale rollback for the next pick to trip over. Take the same ending as Cancel, guarded on there being a pending pick so hiding an idle page reverts nothing. And defaultVariant is a quant key chosen across the whole repo, which a filenamePrefix subset need not contain: H3 offers 6 ref2va quants against 8 fl2va ones. Stored unchanged, the budget-unavailable branch of the recommendation returned a key with no visible row, so nothing read as recommended and the sorter fell through to largest first. Drop it when the prefix filters it out; an unfiltered listing is untouched.
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Base merged forward again, and the full suite on the merged head
Full run on the merged head, backend and hub as separate invocations, plus typecheck and the frontend suite:
Nine of the ten are the set the base carries, none of them in video: The tenth, Nothing in this PR touches llama.cpp linking. On the red checksAll of them are |
dbdd33f
into
unslothai:h3-video-lora
Completes MiniMax H3 Ref2VA integration in Studio's Video tab.
Users can provide reference pictures, videos, and audio tracks through either the official BF16 Diffusers model or a quantized stable-diffusion.cpp model. The existing text, first-frame, and last-frame workflow remains available separately.
This stacks on #8244
The branch starts at the current #8244 head because it carries the MiniMax H3 Ref2VA backend execution, conditioning, and staged-download paths that this PR exposes. The new work is limited to the model picker, H3 mode selection, GGUF variant identity and labels, and their regression coverage.
What changed
transformer/for Text and frames ortransformer_ref/for References while reusing the shared text encoder and VAEs.leejet/MiniMax-H3-GGUFand show only the matching partition under each row.GGUF variant fix
MiniMax H3 repositories can publish FL2VA and Ref2VA checkpoints, plus Full and Pruned builds, at the same quantization. The GGUF lister previously keyed these files only by quantization, so distinct checkpoints collapsed into one row and the loader could not identify every published file.
MiniMax H3 variants now use the complete checkpoint family as their key. On the tested repository this exposes all five loadable denoisers instead of two:
Testing
git diff --checkpassed.Runtime validation
Ran Studio on an NVIDIA B200 and exercised both Ref2VA engines with a real reference image.
transformer_ref, then generated a 960x544, 124-frame H.264/AAC MP4 with synchronized audio.minimax_h3_ref2va_pruned-Q4_K_M.gguf, then generated the same playable 960x544, 124-frame output format.Screenshot
The Ref2VA interface with a picture, video, replacement video soundtrack, standalone audio reference, and generated output: