Skip to content

train 1121171252: #2951 #3459 (CI only) - #4399

Closed
ashhart wants to merge 15 commits into
mainfrom
lead/train-1121171252
Closed

ashhart wants to merge 15 commits into
mainfrom
lead/train-1121171252

Conversation

@ashhart

@ashhart ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #2951 #3459 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

gilby and others added 15 commits November 21, 2026 17:12
…ts of one row, five layers and GB/s per shape
…oked since the last one

The summary at close followed a periodic one even when no round had been booked in between, and
printed only a header such as "rounds 4097 to 4096 (0 rounds; ...)". write now returns at once when
no round was booked since the last summary. A test writes a fresh profile (nothing) and one after a
round (its header); it found 104 bytes before the change.
…tched to 64 rows

tf_attn_lo and tf_attn_hi widen through the bfloat type (the same values), so the
decode kernel's dots and sums spend fewer instructions a key; the prompt kernel's
own widening copy goes. With that, loading each step's keys a step ahead wins at
every row count measured, so decode launches take the prefetch pipeline up to 64
rows. A 72-row decode shape keeps the plain pipeline under the contract. Bits equal
main's.
… origin, the first commit, the decoder's time and late buffer starts
…ows, the first run's rows read first

The chunk's Engram row ids are hashed once for every layer. Before the first commit only the first run's layer-1 rows are queued; the second run's and layer 14's queue behind them once the GPU has layer 0. The first run (30% of the chunk's rows, chunks of 512 rows or more) goes through layers 1-13 as soon as its rows are in, the second as a later chunk would, from its first row's keys; layer 14 on runs all rows. Prompt tests compare chunks of 900 rows in two runs of 270, 9 and 450 rows, chunks of 64 in runs of 19 and 45, and every cold chunk in the prompt-then-decode check, against one run and against decode: 0 values differ.
At 65536 records a prompt's reads (more than a quarter of the cache) were read through, never kept. At 4M a 4096-row chunk's batches are kept, and the rows of common n-grams stay cached across requests.
The target gave the server's ticker only its idle tick. With the busy probe (as the Qwen3.8-27B server has) a tiny command buffer on the ticker's own queue uses the weights' set every interval of a request, under the owner's hold, so macOS keeps the layers a long prompt is not using wired. The served keepalive test runs the probe beside its ticks.
Main's stepped path starts the profile clock and times the decoder cone, so its first-commit and decoder rows are right.
No change in behavior. Keeps prompt.zig within the 600-line cap with main's image rows and staged chunks.
@ashhart ashhart closed this Nov 21, 2026
@ashhart ashhart reopened this Nov 21, 2026
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Stopped at #2951.

@ashhart ashhart closed this Nov 21, 2026
@ashhart
ashhart deleted the lead/train-1121171252 branch November 21, 2026 18:45
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.

2 participants