Skip to content

train 1115095439: #3318 #3321 #3345 #3365 (CI only) - #3416

Closed
ashhart wants to merge 10 commits into
mainfrom
lead/train-1115095439
Closed

ashhart wants to merge 10 commits into
mainfrom
lead/train-1115095439

Conversation

@ashhart

@ashhart ashhart commented Nov 15, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3318 #3321 #3345 #3365 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.

…ayers before them run

A prompt chunk with nothing staged used to read both Engram layers' rows on the host before its command
buffer started. It now writes the ids, starts every Engram layer's reads, commits the layers before the
first Engram layer, reads that layer's rows while they run, and so on: the chunk becomes up to three command
buffers on one queue, each committed once the rows it reads are written. Chunks filled ahead keep one.
…reports a failure

Review (D894): Chunk.wait returned at the first failed buffer while later ones could still run when the caller
reused the input set or freed its buffers.
The prompt scratch and buffers, each slot's KV regions, tail and taps, the forward buffers, the layer scratch
and the RoPE tables were in no residency set, so macOS could unmap them between command buffers and map them
again when the next one was submitted. Target.init now holds them in one residency set on the engine's queue
(requested resident at once), and deinit removes it before the buffers go.
…ide its load limit

Review (D894): the target's own residency set bypassed the 70% wired budget the weights' Resident enforces. The
target now hands its buffers to that owner (Resident.tryAddNow), which refuses and logs a join past its limit, and
removes them from it before they are freed; boot passes the owner through serve.Parts.
…urn and before a thinking prompt's <think>

A thinking prompt ends in <|Assistant|><think>, and the next turn renders that turn as <|Assistant|></think>..., so the
whole-prompt entry was never a prefix of a follow-up and every thinking turn read the whole conversation again. A new
conversation sharing the system prompt and tools found nothing either. Prefill now runs the prompt in up to three parts
and keeps a state at each cut (before the first <|User|> once the system part is 256 tokens or more, and before the final
<think>); the resume path is the one cached prompts already take.
Metal's served model fixed its calibration knobs to the built-in table, so a cost table measured on the serving
machine could not be used. It now passes TF_DSV41_CALIB_FILE through when set (the cached path that already reads
such a file); unset, the built-in table as before.
@ashhart

ashhart commented Nov 15, 2026

Copy link
Copy Markdown
Owner Author

Stopped at #3345.

@ashhart ashhart closed this Nov 15, 2026
@ashhart
ashhart deleted the lead/train-1115095439 branch November 15, 2026 11:14
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.

1 participant