Repository navigation
Conversation
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.
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.