Skip to content

train 1116130815: #3353 #3432 (CI only) - #3568

Closed
ashhart wants to merge 12 commits into
mainfrom
lead/train-1116130815
Closed

ashhart wants to merge 12 commits into
mainfrom
lead/train-1116130815

Conversation

@ashhart

@ashhart ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3353 #3432 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.

ashhart and others added 12 commits November 16, 2026 12:56
The target-to-drafter table moves from benchmark_model.zig to drafter.zig,
so serve and the benchmark read one table. With no --drafter, serve looks
the target up there and resolves its drafter through the local hub
resolver only, so nothing is downloaded, and logs one line naming it. A
drafter it paired that does not open is dropped with one line and the
target opens alone. --drafter none serves without one, and an explicit
--drafter keeps its meaning. The benchmark's serve child gets --drafter
none when the plan names no drafter, so it keeps the drafter it chose.

Fixes #3173
C5 of #2444: a sliding window gives back the pages behind it while
its stream runs. A retired page carries the token of the last
forward that may read it until its last holder lets it go, waits
pending until settle passes that token, and only then is free; the
lease's promise for it comes back at settle, so no count names a
page that is not free and no run takes a pending page. The state
lives in one field, allocated at a pool's first retire.
P4 of #2444: a window helper lays a family's sliding layers out as
bands in pool pages of its full pages' rows, each band its own table
on one page-major lease. Before each forward it retires the pages no
kernel can load again and covers the rows ahead, all or nothing, and
it hands a keep each band's pages from the window's first loaded row.
P4 of #2444: the head dim 256 paged attention kernels already start
at a window's first key and find each key's page by its absolute
position, so the host now admits a window with pages there. Contract
cells and a device test show the paged path gives the ring kernel's
bits, with NaN in every page below each window, so no kernel reads a
page a stream has retired.
Window.step settled its own forward's token before that forward ran,
and settle is pool-wide, so it could free another lease's page
retired under the same token while that forward might still read
it. A step now only retires under its token; the caller settles the
token once the forward's work is done, before the window's next
step, and the window's promise covers one step's retired pages until
then. Tests settle after each forward, show a page retired for
forward t staying out of take, runs and available() until settle(t),
and show a full pool's credit backed by reclaiming a kept page.
reclaimable() subtracted waiting(), which scanned every page of the
pool once any page had been retired. The retire state now keeps a
list of the pages that carry a token, each with its place in the
list, so waiting() scans only those and a page leaves the list in
constant time when its token clears. The scan oracle checks the list
and waiting() against a full scan, and the first retire's allocation
failures are covered at all five allocations.
Since 1.1.2 the recipe has said the opt-in --kv-cache fp8 cache's
native quality and device qualification are pending. This receipt
measures both on FP4-Local at main 3a56d4e on two GB10: over
360,418 teacher-forced positions the FP8 cache keeps the mean NLL
within 0.06% of the BF16 cache with a top-20 KL of 0.016, a third of
the 0.043 between NVIDIA's NVFP4 and FP4-Local, a BF16 rerun gives
the same bytes, and drafted, concurrent and resumed replies stay
token-equal. The recipe and ledger lines now cite it; the default
stays BF16.
The FP8 latent cache changes all three golden replies against the
BF16 cache, and a token-changing mode cannot be qualified, even as an
opt-in, so the recipe, the optimization ledger and the receipt's scope
now call the measurements diagnostic evidence of how far FP8 moves and
say BF16 stays the only qualified cache; no number or file changes.
The "about a third smaller" figure divided a whole stream's 1.08 GiB,
231 MiB of fixed per-stream state included, by the window and set it
against the BF16 page bytes alone; the recipe, the ledger and the
receipt now give the cache's own 6,960 bytes a token on each rank
against 13,056 (-47%), from cacheBytes and the 12 latent caches, with
the fixed 231 MiB a stream stated beside it.
@ashhart

ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

Landed: #3353 #3432 as main 6bc82ac. This PR only carried their CI.

@ashhart ashhart closed this Nov 16, 2026
@ashhart
ashhart deleted the lead/train-1116130815 branch November 16, 2026 14:03
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