Repository navigation
Conversation
|
I merged main (3942d68) to clear the conflict, no rebase. Main's own span read-ahead (read_ahead.zig, Checkpoint.readAhead) is kept as is; the decoder's load now builds its spans from host.weights' items and start, then host.read, so main's split stays whole. I also narrowed the refiner's filter to the eight tensors a block takes (2b60fd2), with a fixture tensor that proves it. test-h3-read-ahead, test-h3-image-decoder-load, test-h3-image-prompt-weights and the lean gate (0 new) pass; zig build test test-golden fails the same 4 tests here as on main 3942d68 (net DNS, managed log, info pricing, qwen27 mtp_pick's missing bf16_topk module). |
|
Thanks @plotarmordev. The prompt path keeps its mapped BF16 bytes, and the decoder keeps the existing conversion after reading only its selected tensor ranges. The narrowed refiner filter and the enabled/disabled read-ahead fixtures cover the intended boundaries. Your focused current-head results are useful, and the branch merges cleanly. This is ready to land through the normal final-tree checks. The existing transformer timing table does not establish a speed benefit for the newly covered prompt and decoder paths, so the change notes should not claim a speedup there.
|
|
Thanks. Agreed on the notes: the change itself claims no prompt or decoder speedup — the timing table is the transformer's and already reports no net cold-start win there, and the notes only say the same reader now serves the prompt path's accepted tensors and the decoder's converted ones. Re-ran the focused checks at this head: test-h3-read-ahead, test-h3-image-decoder-load and test-h3-image-prompt-weights pass (4/4), and the lean gate shows 0 new problems. |
|
I ran the broader focused set on a clean trial merge of zig build test-h3-read-ahead test-h3-image-prompt test-h3-image-prompt-weights \
test-h3-image-decoder-load compile-h3-image-prompt compile-h3-image-decoder-host \
-Dcpu=apple_m1 --summary allAll 21 tests passed: 2 read-ahead, 13 prompt, 4 prompt-weight and 2 decoder-load cases. Both compile targets also passed. This is host and compile coverage for the present head. I did not repeat the checkpoint load or measure cold-start speed. Igor Lessio - AIFLOW LABS |
2b60fd2 to
7362058
Compare
`tf-h3-image-prompt` and `tf-h3-image-decoder` now read the tensor bytes they use into the page cache through the same 16 x 8 MiB reader the transformer's shards use, instead of faulting them in one page at a time. `read_ahead.read` takes byte ranges, so the prompt path reads only its accepted tensors and the decoder only the tensors it converts; the transformer still passes whole shards. (cherry picked from commit 8addc4f) (cherry picked from commit 6eeff19)
The lean checker counts a comment past 120 columns and a comment over two lines alike, so the two doc comments the read-ahead change lengthened are shortened in place. Comments only. (cherry picked from commit e66ef31)
…erts to bf16 (cherry picked from commit a58ebbc)
FrontNames accepted every token_refiner.* tensor, so open also read ahead blocks above g.blocks and their shards. Restrict it to condition_proj's weight and bias, the final norm and the first g.blocks blocks, and cover it with a fixture that parks an extra block's tensors in an opened shard and a second shard.
FrontNames accepted any tensor under a refiner block below g.blocks, so a block tensor loadRefiner never takes was still read ahead. It now accepts a block tensor only by blockTensors' names; the fixture gains one such tensor, which the read-ahead count leaves out.
7362058 to
ee3d526
Compare
|
Thank you @plotarmordev. 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. |
No visible change: nothing this PR changes shows on screen.
How to check
e3c6f79bacef0a50bdc8ca9a9c1e9abf300f7a272b60fd231ed25c40531af0ea4761d284f20fdee0Test results:
zig build test-h3-read-ahead test-h3-image-prompt --summary allat6eeff192a5d5(older head): 2 passed, 0 failed, 0 skippedzig build test test-goldenated4c881de456(older head): 5763 passed, 2 failed, 82 skippedzig build test-golden test-h3-read-ahead test-h3-image-prompt compile-h3-image-prompt compile-h3-image-decoder-host compile-h3-host --summary allat6eeff192a5d5(older head): 2 passed, 0 failed, 0 skippedzig build test test-golden --summary allat6eeff192a5d5(older head): 550 passed, 1 failed, 15 skippednice -n 10 zig build test test-golden --summary allate66ef310c9d2(older head): 16362 passed, 2 failed, 131 skippednice -n 10 zig build test-h3-read-ahead compile-h3-host dev-tools --summary allate66ef310c9d2(older head): 2 passed, 0 failed, 0 skippednice -n 10 zig build test test-golden --summary lineat3942d6865ce9(older head): 17430 passed, 4 failed, 130 skippedzig build test-h3-image-decoder-load test-h3-read-ahead --summary allata58ebbc1080b(older head): 4 passed, 0 failed, 0 skippedpython3 tools/zig/lean_new.py lean-base.txt lean-head.txtateb34328af8b1(older head): 1 passed, 0 failed, 0 skippedzig build test-h3-image-decoder-loadated4c881de456(older head): 1 passed, 0 failed, 0 skippedzig build test-h3-read-aheadated4c881de456(older head): 1 passed, 0 failed, 0 skippedzig build test-h3-image-prompt-weightsated4c881de456(older head): 4 passed, 0 failed, 0 skippedzig build test-h3-image-prompt compile-h3-image-promptateb34328af8b1(older head): 12 passed, 0 failed, 0 skippedzig build test-h3-read-ahead --summary allated4c881de456(older head): 2 passed, 0 failed, 0 skippedzig build test-h3-image-prompt-weights --summary allated4c881de456(older head): 4 passed, 0 failed, 0 skippedzig build test-h3-image-decoder-load --summary allated4c881de456(older head): 2 passed, 0 failed, 0 skippednice -n 10 zig build test-h3-read-ahead test-h3-image-decoder-load test-h3-image-prompt-weights test-h3-image-prompt compile-h3-image-prompt compile-h3-image-decoder-host compile-h3-host --summary allat2b60fd231ed2: 8 passed, 0 failed, 0 skippedpython3 tools/zig/lean_new.py ../lean-base.txt ../lean-head.txtat2b60fd231ed2: 1 passed, 0 failed, 0 skippedzig fmt --check build.zig zigat2b60fd231ed2: 1 passed, 0 failed, 0 skipped