Repository navigation
docs: the rows-together stream tile on HIP as a failed ledger row - #3395
Conversation
|
CI finished green on |
|
@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.
|
0b73405 to
7307411
Compare
|
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.
|
80790c2 to
3476678
Compare
…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.
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.
3476678 to
5d5b1ce
Compare
|
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. |
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
failedfor nemotron on HIP, as agreed in #3305.atc overlap --jsonon base2ba55ec7d: incomplete (it stopped at its request and time limits). For this tree it lists one open PR, qwen35 cuda: fuse the dense MLP's NVFP4 prompt gate and up projections into one launch #2410, sharing one file,docs/optimization-ledger.md, with a conflict in it.Checks on this head
python3 tools/zig/lean_check.py, on the base and on this head: 341 and 341, 0 new findings.python3 tools/pr_check.py --base origin/main: 0 errors, 0 warnings. Documentation only; 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.
bench_openaifibonacci T=0bench_concurrent1 stream T=0bench_concurrent2 streams T=0By #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