Skip to content

idol: Idol's denoiser on CUDA (stacked on #1766) - #1767

Merged
ashhart merged 12 commits into
ashhart:mainfrom
jayleaton:idol-denoiser-cuda
Nov 19, 2026
Merged

ashhart merged 12 commits into
ashhart:mainfrom
jayleaton:idol-denoiser-cuda

Conversation

@jayleaton

@jayleaton jayleaton commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #1766 (Idol's denoiser on Metal). This branch holds #1766's commits too; its own change is the five commits after e34dab7ad (#1766's 9aaf5d318, replayed on main d367f0fb7): 3d8d9950c (the CUDA denoiser), 2e7d31d1a (recipe), 15d7a9bf0 (harder attention sums inputs), 0e0394fa6 (the notice) and f710b4a77 (shared common/ reduction and mma helpers, for cuda_common_check.py). Review after #1766, or diff against its branch.

What this changes

Idol's denoiser on the CUDA runtime, beside the Metal family and driven by the same case driver and gates (zig/tests/idol_run.zig; tf-idol on CUDA, step idol-cuda). For #1757.

Run on a GB10. It compiles for sm_120 and sm_121 with nvcc 13.0, and the CUDA host tests pass in a Linux box. On a GB10 (ashhart's rerun at 776a3335d), all 13 kernels pass the kernel contract's gates 1-4, and all three controls go red as planted. The restack onto ca429e95a moved the controls into their own header, so idol-contract needs one more GB10 run on f5b88dd98 (or 36828402d, whose SASS is byte-identical). On sm_120, Nipale-ai's RTX 5090 run (CUDA 13.3, nvcc 13.3.73) on f5b88dd98 passes the kernel contract (13 of 13 kernels, 3 of 3 controls red) and the synthetic case; its 13.3 limit numbers differ from the 13.0 records but stay within their bounds. Idol's CUDA sources are byte-identical at f710b4a77.

What it adds

  • zig/kernels/cuda/idol.cu (built with the glue flags: --fmad=false, IEEE division and square root) and idol_attention.cuh: the norms, RePo's angles, q/k rotation and F.normalize (a NaN norm stays NaN, as torch's clamp keeps it), the gated residual, bias with GELU, the embedding, the condition sum and the fp32 bias. Attention is Idol's own head-64 kernel with vision_kernel's row arithmetic: fp16 q, k, v and P (rounded to nearest), fp32 scores, softmax and sums. No shared attention template gains an instance, so no other family's SASS changes.
  • zig/src/families/idol/cuda*.zig: weights, the model and launchers. Model.load admits sm_121 and sm_120 and refuses any other GPU by name, with a log line.
  • Projections on cuBLASLt with CUBLAS_COMPUTE_32F: fp16 block linears into fp32 sums (bias and one fp16 rounding in idol.cu), and true fp32 (fp32 inputs, no TF32) for RePo's maps, the condition embedding and the output, so CUDA needs no hi/lo split. A host test pins the compute type's value.
  • Kernel contract: tf-cuda-test idol-contract, gates 1-4 over every idol.cu kernel and the attention, with three controls that each drop one fp16 rounding; it is in the full contract's family sets and contract_limits.zig. Gate-5 records (idol_cuda_records.zig) are nvcc 13.0's for sm_80, 86, 89, 120 and 121, and match the repo's parser on all 50 entries.
  • docs/recipes/idol-cuda.md, and a changelog line.

Shared code

  • cublaslt.zig: Linear.initTyped takes the input and output types; Linear.init is now initTyped(.bf16, ...), so every existing caller builds the same plan as before.
  • contract_attn.zig: Ref.out lets the attention check read fp16 outputs; it defaults to bf16, the only value before.
  • host.zig / weights.zig: the fp32 host tensors' struct moves into host.zig so both backends load it; Metal is unchanged.
  • zig/tests/idol.zig: the case driver moves into idol_run.zig, shared with CUDA. On Metal it gives the same gates and numbers as idol: Idol's denoiser as a native Metal family #1766's tool on the same case.
  • Registration beside MOSS-Image's: the records through idol_cuda_sets.zig in registry_joins.zig, contract_limits.zig, main.zig and cuda.zig. Idol's set goes after joint_schema in contract_family_sets.zig, and the host tests sit beside MiniMax's in cuda_family_host.zig. The three controls are in their own contract_idol_controls.cuh, included from contract_controls_set.cu. registry.zig and contract_controls.cu are untouched.
  • THIRD_PARTY_NOTICES.md: idol.cu and idol_attention.cuh join idol: Idol's denoiser as a native Metal family #1766's idol-sdk entry.

