Skip to content

train 1116000144: #2989 (CI only) - #3488

Closed
ashhart wants to merge 9 commits into
mainfrom
lead/train-1116000144
Closed

ashhart wants to merge 9 commits into
mainfrom
lead/train-1116000144

Conversation

@ashhart

@ashhart ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner

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

jschmied and others added 9 commits November 16, 2026 00:42
…m leasing

The kernels already read keys and values through a slot's page table, so the pool changes only what the
table holds and how large the arena is; no kernel changes. A page is 512 positions of the ten attention
layers' keys and values (10 MiB, 20 KiB a token); the conv states stay a fixed part a slot (240 KiB).

- Loaded.layout with engine_paged, as Dory's: the plan sets a window of pages aside for the first stream;
  each stream leases its prompt, its reply and one verify window at its prompt pass and gives them back
  when it ends. A request that cannot lease waits (LaneMemory); fits is the host's admission.
- Model.attach makes the arena and the tables and conv states of the slots the plan names; forward refuses
  rows past a slot's pages. The idle server logs the pool's census.
- TENSORFOLD_LFM2_KV_PAGES=0 keeps every stream's own window of pages, made at open.

Served on the GB10 at --parallel 8, 16k: drafted == plain and concurrent == solo, also with 8 long prompts
on a 52-page pool where the last waits for pages; the replies equal the fixed pages' ones.
…the pages' rows through its position

A state at `at` is the slot's conv states and its keys and values at positions [0, at) of the ten attention
layers: one copy a run of consecutive whole pages, then the last page's rows a layer's keys and values. It is
copied behind the chunk that ends at the mark and restored into the new stream's leased pages before its next
chunk, so a later turn's pass starts at its history. Lookahead 0, as the other headless families.

States live in 2 MiB snapshot pages allocated once at startup inside the prompt-cache budget (`snap_ready`), as
GLM's: a keep or a restore leases or reads pages and allocates nothing, and a dropped state's pages go back to the
pool at once (every copy that reads or writes them is queued on the backend's one stream). The store counts held
and spare pages through `snap_charged` / `snap_spare` / `snap_reuses`.
…dds no pass

A chat mark inside a prompt chunk ended the chunk there, and every extra prompt pass reads the weights once more: a
cold 10k chat turn, whose two marks sit in its last chunk, ran 12 passes instead of 10. Now up to four marks inside a
chunk are tapped instead: the conv kernel runs once more on each mark's last row alone, writing the same y and that
row's conv states into the model's tap buffer, and the keep copies those states with the K/V rows before the mark.
The pass goes on to its grid line; a fifth mark still ends it. The kernel is unchanged.
…hich waits for the keeps

A clear, a chunk, a one-row step, a verify round and a commit each queue on the stream fenced() hands back,
after the keeps' copies queued so far. A host test reads the backend's writes and fails on one queued on
the prompt stream without the wait; each of the five planted that way goes red.
@ashhart
ashhart force-pushed the lead/train-1116000144 branch from ff315de to f81c631 Compare November 16, 2026 00:42
@ashhart

ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

Landed: #2989 as main b4f1bf2. This PR only carried their CI.

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