Skip to content

FastH3 Omni 8-step BF16 checkpoint as the Ref2VA transformer: investigate and onboard #980

Open

Description

@dkackman

What

Investigate whether FastVideo's FastH3 Omni BF16 checkpoint, FastVideo/FastVideo-FastH3-Omni-8-Step-V1, can replace the 768p Ref2VA 8-step LoRA path on dw's ref2va templates. If it can, onboard it through the model-family-onboarding skill. It is part of the FastH3 Omni collection, released 2026-10-20. The license is the MiniMax-H3 Community License.

It is a full finetune of the H3 Ref2VA transformer, not a LoRA. That means the converter failure behind the rejected fasth3-4step / fasth3-preview LoRA entries does not apply. Those entries fail on .diff / .diff_b full-weight keys (#585).

What is known (from the repo files, not yet run)

  • Diffusers layout. transformer_ref/config.json is MiniMaxH3Transformer3DModel with the same shape as stock MiniMaxAI/MiniMax-H3. modular_model_index.json points the text encoder, tokenizer, processor, vae and audio_vae at MiniMaxAI/MiniMax-H3. The repo ships only the transformer, about 68 GB of BF16 in 14 shards, plus the two scheduler configs.
  • Its inference contract (fastvideo_inference.json) says:
    • model_type: ref2va, 8 forwards, guidance_scale 1.0
    • shift 12 for video and 3 for audio, the same as the current Ref2VA 8-step recipe
    • pdd_steps: 32, with pdd_step_indices 0, 4, 8, …, 32
  • Training validation (metadata.json) ran at 1344x768 with 345 frames (about 14.4 s) at 24 fps. Audio is 32 kHz stereo.
  • "Omni" means many references: up to 9 images, 3 videos and 3 audio clips, at most 12 in total, tagged <Picture N> / <Video N> / <Audio N>. At least one image or video is required, so it covers Ref2VA only, not T2VA.

Risks to answer

  1. Trained-gate sparse attention. It was trained under VIDEO_SPARSE_ATTN_H3: sparsity 0.9, tile 128, vsa_ref_policy: p2_multi_region, ref keep rate 0.1. Every block carries attn.to_gate_compress.weight. Diffusers 0.41.0.dev0 has no slot for those keys or for the pdd_steps config field, so we expect them to be dropped with a warning and the model to run dense. That transplant was a non-goal of spike: Ref2VA sparse attention (FastVideo VSA gate + comfy-kitchen sol_attn) #931. How quality holds up under dense attention, or under dw's sparse_topk, is the open question.
  2. Schedule. Confirm that MiniMaxH3Scheduler at shift 12 with dw's step count lands on the same sigmas as the PDD indices 0, 4, …, 32 on the 32-step grid. Also confirm whether that count is 8 or 9 under dw's off-by-one convention. If they differ, find out whether the sigmas can be set from the workflow without any knowledge in engine code.
  3. Memory and time on lem (3090, 24 GB). Measure int8 quantize plus group offload: peak memory and wall time against the current Ref2VA 8-step LoRA path.

Plan

  • Stage 0 (go/no-go). Load transformer_ref from this repo into a ref2va workflow on lem. Record which keys load as unexpected or missing and every warning the loader prints. Render one 960x544 clip. Close if it fails to load or renders noise.
  • Stage 1 (A/B). Run 1344x768 Ref2VA against the current 768p Ref2VA 8-step LoRA, with the same seed, prompt and references. Run it dense and under sparse_topk. Record wall time, peak memory and Don's visual verdict, especially likeness to the references and skin texture.
  • Stage 2 (multi-reference). Run a 3+ image reference prompt and an audio reference prompt to see whether the Omni conditioning gains over stock Ref2VA show up through diffusers.
  • If it wins: onboard via model-family-onboarding. Add a catalog entry and the shift/steps/alpha combination to plugins/dw/skills/minimax-h3/references/checkpoints-and-loras.md, record the downloads_required size, and do a template swap only on Don's verdict.

Out of scope

The other repos in the collection, unless stage 1 says otherwise:

  • FastH3-Omni-FP8 and -NVFP4-QAD: FastVideo/ComfyUI loaders. NVFP4 needs a Blackwell card, and the 3090 has no native FP8.
  • The -Comfy variants and -MLX: not diffusers.
  • FastH3-NVFP4-VAE-Decoder: Blackwell-only, except for fast-8L/decoder.safetensors, a 1.1 GB BF16 8-layer decoder. That one might speed up decode, but it needs a custom loader (it ships with convert_to_fastvideo_pt.py). Possible follow-up.

Related: #585, #931, #932.

Activity

  1. added
    owner:donParked for human decision
    ideaAn idea for the researcher agent to assess
    status:needs-specTester writes acceptance cases for the plan's stages
    owner:leadFeature lead's turn (harnest R11)
    and removed
    owner:donParked for human decision
    on Oct 23, 2026
  2. dkackman commented on Oct 23, 2026

    @dkackman
    OwnerAuthor

    Plan v1: FastH3 Omni 8-step as the Ref2VA transformer

    Lead design session, claude-opus-5-5 via anthropic. Read against develop @ 68ae280.

    Disposition of the idea. This is a feature, not one fix. The eval itself needs no code. But onboarding it touches plan.py's downloads_required (engine) and adds a variable to every ref2va template. That is more than the #824 pattern, which was catalog data plus skill prose. It is not a duplicate: #585 covered the drozbay FastH3 LoRAs (rejected on .diff keys), and #931/#932 covered sparse attention, not this checkpoint.

    Verdict: build smaller. Evaluate first (stages A–B), and onboard (C–D) only on your visual verdict

    Problem and non-goals

    The goal is to find out whether FastVideo's full-finetune Ref2VA transformer beats the stock transformer plus the 8-step Ref2VA LoRA on likeness and texture at equal cost, and if it does, to make it reachable by arguments.

    Non-goals:

    Design (corrections to the issue)

    1. How to load it: a per-component override, not a new model_name. The sweep found two ways to point transformer_ref at the repo:
      • (B), chosen: keep from_pretrained_arguments.model_name: MiniMaxAI/MiniMax-H3 and add load_components.pretrained_model_name_or_path: {"transformer_ref": "FastVideo/FastVideo-FastH3-Omni-8-Step-V1"}. dw passes load_components through verbatim (dw/pipeline_processors/config_objects.py:88-119). The SDNQ cache keys on the overridden repo (dw/quantized_cache.py:713-721, 899-910), so it never reuses the stock entry. Pipeline identity is unchanged, so these keep working: the VRAM ceiling, the plan.estimate cost inheritance, every H3 validator (they key on component type, workflow or class), and every test that selects H3 templates by model_name (tests/test_h3_schedule.py:28-52, tests/test_catalog_structure.py:599-625).

      • (A), rejected: model_name: FastVideo/..., relying on its modular_model_index.json. It loads, but it silently drops several things:

        • the VRAM ceiling and cost inheritance (dw/vram_estimate.py:82-106, dw/server/deps.py:356-415);
        • LoRA matching;
        • the catalog-test coverage.

        Its downloads_required would also omit MiniMax-H3 itself.

    2. downloads_required misses the override (an engine gap). _collect_sources (dw/plan.py:897-1010) reads only from_pretrained_arguments.model_name, loras[].model_name and single-file URLs. Under (B), the 68 GB repo is absent from the plan. Stage C fixes this generically: it reads per-component pretrained_model_name_or_path from load_components, with no model knowledge. That is needed before any template ships the override.
    3. The schedule matches analytically at 9 steps and shift 12. MiniMaxH3Scheduler.set_timesteps builds linspace(1, 0, N) and then applies the shift pointwise (scheduling_minimax_h3.py:156-159). So N = 9 gives the grid points k/8, which are exactly the PDD indices 0, 4, …, 32 of a 33-point / 32-interval grid. That is 8 forwards, under dw's "passes + 1" rule (plugins/dw/skills/minimax-h3/SKILL.md:110-112). This assumes FastVideo's 32-step grid is uniform with the same shift formula. Stage A confirms it from the repo's scheduler config, and the job's denoise_total_steps should read 8. A workflow can't set explicit sigmas: the modular pipeline calls set_timesteps(num_inference_steps) without passing them. That's fine if the analysis holds. If it doesn't, the scheduler would need its own passthrough, and that is a separate engine issue, not this plan.
    4. No LoRA on this path. Use lora_model_name: null. list_loras/recommend_loras will still offer the stock Ref2VA turbo LoRAs, because the base model_name is unchanged (dw/lora_catalog.py:51-84). Stacking a distillation LoRA on a distilled checkpoint is wrong. Stage D adds a skill line, not catalog logic.
    5. Surfaces touched:
      • engine: plan.py's downloads_required (C);
      • templates: the ref2va templates get one variable (D);
      • plugin: minimax-h3 skill (D);
      • MCP/REST/syntax: none.

    Stages

    A: go/no-go (eval only, no code merged). On lem, author an inline ref2va workflow over MCP: reference-to-video with the (B) override, lora_model_name: null, int8, shift 12/3, 9 steps, at 960x544 with one reference image. Record:

    • every unexpected or missing key and every loader warning (to_gate_compress, pdd_steps), from get_job_events;
    • denoise_total_steps, plus the sigma check from item 3 against the repo's scheduler config;
    • peak memory and wall time.

    The record is an audit file, docs/proposals/audits/2026-10-xx-fasth3-omni.md, merged as docs only, plus a summary comment.

    • Unit tests and docs: none beyond the audit file.
    • Deploy: none.
    • Estimate: ~$3, plus the 68 GB download.
    • Acceptance intent: get_job on the recorded job shows succeeded, a 960x544 mp4 with audio, and the override in get_job_workflow. The audit lists the dropped keys and states 8 denoise passes. Reading get_output_frames shows a coherent subject, not noise. If it fails to load or renders noise, the audit says so with the job id, and B–D close not planned.

    B: A/B and multi-reference (eval only). Use the same seed, prompt and references at 1344x768:

    • (1) the current Ref2VA template, int8, at its default 8-step LoRA, shift 12/3, 9 steps;
    • (2) Omni, dense (sage_hub);
    • (3) Omni, sparse with the template's sparse_topk;
    • (4) Omni with 3 or more image references;
    • (5) Omni with an image plus an audio reference.

    Each run gets a note saying what it tests. B extends the audit with a table of wall time, peak memory and the job ids, then hands to you for the visual verdict on likeness, skin texture and multi-reference gain.

    • Unit tests and docs: the audit file.
    • Deploy: none.
    • Estimate: ~$4 plus about 2 GPU-hours.
    • Acceptance intent: all five jobs succeed with matching seed and size, each one's get_job_workflow shows the argument it claims, and the audit's timings match get_job. Your verdict is the gate: C–D go ahead only if you say Omni wins.

    C: downloads_required reads per-component sources (engine). Generic: any load_components.pretrained_model_name_or_path (a string, or a dict per component with default) adds that repo and subfolder to the plan's sources, with size and gated status. It is landable on its own, since it is correct for any workflow.

    • Unit tests: tests/ covers the dict form, the string form, the default key, and dedupe against model_name.
    • Docs: the downloads_required row in docs/ARCHITECTURE.md.
    • Deploy: server restart.
    • Estimate: ~$3.
    • Acceptance intent: validate_workflow on an inline ref2va workflow with the override lists FastVideo/FastVideo-FastH3-Omni-8-Step-V1 in plan.downloads_required, with its size, next to MiniMaxAI/MiniMax-H3. Without the override, the list is unchanged from today. A dict holding only default lists that repo.

    D: onboard (data only).

    • Every ref2va template gets transformer_ref_model_name (default MiniMaxAI/MiniMax-H3), wired into the per-component override.
    • checkpoints-and-loras.md gets the Omni combination: transformer_ref_model_name=FastVideo/..., lora_model_name: null, shift 12/3, 9 steps, 1344x768, its download size, and "never stack the turbo LoRA".
    • The template cost comes from B's measurement.
    • The default stays stock unless you choose otherwise (Q1).

    Details:

    • Unit tests: tests/test_plugin_skills.py pins the new numbers. A catalog test asserts the variable on every ref2va template.
    • Deploy: plugin plus catalog, no restart.
    • Estimate: ~$3.
    • Acceptance intent:
      • get_workflow on each ref2va template shows the variable with the stock default.
      • run_workflow with transformer_ref_model_name=FastVideo/... and lora_model_name=null succeeds, and its validate_workflow plan lists the FastVideo repo.
      • A run without the argument still has stock identity and an unchanged estimate.
      • The skill states the combination.

    Order: A → B → (your verdict) → C → D. C and D are filed now, and close not planned if B loses. No other feature blocks any stage.

    Risks

    • Loading the BF16 weights to quantize on load may exceed lem's host RAM. The stock path does the same, so this is unlikely to be new, but A records it.
    • The VSA-trained weights may degrade under dense attention. That is the open quality question, and B answers it.
    • The 68 GB download takes lem's disk. A checks free space first.
    • The sigma match rests on FastVideo's grid being uniform (item 3). If A finds otherwise, it stops and asks.
    • recommend_loras will mislead on this path (item 4), and only skill prose covers it.

    Questions

    • Q1: the template default after a win. My default is to keep stock and expose transformer_ref_model_name as an argument, with the skill naming when to pick Omni. If you choose "Omni becomes the ref2va default", D also flips the default and lora_model_name to null on those templates, and their cost changes.
    • Q2: quantization for the A/B. My default is int8 on both arms (the face-quality path). If you choose int4 as well, B adds two runs (about +40 min of GPU time).
    • Q3: stop after B if it's a tie? My default is yes: a tie records "tested, equal" in the skill (a docs-only change folded into B), and C–D close. If you choose "onboard anyway", C–D run so the multi-reference option is reachable.

    Reply in comments and hand back with owner:lead. Approve by adding status:plan-approved yourself. No agent may set it.

  3. added
    featureWork bigger than a fix: designed with Don, built in stages (harnest R11)
    owner:donParked for human decision
    status:plan-reviewA feature plan is posted and waiting for Don
    and removed
    ideaAn idea for the researcher agent to assess
    owner:leadFeature lead's turn (harnest R11)
    status:needs-specTester writes acceptance cases for the plan's stages
    on Oct 23, 2026
  4. dkackman commented on Oct 23, 2026

    @dkackman
    OwnerAuthor

    Plan v1 review: send back

    Reviewed against develop @ 4be37f5, the repo's safetensors headers, and FastVideo's docs/inference/fasth3-distilled.md.

    Blocking: the checkpoint is a PDD student, not a finetune

    The plan treats the repo as a full finetune whose only surprise is to_gate_compress. It is a Parallel Decoding Distillation student. FastVideo's docs: the student "widens the transformer's two output projections to pdd_steps heads, one per interval of a fixed fine time grid on [0, 0.999]. Each transformer forward fuses a block of consecutive heads into their integration-weighted mean, and an ordinary Euler step over the block's two node sigmas applies it."

    Shapes read from the safetensors headers:

    Tensor Stock MiniMax-H3 FastH3 Omni
    proj_out.weight [96, 5376] [3072, 5376]
    audio_proj_out.weight [32, 5376] [1024, 5376]
    transformer_blocks.N.attn.to_gate_compress.weight absent [7168, 5376], all 50 blocks

    Both output projections are 32x wider (pdd_steps: 32). The key-suffix diff the issue relied on cannot see this because the key names match and only the shapes differ.

    Consequences:

    1. Stage A fails at load, not with a warning. Diffusers raises Cannot load ... expected shape on a size mismatch unless ignore_mismatched_sizes=True, and that path leaves proj_out randomly initialised. The render would be noise by construction, and the plan's acceptance test would record a false negative and close B–D not planned.
    2. Item 3 (schedule) is moot. It assumes the stock Euler loop over 9 sigma points. The student emits 32 velocity heads per forward and the sampler must fuse 4 of them per step. No set_timesteps setting produces that. The grid also runs on [0, 0.999] (grid_max_t), not [0, 1], so "exactly the PDD indices" was already off at the top.
    3. The plan's non-goal is the actual requirement. Running this checkpoint needs a PDD denoising stage plus a transformer variant with widened heads and head fusion. That is per-model Python, which the plan rules out, and diffusers 0.41.0.dev0 has neither. The only runtime that executes this export today is FastVideo's basic_fasth3_omniref_pdd.py.

    What holds

    • (B) per-component override is sound. ModularPipeline.load_components honours a per-name pretrained_model_name_or_path dict and ComponentSpec.load merges it over the spec; dw/quantized_cache.py keys the SDNQ cache on the override (_SPEC_FIELDS). The schema does not forbid extra keys under load_components. Worth keeping as the mechanism for any future single-component swap.
    • downloads_required gap is real (dw/plan.py:_collect_sources reads only from_pretrained_arguments.model_name, loras[].model_name and single-file URLs). Stage C is correct on its own and should land regardless.
    • VSA gate remains a concern but is secondary now: trained at reference keep rate 0.1, so dense attention is a distribution shift even once head fusion exists.

    Recommended disposition

    • Reject plan v1. Correct the issue body: PDD student, not finetune; "drops to_gate_compress with a warning" is not what happens.
    • Split stage C into its own engine issue (generic, no model knowledge) and run it.
    • Park the Omni path until diffusers gains PDD-student support upstream, or Don rules that a custom loader is worth building. That is the same decision as the Acc PDD / HyperFlow / drozbay rows already marked "need their own loaders" in checkpoints-and-loras.md.
    • If the quality signal is wanted now without engine work: run FastVideo's script once on lem against the same references and compare to the current LoRA path by eye. No dw change.

    Handing back with owner:lead.

  5. added
    owner:leadFeature lead's turn (harnest R11)
    and removed
    owner:donParked for human decision
    on Oct 23, 2026
  6. dkackman commented on Oct 23, 2026

    @dkackman
    OwnerAuthor

    Don's ruling: no custom loader. Parking.

    Nothing in stages A, B or D can run without one: the checkpoint's 32-head PDD output projections do not load into diffusers' MiniMaxH3Transformer3DModel and the modular pipeline has no head-fusion sampler. Stage C is split out as #981 and proceeds on its own.

    Unpark when diffusers (or a diffusers-compatible library we already depend on) can load and sample a MiniMax-H3 PDD student. At that point plan v1's (B) per-component override and the A→B eval are the right shape; only item 3 (schedule) needs rewriting for block fusion.

    Optional, no dw work: run FastVideo's basic_fasth3_omniref_pdd.py once on lem against the same references as the current Ref2VA LoRA path for a visual signal. Recorded here if done.

  7. added
    owner:donParked for human decision
    and removed
    owner:leadFeature lead's turn (harnest R11)
    status:plan-reviewA feature plan is posted and waiting for Don
    on Oct 23, 2026
  8. dkackman commented on Oct 25, 2026

    @dkackman
    OwnerAuthor

    unstrand: feature, parked, target:lem (no owner) → + owner:don. Don's 2026-10-23 ruling parked this himself ("no custom loader. Parking.") until diffusers can load and sample a MiniMax-H3 PDD student. (claude-opus-5-5 via anthropic)

  9. dkackman commented on Nov 3, 2026

    @dkackman
    OwnerAuthor

    A data point from leonardofrito/Directors-Cut (MIT, reviewed 2026-11-03): its H3 video path recommends the FastH3 Omni-ref 8-step checkpoint as the local default ("native VSA without a separate acceleration LoRA"), with the original H3 8-step Ref2VA recipe plus its acceleration LoRA as the fallback and a VSA variant of that as experimental. It pulls the Comfy-format files from FastVideo/FastH3-Omni-Comfy (fasth3_omniref_8step_pruned_bf16 and _int8_convrot), notes there is no Comfy-Org REF2VA NVFP4 file, labels the Omni REF variants unofficial, and uses it for every Ref2VA render including its performer-swap pipeline (#1194). No quality numbers are posted; it is the author's working choice, not a measurement.

  10. added a commit that references this issue on Nov 6, 2026
  11. dkackman commented on Nov 7, 2026

    @dkackman
    OwnerAuthor

    Long-form (#1199): out of scope. FastH3 Omni is a 68 GB Ref2VA transformer
    finetune. The long-form chains are t2va/fl2va, so it cannot speed a chain. It stays
    parked as its own onboarding. Record: bench/records/speed.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureWork bigger than a fix: designed with Don, built in stages (harnest R11)owner:donParked for human decisionparkedParkedtarget:lem

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions