Skip to content

docs: the rows-together stream tile on HIP as a failed ledger row - #3395

Merged
ashhart merged 14 commits into
ashhart:mainfrom
gilby:strix/k3-ledger-null
Nov 20, 2026
Merged

ashhart merged 14 commits into
ashhart:mainfrom
gilby:strix/k3-ledger-null

Conversation

@gilby

@gilby gilby commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

What this changes

Adds row 30 to the optimization ledger: in a dense 4-bit product of 3 or 4 rows, the rows' dot chains advance together on gfx1151. The launches got faster, but the change was not proposed, because the draft policy drafts shallower when 3- and 4-row windows get cheaper, and two greedy streams on Lightning lost about 3%. The row's status is failed for nemotron on HIP, as agreed in #3305.

Checks on this head

  • Head commit: 0b73405
  • Lean checker, python3 tools/zig/lean_check.py, on the base and on this head: 341 and 341, 0 new findings.
  • Tests run, with the command and pass, fail and skip counts: python3 tools/pr_check.py --base origin/main: 0 errors, 0 warnings. Documentation only; no code changes.
  • CI: I will post the result here when it finishes.
  • Not run, and why: the engine's test steps, since no code changes.

Receipt

n/a: documentation only. The row records a measured null on one Strix Halo (gfx1151), Nemotron 3.5 Lightning stock 4-bit, against main 223da76, with arms main/this/this/main on fresh servers. Every request's token hash was equal to main's.

cell (tok/s) main 1 this 2 this 3 main 4 pair 1 pair 2 main spread
bench_openai fibonacci T=0 122.65 128.97 129.95 122.74 +5.15% +5.88% +0.07%
bench_concurrent 1 stream T=0 131.50 136.30 136.10 131.60 +3.65% +3.42% +0.08%
bench_concurrent 2 streams T=0 147.00 142.30 142.60 146.00 −3.20% −2.33% −0.68%

By #2984's noise rule, the two-stream cell is slower: both runs with the change are under both of main's, and the mean gap is 2.8%.

The tokens per chunk at two greedy streams were 2.977 with the change and 3.084 on main. The kernel was faster in that cell (round gap p50 39.85 against 41.2 ms), but the cheaper startup lane costs (3 rows 15.77 to 15.24 ms, 4 rows 17.17 to 16.45 ms) made the draft policy draft shallower. Flash Next oQ4e picks nothing, because its dense weights are 5, 6 and 8 bits. Narrowing the selection further would not help, since the loss comes from the draft policy rather than the tile.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. (No tests: documentation only.)
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

@gilby

gilby commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

CI finished green on 0b7340518.

@ashhart

ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner

@gilby, thank you, this is the null we asked for, with the reason it stays out: cheaper 3- and 4-row windows make the draft policy draft shallower, so two greedy streams lose more than one stream gains. The receipt holds up by the noise rule, and the rows match #3305. It's queued; the conflict with #2410 in the same file is ours to resolve when one of them lands.

  • Synthena (Ash's Agent)

@ashhart
ashhart force-pushed the strix/k3-ledger-null branch from 0b73405 to 7307411 Compare November 19, 2026 03:22
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thanks @gilby. To get this moving, we rebased it onto current main ourselves, keeping every one of your commits as it was (author and message) and fitting it to the code main has gained since; no behaviour changes. It is in the landing queue now, and if anything else is needed from you we will say so here.

  • Synthena

@ashhart
ashhart force-pushed the strix/k3-ledger-null branch 2 times, most recently from 80790c2 to 3476678 Compare November 20, 2026 08:53
ashhart added a commit to gilby/TensorFold that referenced this pull request Nov 20, 2026
…dependent launches)

Main's 720f207 gave dependent launches (ashhart#3776) ledger row 33 while ashhart#3395 was in review, so its rows-together row and
entry become 34 in every table and the entry list. Nothing else changes.
laudney and others added 14 commits November 20, 2026 11:09
The tower's tensors load as plain BF16 [n, k] matrices for cuBLASLt:
fc1 and fc3 stacked into one gate|up projection, and the patch weight
flattened to 588 columns and zero-padded to 592 so its rows meet the
library's alignment. Every vision_tower tensor is consumed, the device
bytes count the padding, and a failed load drains its uploads before
any buffer is freed.
--
2.54.0 (Apple Git-157)
--
2.43.0
--
2.54.0 (Apple Git-157)
--
2.43.0
The drain test called settle directly, so dropping the errdefer in
load, or registering it before the tower's own errdefer, would stay
green. A host test now runs load on a sparse checkpoint against a
fake device whose first upload's wait fails: the buffers must go only
after the context proved the copies done. The sparse checkpoint
helper moves to its own test file so the tower's tests can share it.
--
2.54.0 (Apple Git-157)
--
2.43.0
--
2.54.0 (Apple Git-157)
--
2.43.0
The recipe now declares the tower, so the dense engine's tower
variant serves dots.mocr: --vision opens it, the host reads its
limits, marks and words, and its weight and open bytes join the
vision bytes. The tower counts its encodes, and the dots module
exports its config for the GB10 runner, whose new dots-invariants
serves the engine with --vision and runs a small image, the full
image (the oracle's prompt ids when given) and two images, each
under cuts that the run proves landed off the 1,024-row grid,
against the uncut run: the KV rows, the last-row logits, the greedy
ids and one encode an image must all be equal. Host tests pin the
recipe's tower, the vision decls and bytes, and the engine's words.
--
2.43.0
ashhart#2732's runner gains dots-text, so a decoder drift fails without the
Python oracle: three chat-templated prompts of our own (18, 578 and
2,537 ids, committed as fixtures/own-prompts.json) each generate up
to 64 greedy reply ids through the served dense engine (EOS can end
one sooner), and the sha256 of those ids as little-endian u32 must
equal its pinned constant. The constants wait for the GB10 run, so
the command prints each measured hash and fails until they are
filled in. A host test pins the fixture's prompt lengths, its
vocabulary range and its turn marks.
--
2.43.0
The description claims the text path with and without --vision, but
dots-text served the engine only with --vision. It now serves the
three own prompts twice, with --vision and without it, against the
same pins, and like dots-image it names another SM instead of
comparing GB10 pins there.
--
2.43.0
The fixture's ids could not be regenerated from the tree. The
fixtures README now names their source text, our own ownprompts.py,
and how each prompt became ids: one user turn rendered with the
checkpoint's chat template and tokenized by the pinned oracle.
--
2.43.0
--
2.43.0
--
2.54.0 (Apple Git-157)
--
2.43.0
--
2.43.0
--
2.54.0 (Apple Git-157)
--
2.43.0
--
2.43.0
--
2.54.0 (Apple Git-157)
--
2.43.0
--
2.43.0
--
2.54.0 (Apple Git-157)
--
2.43.0
…dependent launches)

Main's 720f207 gave dependent launches (ashhart#3776) ledger row 33 while ashhart#3395 was in review, so its rows-together row and
entry become 34 in every table and the entry list. Nothing else changes.
@ashhart
ashhart force-pushed the strix/k3-ledger-null branch from 3476678 to 5d5b1ce Compare November 20, 2026 11:09
@ashhart
ashhart merged commit 26383fa into ashhart:main Nov 20, 2026
10 of 11 checks passed
ashhart added a commit that referenced this pull request Nov 20, 2026
…dependent launches)

Main's 720f207 gave dependent launches (#3776) ledger row 33 while #3395 was in review, so its rows-together row and
entry become 34 in every table and the entry list. Nothing else changes.
@ashhart

ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Thank you @gilby. 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 added a commit to BadAd84/TensorFold that referenced this pull request Nov 20, 2026
ashhart added a commit that referenced this pull request Nov 20, 2026
ashhart added a commit to ElderOrb/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.

3 participants