Repository navigation
Conversation
|
Thank you, @drowzeys, the held-reference audio and schedule rules give the Metal H3 stack a useful shared-family endpoint. We checked 25599e2. h3.zig:158-171 reads six geometry counts without first requiring six, and held_audio can exceed audio before h3_dit.zig slices it. We can add count/range/product checks and negative fixtures at landing. We will carry the Metal stages with the bf16 CUDA component into one H3 family, preserving M5-only qualification until other hardware runs. Native conditioning/reference encoders, latent decoders and synchronized media output follow the denoiser/schedule pieces. Please retain identical-step and held-audio/reference fixtures for the combined pipeline; raw latent rows and external exporter results remain distinct from a complete native clip. Posted by Ash's AI Assistant Synthena |
…de the engine A video and audio model's denoising transformer on the M5 tensor units, in the checkpoint's precision: bf16 weights read in place, products on the prefill kernels' tfp::gemm_nax (MLX's GEMM, fp32 sums), FastH3's tile-routed attention in bf16 with fp32 scores and an online softmax. zig build tf-h3-dit runs every denoising forward for a case file. The lane core, the server and the other families are untouched. Thirteen kernels are registered with the kernel contract and pass gates 1-4; their launches and the two GEMM entry points are in registry.zig. The recipe holds the receipt.
A case exported with a first frame holds the keyframe's rows between the text and the audio. They enter like video rows on every pass at the keyframe noise level and are never stepped. Text to video is bit-identical to before.
…aLN tables made here The rungs, shifts and per-row timestep plan come from the checkpoint's contract (or N rungs spread from its first); the timestep embedder runs on the host and each block's AdaLN projection on the GPU (h3_modulation, registered with the kernel contract), so a case no longer fixes the step count.
…a finished picture Loads the released checkpoint's layout (model-* shards, each head's fused [q, k, v] rows, [gate; value] SwiGLU rows, dense attention without routing gates, its embedder and AdaLN names). revoice=N holds every row but the generated audio at the keyframe level and takes the audio down the released model's grid, as the Python sampler's revoice does. h3_heads takes a row-head stride and h3_swiglu a gate-first flag; both are covered by the kernel contract.
A Ref2VA case holds the references' video rows as keyframe rows and their clean audio ahead of the clip's audio; the geometry's eighth count marks those reference audio rows, which are pinned at timestep 1 and never stepped. steps=N on the released weights makes their own grid.
25599e2 to
50cb134
Compare
|
Rebased on main |
…g them Model.load read geometry[0..5] whatever the tensor's length and cast each i32 count to usize, and a Ref2VA case's held_audio could exceed its audio rows before h3_dit.zig sliced audio[held..]. schedule.geometry() now takes the counts first: fewer than six is error.ShortGeometry, more than eight or a negative count error.BadGeometry, and more held audio rows than audio rows error.HeldAudioTooLong. h3_dit.zig also refuses a held span past its audio before slicing. Host test in schedule.zig (zig build test).
|
Thank you. Both points are fixed in
Test: Checks on the M5 Ultra:
These are build and host tests only; I didn't do a device run. The identical-step fixtures and the held-audio and reference fixtures are all kept. |
|
Thanks @drowzeys for checking all six-to-eight counts before casting and refusing held audio beyond the audio span. The equal-length case and malformed geometry controls are the right boundaries. Our Metal component integration retains those checks and the held-reference schedule, with the later geometry review repairs. The reported host steps and harness build are not a device rerun. Identical-step, held-audio and reference fixtures still need to pass on the final integrated source, alongside numerical/resource checks. The native block and schedule work remains distinct from the encoders, tower and decoders needed for complete native media serving. Posted by Ash's AI Assistant Synthena |
… beneath it The H3 and FastH3 transformer on Metal as a test tool beside the release's, clips that start from an image, any step count with its schedule and AdaLN tables, the released MiniMax-H3 weights with re-voicing of a finished clip, and Ref2VA's reference pictures, videos and audio. Against this branch: build.zig runs the H3 schedule's host tests beside the XPU admission tests.
|
Thank you, @drowzeys, for H3/FastH3 on Metal. 1.1.0 consolidates #949, #950, #959 and #960 through #961 ( Posted by Ash's AI Assistant Synthena |
|
The bf16 H3 Metal component shipped in 1.1.0 as Posted by Ash's AI Assistant Synthena |
…hart#950, ashhart#959 and ashhart#960 beneath it The H3 and FastH3 transformer on Metal as a test tool beside the release's, clips that start from an image, any step count with its schedule and AdaLN tables, the released MiniMax-H3 weights with re-voicing of a finished clip, and Ref2VA's reference pictures, videos and audio. Against this branch: build.zig runs the H3 schedule's host tests beside the XPU admission tests.
Stacked on
upstream/h3-revoice(#960), thenupstream/h3-steps(#959),upstream/h3-firstframe(#950) andupstream/h3-metal(#949). Review those first.Reference-driven video and audio generation (Ref2VA) now runs on TensorFold's Metal runtime. MiniMax-H3's Ref2VA model makes a clip from a prompt plus reference pictures, videos and audio clips. Here, a picture of a fox and a soundtrack: "the fox from <Picture 1> trots through deep snow…, the soundtrack follows <Audio 1>".
This is the model behind the Studio's Ref2VA shots. It needs the pieces of the stack below it: keyframe rows (#950), the native schedule and the released weights' layout. It adds one count to the case and one rule to the sampler step.
On the Mac Studio (M5 Ultra), 864x480 with 124 frames, the case has 16,673 rows: 455 text (the prompt and the references' vision tokens), 405 reference-picture rows, 828 audio (414 of them reference audio), 14,985 video, in 308 tiles. Results:
upstream/h3-revoice(MiniMax H3 on Metal: the released MiniMax-H3 weights, and re-voicing a finished clip #960).SUMMARY 41 kernels: 41 pass gates 1-4, 0 fail, 2 known findings; 5 controls: 5 red as planted, 0 missed; 0 limit problems, andPASS limits: 93 registered Metal launches against M1-M5, 0 problems. The 2 known findings aremain'saffine_mm.maingives 204/204 and 2989 of 2999 with the same 10 skips; the 5 new tests are the schedule's. Lean check: 517, with 0 added.What it adds
h3.zig: the case geometry's eighth count, the reference audio rows at the front of the audio.modulation.zig: passes that count to the plan, which pins those rows at timestep 1.steps=Non the released weights makes their own grid of N + 1 points (video shift 12, audio shift 3).upstream/h3-revoice(MiniMax H3 on Metal: the released MiniMax-H3 weights, and re-voicing a finished clip #960)'s loader, unchanged.h3_ref2va_case.pyon the fork's exporter branch (h3-case-tools):packing.reference_layout.Receipts
Released checkpoint
MiniMaxAI/MiniMax-H3, Ref2VA transformer, 13 shards.denoisewith references, bf16 on MLX 0.32.3.steps=30)The reference audio rows' own velocities match less well. Those rows alone are at cosine 0.976 at step 1. All audio rows together are at 0.996 at step 1 and 0.993 at step 16. These velocities are discarded, because those rows are never stepped. Their part in every other row's attention is what the clip's rows above measure.
Next steps
Licenses
The code is Apache-2.0. MiniMax H3 weights are under the MiniMax H3 Community License. No weights are included.
🤖 Generated with Claude Code
https://claude.ai/code/session_01PfjmufXm4L7qsVNFyRw9ZK