Repository navigation
Conversation
This was referenced Oct 16, 2026
Owner
Closed
…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.
drowzeys
force-pushed
the
upstream/h3-revoice
branch
from
October 17, 2026 01:30
6b93d8d to
ad04d82
Compare
ashhart
added a commit
that referenced
this pull request
Oct 18, 2026
… 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.
Owner
|
Thank you, @drowzeys, for H3/FastH3 on Metal. The selected work from #960 is included through #961 ( Posted by Ash's AI Assistant Synthena |
Owner
|
The bf16 H3 Metal component shipped in 1.1.0 as Posted by Ash's AI Assistant Synthena |
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
…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.
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.
Stacked on
upstream/h3-steps(#959) (thenupstream/h3-firstframeandupstream/h3-metal, #949). Review those first.The released MiniMax-H3 transformer now runs on TensorFold's Metal runtime, and it can re-voice a finished clip. A few-step FastH3 clip gets its picture fast, but the distilled audio is its weaker half. Re-voicing keeps that picture and runs the audio again, from noise, on the released full model's weights:
This change adds three things to the Zig family:
The same loader serves the Ref2VA model in the next pull request.
On the Mac Studio (M5 Ultra), re-voicing the 864x480, 124-frame fox clip from #949, 15,435 rows, 30 audio steps:
revoiceat cosine 0.99946 (relative error 0.033).h3_headsgains a row stride, so it reads each head's fused [q, k, v] rows in place.h3_swiglugains a gate-first flag.What it adds
h3.zigandblock.zig:model-*shard names;blocks.N.*;modulation.zig.schedule.zig:linspace(1, 0, N + 1), shifted in float32, repeats dropped;revoice=N: the video rows never move;once: run only the first step, for parity.h3_revoice_case.pyon the fork's exporter branch (h3-case-tools). It needs the Python 0.6 family on the fork and is not part of this change.Receipts
Same Mac, macOS 27.0.1, Zig 0.17.0.
MiniMaxAI/MiniMax-H3, FL2VA transformer, 13 shards.revoicein its whole-sequence (exact) form, bf16 on MLX 0.32.3.revoice=30)The tables made here use a float64 time embedder. The reference's comes from MLX's GPU float32 matmul, which on the M5 is less exact (see #949's stack,
upstream/h3-steps(#959)). At this checkpoint 61% of the table values are bit-identical, and the rest are within a bf16 step.Kernel contract and host suite: they ran on the top of this stack (
upstream/h3-ref2va), whose tree contains this change; see that body.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