Repository navigation
Conversation
…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.
Owner
Author
|
Stopped at #3345. |
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: #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.