Repository navigation
Conversation
The engine kept a prompt cache but advertised no warm turns, so the server never prefilled the next turn's rendering and a follow-up that re-renders earlier rows prefilled the whole conversation again. The capability now follows the cache's presence; the cache rules are unchanged.
… the completed prefix A warm pass ran to the end of the prompt instead of stepping aside when foreground work arrived: the loop checked cancellation but never the yield hook its background passes wire. The pass now keeps its completed prefix and returns error.Yielded at the boundary; the next pass resumes the kept mark.
A planned store kept a warm end off the grid, and under a one-snapshot budget the unusable end evicted the usable mark: the next request resumed at zero. The rules now set warm_usable, and the one-snapshot regression stays.
…prose Tool-call openers quoted inside Markdown inline code spans (`...`) or fenced code blocks (```...``` or ~~~...~~~) in generated assistant prose were treated as live call openers. Quoted `<tool_call>` tags paired with a following real call's `</tool_call>` and rejected it, quoted `<tool_call>NAME<arg_key>...` fragments naming an offered tool streamed bogus arguments, and complete quoted calls inside prose or code blocks executed as tool calls. Add a linear-time Markdown code-span and fence scanner (reply_code.zig) and wire it into whole parsing (tool_parse.zig), streaming call deltas (tool_stream.zig), single-call prose filtering (tool_policy.zig), prose hiding and thinking-tail lifting (reply_text.zig, reply_tool_tail.zig), LFM2 rewrites (tool_lfm2.zig), logprob ranges (logprob_parts.zig), and EOS call closing (chat_generation.zig). While streaming, an inline backtick span containing a tool opener waits until a matching closer confirms code or a paragraph break or end proves it literal. zig build test-tool-parse-host test-tool-visibility-http-host test-thinking-tail-host, zig build test test-golden dev-tools -Dcpu=apple_m1, zig fmt --check build.zig zig, and python3 tools/pr_check.py --base origin/main pass.
… a 4096-row-multiple end The Qwen3.5 CUDA family declared no warm pass, so the server never ran one for it. Both entry points now declare `warm_quiet` (150 ms) and `warm_usable`, `cuda_snaps.cacheRules` reads a family's `warm_usable`, and a CUDA host takes the family's own wait instead of Nemotron's. What the pass keeps is the narrow part: a request's chunk starts never reach its own end, and this family's grid is 4096 rows, so the end survives only when the prompt is an exact multiple of it. A turn under 4096 rows keeps nothing and is cancelled before it runs; a 5000-row turn keeps its 4096 mark but not its end. `prefillFn`'s whole text pass is fixed on main (#2838); this branch carries the enablement only, and #2873's foreground yield goes first. Host tests: the declarations on both entry points, and a family's warm rules and its own wait. Refs #2812
Share the existing chat chunk-start expression through Plan.request. A warm pass computes its own system prefix and uses that same plan, so request-starts caching does not skip the system cut on the background path. The host regression compares warm-prefix and later-request cuts with a 600-token system prefix. Skipping the cut fails the test; preserving it gives the same starts below the warm end. Refs #2812
ashhart
force-pushed
the
lead/train-1117014129
branch
from
November 17, 2026 03:03
9eec9ad to
8d9aa22
Compare
Owner
Author
|
Stopped at #3457. |
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: #3457 #3560 #2979 #3588 #2824 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.