Skip to content

train 1121214337: #2952 #2962 (CI only) - #4442

Closed
ashhart wants to merge 16 commits into
mainfrom
lead/train-1121214337
Closed

ashhart wants to merge 16 commits into
mainfrom
lead/train-1121214337

Conversation

@ashhart

@ashhart ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #2952 #2962 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 16 commits November 21, 2026 21:43
The depth rule priced Metal rounds with the CUDA-shaped defaults. Metal now
times dry windows of 1 to 16 rows, the second launch from row 17 and a DSpark
pass with its ingest at load, on a time budget, through the lane core's
calibration path. TF_DSV41_CALIB keeps its meaning; measure is the Metal
default, and TF_DSV41_CALIB_BUDGET_MS bounds the repeats. The prompt cache is
not fed and every slot is left as new.
…t table

The first measurement took 12.7 s and priced the pass at 62 ms. It now times
rows 1, 2, 4, 8 and 16, the 4 + 4 window, rows 17 and 32 and the pass once
each after an untimed window and pass, repeats the passes only while the
budget lasts, and interpolates the rows between. The startup line reports the
ingest share of the pass and the timed runs.
… table by device and weights

The Metal measurement now checks every TF_DSV41_CALIB* setting before it
times anything, so a malformed value stops the start naming the setting, its
text and the accepted forms; only a measurement that fails falls back to the
defaults. The settings have rows in platform/environment.zig and
docs/environment.md. A stored table carries the device and checkpoint
identity, so another chip or other weights never read it. dropWindow's
comment says it is for calibration, with wipe after.
…very window a lone stream can make

The measurement prefilled the calibration text into each slot twice and ran
thirty one-row windows to grow a continuation, which cost about nine seconds
on the release model outside the timed runs. It now prefills one short prompt
in each slot it needs once, takes the window tokens from the text itself,
and clears only the slots it used. Rows 1 to 6 are timed rather than
interpolated, since a lone stream's drafts make exactly those windows.
…t be one

The pass's entry was a single sample taken right after the largest windows,
so whatever the first ingest after them costs became the table's pass. The
pass is now run once untimed and five times back to back, as a round runs it,
and the fastest is kept; the first ingest after the windows is reported apart.
A table whose pass is dearer than twice its own 1-row window is refused when
measured and when read back from a stored file.
…budget

The slot term is the 4 + 4 window less the 8-row one, each a single sample
once the budget was spent. Both now run twice more side by side after the
passes, marked so the budget never drops them; only the other row counts are
optional.
…ults

On the M5 Ultra the measured table made code faster and sampled chat slower
in three cells, with the rule near-indifferent between the depths. The table
is still timed at start and reported, with its checks and settings, but the
default table prices the rounds unless TF_DSV41_CALIB names a source, so
served depths are unchanged. The lanes test and the Metal device test run
from the Metal test steps.
Unset or blank keeps the default table with nothing timed and no extra
startup line, so load time and behaviour are the base's. measure, zig,
cached and real time or read the table, check it, report it and price from
it. The table_prices switch is gone.
…ding binding

codec_net_test.zig runs codec_net.zig's decode (3 frames, two chunks) and encode (2 frames) over a binding
that records every kernel and clip-buffer call with its arguments, addresses named by weight and buffer.
The lists are pinned in fixtures/codec_{decode,encode}_calls.txt; a difference names the first changed call.
@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

Landed: #2952 #2962 as main b6701e5. This PR only carried their CI.

@ashhart ashhart closed this Nov 21, 2026
@ashhart
ashhart deleted the lead/train-1121214337 branch November 21, 2026 22:59
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