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.
drowzeys
force-pushed
the
upstream/h3-steps
branch
from
October 17, 2026 01:30
8bb0b87 to
be891b6
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 #959 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-firstframe, which is stacked onupstream/h3-metal(#949, #950). Review those first.FastH3 now runs at any step count on TensorFold's Metal runtime, without a precomputed schedule. The native tool builds everything a run's step count decides:
Before this, a case file fixed the step count and carried 155 MB of tables per run. Now one case runs at 4, 8 or 16 steps, the trade-off between speed and quality the distilled checkpoint was trained for. It is also the first piece of the exporter moved into Zig.
On the Mac Studio (M5 Ultra), FastH3 8-Step V2 at 864x480 with 124 frames:
h3_modulationkernel over the checkpoint's 26 GB of AdaLN weights, read in place.h3_modulationpasses gates 1–4 of the kernel contract with 0 limit problems. Lean check: 517, with 0 added.Parity
Each reference case was written by the fork's exporter with
--steps N --at K: the MLX reference takes steps 0..K-1 itself, then gives its velocity at step K. The native tool runssteps=N,from=Kon it.Tables against the reference's. 56,583,428 of 77,414,400 values (73.1%) are bit-identical at 8 steps, and 76.1% at 4 steps. The largest difference is 0.0625 at values up to 16.25, which is one bf16 step at that size.
What it adds
zig/src/families/h3/schedule.zig(host only):fastvideo_inference.json; a preview checkpoint's shifts come from its scheduler folders;zig build teston every host.zig/src/families/h3/modulation.zig:h3_modulationinh3_rows.metal: Y = X Wᵀ + B with fp32 sums, bias added in fp32, rounded once to bf16, and written in the (part, line, channel) order the norms read. It is registered in the contract tests and inregistry.zig.zig/tests/h3_steps.zigand three new tool words:tables: the case's schedule, made here;steps=N;from=K: the case holds step K's rows.Checkpoint.floatsfor float32 or bf16 host reads.Receipts
Commands, from the Mac Studio (M5 Ultra, macOS 27.0.1, Zig 0.17.0):
Every run held the machine's shared GPU lock; no Ollama model was loaded except on the first case-tables run (an idle model, not ours).
upstream/h3-ref2va), where they ran on the tree that includes this one.h3_modulationalone:PASSat gates 1–4 (worst 0.996 of the bound at gate 3; exact sums at k 2688, where fp16 would miss by 1952× and bf16 by 3840×), and its launch fits M1 to M5.Next steps
Licenses
The code is Apache-2.0. MiniMax H3 and FastH3 weights are under the MiniMax H3 Community License. No weights are included.
🤖 Generated with Claude Code
https://claude.ai/code/session_01PfjmufXm4L7qsVNFyRw9ZK