Repository navigation
Conversation
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.
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: #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.