Receipt

  • Environment: this branch on idol: Idol's denoiser as a native Metal family #1766's commits (9aaf5d318, replayed as e34dab7ad) on main d367f0fb7; a Linux box with Zig 0.17.0 for builds, and with nvcc 13.0 for the earlier fatbin runs below; Mac Studio M5 Ultra for the Metal side.
  • CUDA, in the Linux box (no GPU), before the restack:
    • zig build test-cuda-host: 278 of 278 steps. On the first run one test failed (3,097 of 3,106 passed, 8 skipped); the rerun ran the failed binary again and it passed. I did not identify which test that was; nothing in this branch changed between the runs.
    • zig build fatbins -Dnvcc=... -Dsm=121,120: 218 of 218 steps; idol.fatbin holds sm_121 and sm_120.
    • zig build for Linux: tf-idol, tf-cuda-test and tensorfold build (before the rebase onto MOSS-Image's CUDA port; the box run after it built test-cuda-host and the fatbins).
    • contract_controls.cu no longer changes: main closes tf_ctl_pocket_in_fmax, so the restack dropped f4a07e29e, and Idol's controls moved into contract_idol_controls.cuh.
  • Metal, on the M5 Ultra: zig build test test-golden tf-idol -Dcpu=apple_m1: 593 of 593 steps, 5,254 of 5,283 tests pass, 29 skipped, 0 fail. tf-idol on the SDK's avocado case through the shared driver: all 101 gates pass, with the same run worst row (0.04738), final-sample cosine (0.999993) and 50-step time (27.53 s) as idol: Idol's denoiser as a native Metal family #1766's tool, and identical repeats.
  • On f710b4a77 (the rebase onto d367f0fb7; idol's sources unchanged), in Linux (no GPU): cuda_common_check.py 0 violations, cuda_fragment_check.py 0 misses, the checker unittest 9 of 9, check_cuda_sources.py 12 of 12 on idol and the controls set, zig fmt --check clean, pr_check.py --pr 1767 0 errors, lean_check.py 0 new against main, git diff --check clean.
  • On f5b88dd98, in Linux (no GPU): zig fmt --check build.zig zig clean; lean_check.py 345 problems, the same as main; test-kernel-contract, test-idol-cuda-host and compile-cuda-tests 48 of 48 steps, 251 of 251 tests; cuda_common_check.py 0 violations, cuda_fragment_check.py 0 misses, the checker unittest 9 of 9; zig build test 694 of 694 steps, 7,269 of 7,313 tests (44 skipped), exit 0. nvcc 13.0.88 (container, no GPU) gives SASS and resource usage byte-identical to 36828402d for the idol and controls images on all five SMs.
  • CUDA, on a GB10 (ashhart's rerun at 776a3335d): SUMMARY idol: 13 kernels, 13 pass gates 1-4, 0 fail; 3 controls: 3 red as planted, 0 missed. The attention sums case gives exact sums at k 12294, where fp16 sums would miss by 248135x and bf16 by 1723x. The first run, at d153b6cf0, passed 12 of 13: that case's inputs were too easy for fp16 to miss by 100x, and f35cdd6f1 made them harder. The controls moved in the restack, so this needs a rerun on f5b88dd98 (or 36828402d; same SASS).
  • Not run, and why: the GB10 idol-contract rerun on f5b88dd98 (or 36828402d), which is ashhart's. Gate 5 against a live driver, kernel-contract-limits, the cuBLASLt plans' algorithm search, admission on a device, weight loading, and the case's parity, repeats, timing and memory, which need a GPU run beyond the contract. nvcc 13.2 and 13.3 records are not measured yet (those compilers fall back to 13.0's).

Checklist

  • Every token still goes through the lane rounds. No serial path, and nothing that needs drafts off. (No token path.)
  • Drafted output equals "draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (n/a.)
  • No precision traded for speed. If the bits change, the description says which sums change and why.
  • A new or changed GPU kernel is registered with the kernel contract (docs/kernel-contract.md); each backend's SUMMARY line is in the receipt. (Registered; the GB10 SUMMARY line, 13 of 13, is above.)
  • Prompt processing is no slower than the last release. (Not touched.)
  • The description says which platforms I ran, Metal M1 to M5 and CUDA, and which I could not.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. (Host tests yes; the device contract passes on GB10; the device case run is still pending.)
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths. No AI attribution lines.

jayleaton added a commit to jayleaton/TensorFold that referenced this pull request Oct 31, 2026
jayleaton added a commit to jayleaton/TensorFold that referenced this pull request Oct 31, 2026
@ashhart

ashhart commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Thanks @jayleaton. The shared changes read as no-ops for existing callers: Linear.init goes through initTyped(.bf16, ...) and Ref.out defaults to bf16.

Two things before it can land:

  • On current main, zig/src/core/contract/registry.zig and zig/build/cuda.zig are both at exactly 600 lines. This PR adds one line to each (the _ = @import("idol_cuda_records.zig") test line and the idol_cuda.zig targets hook), which takes both past the lean limit. Could you fold them into an existing line or move them into Idol's own files, as idol: tf-idol-generate end to end on CUDA, and one GB10 qualification script (stacked on #1787, #1858-#1861; not yet run on a GPU) #1862 does for the component records?
  • Device receipts: the idol-contract SUMMARY line, the case's parity, repeats, timing and memory from a GB10. If you don't get time on one, we can run it on ours and post the results here.

Please also rebase onto #1766's new head once it's on main.

@jayleaton

Copy link
Copy Markdown
Contributor Author

Thanks @ashhart. The line-limit fix is pushed:

Both files gain no lines, so they stay at 600 once this is on main. The later Idol PRs will add to idol_cuda_sets.zig instead of registry.zig.

Host gates pass here (Linux, Zig 0.17.0): zig fmt, test-idol-cuda-host, compile-cuda-tests, test-contract-images-host, test-kernel-contract, zig build test and check-release-paths, with no new lean findings.

We don't have GB10 time, so yes please: we'd be glad if you ran the idol-contract receipts on yours (the SUMMARY line, the case's parity, repeats, timing and memory). We'll rebase onto #1766 once it's on main.

@ashhart

ashhart commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Thanks @jayleaton, both files now stay at 600 lines, and moving Idol's records into its own set file is the right shape for the PRs after this one. We'll run the idol-contract receipts on a GB10 (the SUMMARY line, the case's parity, repeats, timing and memory) and post them here. Rebase onto #1766 once it's on main and this is ready. We have no sm_120 card, so that admission stays unrun unless someone with one can post it.

@ashhart

ashhart commented Nov 6, 2026

Copy link
Copy Markdown
Owner

@jayleaton, our GB10 run of idol-contract at d153b6cf0 is in:

SUMMARY idol: 13 kernels, 12 pass gates 1-4, 1 fail; 3 controls: 3 red as planted, 0 missed

  • Passing: the norms (tf_idol_norm affine and modulated, tf_idol_norm32) pass non-finite, repeat (five runs byte-identical), shapes and sums. For example, tf_idol_norm32 notes that fp16 sums would miss by 453x and bf16 by 4405.5x.
  • Controls: the three planted controls (the modulated norm unrounded before scale, gate_add without fp16(g y), and GELU of the unrounded linear) each go red at shapes, as planted.
  • The one failure is the sums gate on tf_idol_attention, full<64, 8>, fp16: "its stress inputs make fp16 sums miss by only 0.3x (needs 100x)". The case's inputs aren't hard enough yet to show the kernel's sums do better than fp16 accumulation would. Please strengthen that case's stress inputs, for example large cancelling terms across the full 64 keys, so fp16 sums would miss by 100x or more, and the gate can then show the kernel's own sums meet the bound. Or, if fp16 accumulation is what the kernel is meant to do there, say so and declare it.

The job's general CUDA kernel contract half compared against a base build that didn't complete on our side, so we're not reading anything from those lines. They're ours to rerun, and nothing is owed from you there. With the attention case fixed, this rebases once #1766 lands, as planned.

@jayleaton

Copy link
Copy Markdown
Contributor Author

Thanks @ashhart. The attention kernel sums in fp32 (both mma steps accumulate in f32, and so does l), so I strengthened the stress inputs rather than declaring fp16.

Why it missed by only 0.3x: the values were odd integers up to 15. In the strided order each of the 32 fp16 lanes stayed below 2048, where fp16 integers are exact, so the only fp16 error was rounding l (12294 to 12296).

f35cdd6 raises them to odd integers up to 255, still mirrored so they cancel. The lane sums now pass 2048 and round. Every fp32 partial sum stays an integer below 2^24, so fp32 is still exact in any order.

On the host, gate 4's proof at the joint shape (12294 keys) now gives:

  • fp16 sums miss by 177,485x (strided; sequential and pairwise overflow to inf)
  • bf16 sums miss by 881,106x
  • fp32 sums are exact in all three orders

A new host test in test-idol-cuda-host runs this check: it fails on the old values and passes on the new ones. zig fmt, test-idol-cuda-host, compile-cuda-tests and test-kernel-contract pass, and lean_check.py stays at the base count (424).

Could you rerun idol-contract on the GB10? The exact ratio depends on the run's seed, but it should be far above 100x. That run is also the first time the kernel's own output goes through the sums gate.

@ashhart

ashhart commented Nov 6, 2026

Copy link
Copy Markdown
Owner

/atc exchange 7979a3260563fc76a06d631a0348ff6971edb9a158b0bbbc0c3d970b63c0fa93

@ashhart

ashhart commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Thanks @jayleaton, that's a clear diagnosis and the right fix. Odd values below 256
(zig/tests/cuda/contract_idol_attn.zig:111) push fp16 lane sums past 2048 while every fp32 partial sum stays an exact
integer, and the 100x bar and the kernel's bound are unchanged. So the gate got harder, not easier, and the host test
at :166 would fail on the old inputs. We'll rerun idol-contract on a GB10 at f35cdd6f1 and post the SUMMARY line
here.

The CUDA case's parity, repeats, timing and memory need the same case files we asked for on #1766 (case, exact and
the blocks panels, with their SHA-256s). Once those are shared we can run both. After #1766 lands, please rebase this
onto main. The conflicts are registration lists, and contract_family_sets.zig has grown on main, so Idol's set goes at
its new end. Please also update the title and changelog line, which still say it hasn't run on a GPU. Main is frozen
for a release right now, so nothing lands until that's out.

  • Synthena (Ash's Agent)

@jayleaton jayleaton changed the title idol: Idol's denoiser on CUDA (stacked on #1766; not yet run on a GPU) idol: Idol's denoiser on CUDA (stacked on #1766) Nov 10, 2026
@jayleaton

Copy link
Copy Markdown
Contributor Author

Thanks @ashhart. The title and changelog line are updated in 776a333. The title drops "not yet run on a GPU". The changelog now says that on a GB10 the kernel contract passed gates 1-4 for 12 of 13 kernels, that the attention sums case got harder inputs and is waiting on your rerun, and that sm_120 is still unrun. The rebase onto main comes after #1766 lands and the release freeze ends, with Idol's set at the new end of contract_family_sets.zig.

@ashhart

ashhart commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Thanks @jayleaton. The title and changelog line now match where this stands. The idol-contract rerun at f35cdd6f1 on a GB10 is ours to do, not yours; your latest commit changes only the changelog, so nothing is needed from you for it.

For the rebase once #1766 is on main:

  1. Please drop f4a07e29e. Main already closes tf_ctl_pocket_in_fmax, so reapplying it would add a second brace.
  2. zig/kernels/cuda/contract_controls.cu is at 600 lines on main, and Idol's controls would add 56. Main now builds the controls image from contract_controls_set.cu, which includes each family's controls from its own .cuh (as contract_js_controls.cuh does). Could Idol's go in one there?
  3. Idol's set goes at the new end of contract_family_sets.zig, as before.

The CUDA case's parity, repeats, timing and memory still need the case files from #1766 (case, exact and the blocks panels, with their SHA-256s). The description's "Not run on a GPU" paragraph could also be updated.

  • Synthena (Ash's Agent)

@ashhart

ashhart commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Thanks @jayleaton. The idol-contract rerun on a GB10 is in, on this PR's head 776a3335d (the same code as f35cdd6f1, plus your changelog edit):

SUMMARY idol: 13 kernels, 13 pass gates 1-4, 0 fail; 3 controls: 3 red as planted, 0 missed

The attention sums case now passes too, with exact sums at k 12294 where fp16 sums would miss by 248135x and bf16 by 1723x. All three planted controls fail at the shapes gate, as they should. The full kernel contract on the same tree adds no failure line that names an Idol kernel. Its other differences from main come from this branch's older base, and the rebase clears them.

With that, the changelog line can say 13 of 13. The rest stands as before: the case files from #1766 for parity, repeats, timing and memory, then the rebase once #1766 is on main.

  • Synthena (Ash's Agent)

@jayleaton

Copy link
Copy Markdown
Contributor Author

Thanks @ashhart, good to see 13 of 13. The changelog line now says all 13 kernels pass gates 1-4 on a GB10, all 3 controls go red as planted, and sm_120 has not run (8fc8dc052). The description's receipt now quotes your rerun's SUMMARY line and sums figures.

@ashhart

ashhart commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Thanks @jayleaton, and for putting 13 of 13 into the changelog line (8fc8dc052); for this code the GB10 contract is settled. What's left is the rebase and the case files, so here is everything in one place:

  1. Restack: the six idol: Idol's denoiser as a native Metal family #1766 commits this branch carries are its copies from before the rebase (ending at 94a039249; idol: Idol's denoiser as a native Metal family #1766 is now at 5f86cedf9). Their changes match except the idol_records line, but their context is older main. Please drop them and replay your own commits on main once idol: Idol's denoiser as a native Metal family #1766 lands.
  2. Drop f4a07e29e: main already closes tf_ctl_pocket_in_fmax.
  3. Move Idol's controls: the lines in f04ce6116 would take zig/kernels/cuda/contract_controls.cu past 600. Please put them in their own .cuh, included from contract_controls_set.cu as contract_js_controls.cuh is.
  4. Registration on current main: the CUDA join moved from registry.zig to zig/src/core/contract/registry_joins.zig, so @import("idol_cuda_sets.zig").cuda ++ goes beside MOSS-Image's line (:19) and registry.zig stays untouched; contract_family_sets.zig now ends with joint_schema, so Idol's set goes after it, with an errdefer for joint_schema now that it isn't last; "idol" joins the list at zig/tests/cuda/contract_limits.zig:33; idol-contract sits beside moss-contract in zig/tests/cuda/main.zig (:272, :538); and the host tests go beside MiniMax's in zig/build/cuda_family_host.zig:19. zig/build/cuda.zig is now 474 lines, so your fold into :112 is fine. Please leave the changelog to us.
  5. Notice: idol.cu and idol_attention.cuh follow idol-sdk's rounding points too (zig/kernels/cuda/idol.cu:1); please list them in the idol-sdk entry in THIRD_PARTY_NOTICES.md asked for on idol: Idol's denoiser as a native Metal family #1766.
  6. Description: the receipt's environment line names 427c7465e and 94a039249, this branch's old copies, and "registration lines … in registry.zig" changes with item 4; please refresh both after the rebase.

The case's parity, repeats, timing and memory still wait on #1766's case files. Since item 3 changes the controls image, idol-contract will need to run again on the rebased head before this lands. sm_120 stays unrun unless someone with a card can post it.

  • Synthena (Ash's Agent)

@ashhart

ashhart commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Hi @jayleaton, a short pointer now that #1766 is at ca429e95a: this branch still carries the older #1766 copies, so the list from my last comment stands, restacked onto ca429e95a instead of 5f86cedf9. The notice item is now smaller: #1766 added the idol-sdk entry to THIRD_PARTY_NOTICES.md, so zig/kernels/cuda/idol.cu and idol_attention.cuh can join that same entry. Once the controls move into their own .cuh, idol-contract will need one more GB10 run on the new head before this lands.

  • Synthena (Ash's Agent)

ashhart added a commit to jayleaton/TensorFold that referenced this pull request Nov 19, 2026
ashhart added a commit to jayleaton/TensorFold that referenced this pull request Nov 19, 2026
ashhart pushed a commit to jayleaton/TensorFold that referenced this pull request Nov 19, 2026
The serving pins now run on every PR, and ashhart#1767 changes two pinned files:
cublaslt.zig gains Linear.initTyped (X and W as bf16, fp16 or fp32 for
Idol's denoiser; initEpilogue passes bf16, so existing plans are unchanged)
and kernels.zig registers the idol image.

test-gradient-serving: 1/1 pass.
ashhart added a commit to jayleaton/TensorFold that referenced this pull request Nov 19, 2026
… the recipe

zig/tests/cuda/main.zig was 600 lines on main and the idol-contract usage
and dispatch lines made it 602, so the gb10-grouped and qmm-prefill-tile22
contract modules are imported at their only dispatch lines, as idol's is.
The recipe gives GustavBlack's GB10 run at 05ab199 (nvcc 13.0: contract
13 of 13 with 3 of 3 controls red, synthetic case 100 of 100, blocks 0 all
23, identical repeat, 53.04 s for 50 steps; peak memory not yet recorded)
and says the 776a333 and c3a6c0c contract runs come before 3682840.
CHANGELOG gains the line for ashhart#1767.
ashhart added a commit to jayleaton/TensorFold that referenced this pull request Nov 19, 2026
ashhart added a commit to jayleaton/TensorFold that referenced this pull request Nov 19, 2026
jayleaton and others added 12 commits November 19, 2026 08:01
Port Idol's denoiser from Metal to CUDA under the same precision contract:
fp16 block linears via cuBLASLt with fp32 sums and one rounding after the
bias (tf_idol_bias), LayerNorm32 to fp16 with fp16 modulation, true-fp32
RePo/condition/output projections (CUBLAS_COMPUTE_32F), and a head-64 fp16
attention with fp32 softmax and accumulation in its own image (idol.cu,
idol_attention.cuh), leaving prefill_attention.cu and its SASS untouched.

- family modules zig/src/families/idol/cuda*.zig; the model refuses any GPU
  but sm_120/sm_121 by name with a log line; timing via the sys shim
- tf-idol on CUDA (idol-cuda step) sharing the case driver with Metal
  (zig/tests/idol_run.zig)
- cuBLASLt Linear.initTyped for fp16 and fp32 inputs; bf16 path unchanged
- kernel contract: idol-contract (gates 1-4 over every idol.cu kernel and
  the attention, three controls dropping an fp16 rounding, in their own
  contract_idol_controls.cuh), Idol's set after joint_schema; nvcc 13.0
  records for sm_80/86/89/120/121 joined through idol_cuda_sets.zig beside
  MOSS-Image's in registry_joins.zig; image in contract_limits
- host tests for the family and the contract's range references, beside
  MiniMax's in cuda_family_host.zig
… in every order

The kernel sums P x V and l in fp32. With odd values up to 15, each strided fp16 lane stayed below 2048, where
fp16 integers are exact, so fp16 sums missed by only 0.3x (l's rounding). Odd values up to 255 push the lane sums
past 2048 while every fp32 partial sum stays an integer below 2^24. A host test runs gate 4's three orders.
…a_common_check asks

idol.cu, idol_attention.cuh and contract_idol_controls.cuh kept their own warp_sum, 8-warp block_sum and fp16 mma.
They now use tf_common::warp_sum (the same butterfly), tf_common::block_sum_serial (the same 8 adds in warp order
at Idol's 256 threads) and qmm_frag::mma_f16_v (the same volatile instruction). Under nvcc 13.0 every kernel but the
two norms and the norm control keeps its SASS byte for byte; the norms' sm_120 registers drop to 33 and 36.
The serving pins now run on every PR, and ashhart#1767 changes two pinned files:
cublaslt.zig gains Linear.initTyped (X and W as bf16, fp16 or fp32 for
Idol's denoiser; initEpilogue passes bf16, so existing plans are unchanged)
and kernels.zig registers the idol image.

test-gradient-serving: 1/1 pass.
…on sums P

The recipe still said no CUDA kernel of this family had run on a device.
It now quotes the idol-contract SUMMARY line from the GB10 (776a333,
and the same result on c3a6c0c) and from the RTX 5090 at sm_120
(f5b88dd), which also passed the shared synthetic case. A GB10 case run
is still to come.

The attention bullet notes that CUDA sums the softmax denominator over
fp32 P and rounds P to fp16 only for P.V, where Metal's id_attention
rounds P first and sums the rounded values.
… the recipe

zig/tests/cuda/main.zig was 600 lines on main and the idol-contract usage
and dispatch lines made it 602, so the gb10-grouped and qmm-prefill-tile22
contract modules are imported at their only dispatch lines, as idol's is.
The recipe gives GustavBlack's GB10 run at 05ab199 (nvcc 13.0: contract
13 of 13 with 3 of 3 controls red, synthetic case 100 of 100, blocks 0 all
23, identical repeat, 53.04 s for 50 steps; peak memory not yet recorded)
and says the 776a333 and c3a6c0c contract runs come before 3682840.
CHANGELOG gains the line for ashhart#1767.
@ashhart
ashhart merged commit 9fddc26 into ashhart:main Nov 19, 2026
2 of 11 checks passed
ashhart pushed a commit that referenced this pull request Nov 19, 2026
The serving pins now run on every PR, and #1767 changes two pinned files:
cublaslt.zig gains Linear.initTyped (X and W as bf16, fp16 or fp32 for
Idol's denoiser; initEpilogue passes bf16, so existing plans are unchanged)
and kernels.zig registers the idol image.

test-gradient-serving: 1/1 pass.
ashhart added a commit that referenced this pull request Nov 19, 2026
…cipe

zig/tests/cuda/main.zig was 600 lines on main and the idol-contract usage
and dispatch lines made it 602, so the gb10-grouped and qmm-prefill-tile22
contract modules are imported at their only dispatch lines, as idol's is.
The recipe gives GustavBlack's GB10 run at 05ab199 (nvcc 13.0: contract
13 of 13 with 3 of 3 controls red, synthetic case 100 of 100, blocks 0 all
23, identical repeat, 53.04 s for 50 steps; peak memory not yet recorded)
and says the 776a333 and c3a6c0c contract runs come before 3682840.
CHANGELOG gains the line for #1767.
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thank you @jayleaton. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

ashhart pushed a commit to jayleaton/TensorFold that referenced this pull request Nov 20, 2026
The serving pins now run on every PR, and ashhart#1767 changes two pinned files:
cublaslt.zig gains Linear.initTyped (X and W as bf16, fp16 or fp32 for
Idol's denoiser; initEpilogue passes bf16, so existing plans are unchanged)
and kernels.zig registers the idol image.

test-gradient-serving: 1/1 pass.
--
2.43.0
--
2.43.0
ashhart added a commit to jayleaton/TensorFold that referenced this pull request Nov 20, 2026
… the recipe

zig/tests/cuda/main.zig was 600 lines on main and the idol-contract usage
and dispatch lines made it 602, so the gb10-grouped and qmm-prefill-tile22
contract modules are imported at their only dispatch lines, as idol's is.
The recipe gives GustavBlack's GB10 run at 05ab199 (nvcc 13.0: contract
13 of 13 with 3 of 3 controls red, synthetic case 100 of 100, blocks 0 all
23, identical repeat, 53.04 s for 50 steps; peak memory not yet recorded)
and says the 776a333 and c3a6c0c contract runs come before 3682840.
CHANGELOG gains the line for ashhart#1767.
--
2.43.0
--
2.43.0
ashhart added a commit to jayleaton/TensorFold that referenced this pull request Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants