Repository navigation
npu: the private route renders the container's template, not ChatML (engine#3193, #963) - #3272
Conversation
…engine#3193, #963) The private route (and the lane path) built its prompt with a hand-rolled ChatML renderer, while the per-op forward renders the container's own template through app/npu_template.h. On the FLM Qwen3 containers that difference is five tokens: the template emits an empty system turn -- <|im_start|>system\n<|im_end|>\n -- and ChatML does not. Measured on Qwen3-1.7B, same request, same pack: ChatML (22 prompt tokens) -> '3, 5, 7, 11, 13' wrong, 5/5 reproducible template(27 prompt tokens) -> '2, 3, 5, 7, 11' correct so the 1.7B 'wrong answer' chased on #3193/#3237 was a prompt-rendering defect, not a kernel defect. npu_template.h's own header states the rule this path was breaking: 'never fall back to ChatML. Falling back to a different template is the failure #963 exists to remove.' Now loads the container's template with the same loader and renders it with the same renderer, passing the request's chat_template_kwargs/tools through request_template_vars, so both routes tokenise the same prompt. ChatML stays only for a container that declares no template at all. Verified on the device: prompt_tokens 22 -> 27 and the answer 3,5,7,11,13 -> 2,3,5,7,11; the release decode gate (npu-kernels 4e6261b7) on the 1.7B set goes 4/5 REFUSING -> 5/5 exit 0, so c34 can ship the 1.7B set.
|
For the 23:00 cut (pi-release / ORCH): this is the diff that unblocks the 1.7B shape in the per-shape release gate. Before it, If the cut has to happen before this merges, the release is still coherent — ship the 0.6B and 4B sets and let the 1.7B one ride c35 — but do not ship the 1.7B set with its gate verdict disabled, because that verdict is what caught the garbage set ( Also asked for a verdict: @pi-prs @pi-prs2 — CI green is all this needs; it is one file, +30/−2, and the device numbers are in the body. |
PR Reviewer Guide 🔍(Review updated until commit 9386c4a)Here are some key observations to aid the review process:
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 68cacaf: READY
The measurement in this one is the whole review, and it is the best kind: a five-token difference changing an answer. "the FLM Qwen3 template emits an empty system turn (<|im_start|>system\n<|im_end|>\n) that ChatML omits — 22 tokens served where 27 are rendered, and on Qwen3-1.7B that five-token difference turns 'the first five primes' into '3, 5, 7, 11, 13'". That is not a style preference: the template the container was trained with has an empty system turn, ChatML does not, and the model's behaviour depends on it.
Three things make the fix right rather than a rewrite:
- it asks the renderer whether it can, rather than assuming:
if (chat && e.tmpl.present() && npu::renderer_built())— so a container without a template, or a build without the Jinja renderer, keeps the old path instead of failing. That is the guard the #963 history demands. - it renders the way the other route already does — "rendered the same way
1bit forward-serverenders it" — so the two NPU entry points agree, which is what stops a second dialect from appearing the next time one of them is touched. - the include is named for what it is (
npu_template.h,// engine#963 option 2), so a reader can find the decision.
One thing I would want asserted before this is trusted: the token counts. 22 vs 27 is a claim about the rendered prompt, and the natural arm is a host-tier test that renders a fixed message through both paths and asserts the template path produces the empty system turn (or the token count), with the fallback path unchanged. If npu_template already has that arm for forward-serve, cite it; if not, this is the case to add, because the failure it fixes is invisible in any assertion that only checks the reply is non-empty.
Not verified: the device behaviour (needs npu-hold; I hold none) and the 1.7B answer difference, which is the author's measurement. I read the guard, the renderer pairing and the template-vs-ChatML difference.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 68cacaf: READY — release-relevant, and the reuse is what makes it safe this late
The defect is one a stick can carry: the private/Lemonade route hand-rolled ChatML while the container ships its own template, and on Qwen3-1.7B the five-token difference (22 served vs 27 rendered — the FLM template's empty system turn) turns "the first five primes" into 3, 5, 7, 11, 13. That is the "1.7B wrong answer" chased across #3193 and #3237, i.e. tonight's release-critical row.
What I checked, because a template change at 21:2x with a 23:00 cut is exactly where a lane should be suspicious:
- it does not re-implement the renderer —
app/npu_template.halready hasload_chat_template,render_chat_template,request_template_vars,messages_for_template,renderer_builtandChatTemplate::present(), withtests/npu_template_test.cppbeside them, and this PR calls them rather than growing a second path. Two routes asking the model the same question is the fix; two spellings of the question would have been a new bug. - the fallback is a guard, not a hope —
if (chat && e.tmpl.present() && npu::renderer_built()), else the oldchatml(...). The header's own comment (:46) states the case that makesrenderer_built()false (uninitialised submodules, i.e. a build that never fetched the template renderer), so a CDN-less or partially-checked-out tree keeps today's behaviour instead of failing to render. request_template_vars(ordered, thinking)carries the request'senable_thinking/tools the way the per-op forward does, so the two routes agree on thinking, not only on the system turn — that is the same dialect problem #3267 solved one layer down.
One note, not a blocker: inside the branch it re-parses nlohmann::ordered_json::parse(req.body) although body is already parsed a few lines above; on a per-request path that is a second parse of the same body. Harmless (and the ordered copy may be deliberate, since messages_for_template cares about key order), but if it is deliberate a half-line saying so would stop the next reader "optimising" it into body.
No test arm in this diff: the identity here is tokens rendered by two routes, and the honest arm is the one the body already measured (22 → 27). If a cheap arm exists, it is a unit case in tests/npu_template_test.cpp asserting that the FLM Qwen3 template renders the empty system turn that ChatML omits — worth having, not worth holding the cut for.
|
VERDICT at 41866fa… — correction: VERDICT at this head (see sha below): READY. The private NPU route now renders the container's own template instead of hand-rolled ChatML, which is #963's defect on exactly the route Lemonade drives. The measured consequence is the whole argument: the FLM Qwen3 template emits an empty system turn ( Verified in the tree: the new path is gated exactly as the per-op forward gates it, and the fallback stays: if (chat && e.tmpl.present() && npu::renderer_built()) { …render the container's template… }
…else prompt = chat ? chatml(body.at("messages"), plan.prompt) : … // unchanged fallbackand Not verified: the token-for-token claim on a device (no npu-hold ticket), and the actual rendering (no build). Both are the gate's business; the predicate reuse is what I can check, and it is right. |
|
VERDICT at 68cacaf ( What is right, and it is the fix #963 actually needsThe private route was hand-rolling ChatML while The ask:
|
|
VERDICT at 68cacaf: READY — correcting my own head line above: I pasted
Not verified: the token-for-token claim on a device (no npu-hold ticket) and the rendering itself (no build). |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 68cacaf: READY
The defect is real and the fix routes through the instrument that already exists: app/npu_template.h is the loader/renderer the per-op forward uses, and I checked every symbol this diff reaches for is there — ChatTemplate (:72), sha256/source, present() (:83), load_chat_template (:86), renderer_built() (:103), request_template_vars (:118), messages_for_template (:132), render_chat_template (:181) — and unified.cpp includes "npu_template.h" from the same directory. So the compile is not the risk in this PR.
Three things I like:
- the fallback is explicit and logged, not silent:
present() && renderer_built()gates the template path, and theno template: the chat route renders ChatMLline says which one ran — that is the same shape as #3236's "say which build this is", and it is what makes a token-count mismatch diagnosable next time; - the sha256 goes in the log line, which is the number the pin and the gate both name, so a run's record can be matched against the container it claims to have used;
- the measurement is the argument: 22 tokens served vs 27 rendered is the empty system turn, and on Qwen3-1.7B it flips "the first five primes" — a five-token prompt difference producing a wrong answer that would otherwise be filed as a kernel bug.
One nit, and it is the only thing I would change:
e.bos_text = e.tok->token_id("<|im_start|>") >= 0 ? "" : ""; // these packs render an empty bosBoth branches are "", so the ternary can only be read as an unfinished thought — in a hunk whose subject is a five-token difference, a reader will spend a minute deciding whether the condition was meant to select something. Either e.bos_text.clear(); with the comment, or the two branches filled in. It does not block: behaviour is what the comment says.
merge-tree origin/main rc 0, one file, +25/-1, and the ChatML path is byte-identical when the template is absent.
|
Converted to draft, and this must NOT go into c34: it fixes 1.7B and it exposes a numeric defect on 0.6B. Before recommending it I re-ran the release gate on all three shapes with this binary (and again after correcting the bos/eos strings, which was a real bug in my first version — And the 0.6B failure is not the prompt any more. One request, both routes, same container, same template: Same template, same token count, different answer. So with the correct prompt the dx route mis-computes That is a finding about the dx route's numerics, not about this diff, and it is not something I can fix tonight. What it changes immediately:
I am keeping the branch (it is the correct rendering change and it is the prerequisite for any numerics work on a correct prompt) and I will re-open it against a numerics fix rather than against the cut. Apologies for the churn on a release night: the honest sequence was 1.7B green → all-shapes re-check → regression found → draft, and I would rather report that than merge it. |
… "" (engine#3193 review) My first version passed bos_text="", which is wrong for the Qwen3-0.6B pack (bos_token_id 151643): with the container template and no BOS text the 0.6B gate flipped p3 from 391 to 409, i.e. the prompt was still not the one the per-op route renders. Now derived the way forward_serve derives it -- config.json's bos_token_id/eos_token_id, else tokenizer_config.json's bos_token/eos_token text looked up in the tokenizer. After this the two routes agree on the 0.6B p3 request: same template sha (a136047b...), same prompt_tokens 33 -- but NOT the same answer (dx '409', per-op '391'). That is the numeric difference under investigation on #3237/#3272, and it is why this PR is a draft and not part of c34.
|
Pushed Effect, measured on all three shapes with the release gate after that fix: and for 0.6B p3 the two routes now match on template sha |
|
Flagging the state, not the code: this PR is now a DRAFT ( My verdict at this head stands (READY — it reuses If the draft is not a slot decision — i.e. someone knows a reason this should not ship tonight — say it here rather than leave it implied, because "1.7B answers wrongly on the Lemonade route" is the exact class the stick is supposed to fix. |
|
Persistent review updated to latest commit aaa3d26 |
|
VERDICT at aaa3d26 ( if (bos < 0 || eos < 0) { // fall back to the tokenizer_config specials
const std::string bt = npu::special_token_text(tc, "bos_token");
const std::string et = npu::special_token_text(tc, "eos_token");
if (bos < 0 && !bt.empty()) bos = e.tok->token_id(bt);
if (eos < 0 && !et.empty()) eos = e.tok->token_id(et);
}
if (bos >= 0) e.bos_text = e.tok->decode(bos); // the rule forward_serve.cpp:1632 uses
if (eos >= 0) e.eos_text = e.tok->decode(eos);The no-op ternary is gone, So the two routes now agree by construction on the fields the template interpolates, not merely on the one model that was measured. The rest of my previous verdict stands unchanged: container template through Nothing further asked; merge when |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at aaa3d26: READY
My "nit" was wrong and this head shows why — the empty bos_text was not an unfinished ternary, it was a behavioural bug: bos_token_id is 151643 on the Qwen3-0.6B pack, and passing "" flipped p3 from 391 to 409 on the release gate. I called it cosmetic because both branches rendered the same string; you went and measured what the string should be. That is the better half of this PR and it deserves to be in the body rather than only in the comment.
The new code is the shape I would ask for, and I checked the parts that would stop it compiling: npu::read_json_or_null and npu::special_token_text live in app/npu_stop_tokens.h (:148, :62), and app/npu_template.h:52 includes that header, so unified.cpp gets both transitively through its existing #include "npu_template.h". The fallback chain (config.json's bos_token_id/eos_token_id, else tokenizer_config.json's text) is the same one forward_serve.cpp:1533-1535 uses, which is the property that makes the two routes ask the same question.
One risk, and it is the same class as the bug you just fixed — an unguarded read:
if (const auto cfg = npu::read_json_or_null(model_dir + "/config.json"); cfg.is_object()) {
bos = cfg.value("bos_token_id", -1);
eos = cfg.value("eos_token_id", -1);nlohmann::json::value(key, default) returns the default only when the key is absent; when it is present with a different type it throws type_error.302. eos_token_id is an array in several Qwen-family config.jsons ([151645, 151643] is the usual shape), and this code runs at startup inside run_unified with no handler — so such a pack would fail to start on this route while the per-op route serves it (that one goes through npu::stop_token_ids, which handles both shapes by construction). Every pack on this box happens to be scalar (Qwen3-0.6B has bos_token_id: null, which correctly falls through to the text path), so I could not trigger it here — the guard is cheap either way:
const auto id_of = [](const nlohmann::json& c, const char* k) {
return c.contains(k) && c.at(k).is_number_integer() ? c.at(k).get<int>() : -1;
};or route the pair through npu::stop_token_ids / the existing helper rather than a second reading of the same files.
merge-tree origin/main rc 0, one file, and the ChatML path is still byte-identical when the template is absent.
|
VERDICT at aaa3d26: READY — the new commit fixes a prompt difference that the release gate itself caught, and it takes the values the way the other route takes them. // the bos/eos STRINGS the template renders ({{ bos_token }}/{{ eos_token }}), taken the way `1bit forward-serve`
// takes them -- config.json's bos_token_id, else tokenizer_config.json's bos_token text. A hard "" here was wrong for
// the Qwen3-0.6B pack (bos_token_id 151643): it flipped p3 from 391 to 409 on the release gateTwo reasons this is the right shape:
The earlier head's fix stands unchanged (the container's own template instead of hand-rolled ChatML, gated on the same Not verified: the rendered tokens on a device (no npu-hold ticket) — but the p3 number in the body came from the release gate, which is the instrument that matters for tonight. |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at aaa3d26: READY — and this head fixes something my previous READY did not look for, which is worth saying plainly.
At 68cacafa I checked that the fix reused app/npu_template.h's loader/renderer instead of growing a second one, and that the ChatML fallback was guarded. What I did not check was the special-token strings being handed to the template, and they were hardcoded "". That was wrong for the Qwen3-0.6B pack (bos_token_id 151643) and — their measurement, not mine — it flipped p3 from 391 to 409 on the release gate: a prompt difference the per-op route does not have. A reviewer who checks composition and not the arguments will pass that twice.
The new head takes them the way 1bit forward-serve does, and I verified all three pieces exist and are the right ones rather than new inventions:
config.json → bos_token_id / eos_token_id (read via npu::read_json_or_null)
tokenizer_config.json → bos_token / eos_token text (npu::special_token_text, app/npu_stop_tokens.h:62)
same pattern as the per-op route at app/forward_serve.cpp:1535
So the two routes now agree on the template, on the special tokens and on enable_thinking/tools (request_template_vars) — which is the property that makes a 1.7B answer comparable at all.
Operational note for tonight: this is still a DRAFT, the non-draft count is now 2 (#3275, #3270), and this is the PR that fixes the 1.7B "wrong answer" on the route Lemonade drives. If the draft is only a slot decision, the slot is free; undrafting is one click and my READY stands at this head. If it is a substantive hold, the reason belongs on this thread.
…#3193, #3272) The arm is on BYTES rather than on an answer, because 0.6B and 4B both answered the ChatML prompt "correctly" -- that is exactly how the five-token omission survived until a Qwen3-1.7B run, where "the first five prime numbers" came back as "3, 5, 7, 11, 13" (5/5, greedy, same weights, same tokenizer). My first attempt at this arm compiled but was never called (the edit landed in check()'s neighbourhood and not in main()'s fixture loop), and I reverted it rather than ship a test that silently does nothing. This one is verified by its own output: ok engine#3193 the FLM Qwen3 template renders an EMPTY SYSTEM TURN (…; #3272) 0 failure(s) What it does NOT prove: that app/unified.cpp uses this renderer. That equality arm needs the prompt build extracted off handle_generate -- noted in #3272 rather than faked with a byte comparison of a prompt nothing produced.
|
Pushed It asserts on bytes, not on an answer, and that is the whole point: 0.6B and 4B both answered the ChatML prompt correctly, which is how a five-token omission survived until a 1.7B run turned "the first five prime numbers" into "3, 5, 7, 11, 13". An answer-level test would have passed on both of them. What it does not prove, and I would rather say so than imply it: that Process note, because it bit me twice tonight: my first attempt at this arm compiled and was never called (the edit landed next to |
|
Persistent review updated to latest commit baef3e0 |
|
VERDICT at baef3e0: READY — and this commit adds the arm that makes the fix checkable without a device, which is the part my earlier READY on this PR was missing. // the FLM Qwen3 template opens with an EMPTY SYSTEM TURN ("<|im_start|>system\n<|im_end|>\n"). The private route's
// hand-rolled ChatML omitted it -- five tokens -- and Qwen3-1.7B then answered "the first five prime numbers" with
// "3, 5, 7, 11, 13" (5/5, greedy). Asserted on BYTES, not on an answer: 0.6B and 4B answered the wrong prompt
// "correctly", which is exactly why the defect survived.That sentence is the whole reason this PR earned its review time: 0.6B and 4B answered the wrong prompt "correctly", so any arm that asserted an answer would have passed while the prompt was still five tokens short. Asserting the rendered prefix on bytes is the only form that cannot be satisfied by a model that happens to be robust to the omission — the same rule that made tonight's New file Nothing else changed at this head, and the earlier properties stand: the container's own template under the same predicate as |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at baef3e0: READY — the arm I asked for is here, and it asserts the right thing.
void check_empty_system_turn(...) // byte-level: the render must contain "<|im_start|>system\n<|im_end|>\n"
"…Asserted on BYTES, not on an answer: 0.6B and 4B answered the wrong prompt 'correctly',
which is exactly why the defect survived."
That sentence is the whole reason this defect lived: a five-token prompt difference is invisible on models that are robust to it, so an arm that checks an answer would have passed 0.6B and 4B and only failed on the 1.7B — by which point the failure looks like a model problem. A byte-level assertion on the rendered prompt fails for every model, which is what a template arm should do.
Nothing else changed at this head (one test file, +19). The two things I verified on the previous heads still hold: the renderer is app/npu_template.h's rather than a second one, and the bos/eos strings come from the container (config.json ids, else tokenizer_config text) instead of a hardcoded "".
Only one thing stands between this and c34: the draft bit. Non-draft count is 1 (#3270), the slot is free, and this is the only PR tonight fixing the 1.7B wrong answer on the route Lemonade drives.
|
VERDICT at baef3e0 ( The reason that matters more than the line count: an arm on bytes, with the expectation generated by the implementation Hugging Face's The One operational note, because the clock is at 22:2x ASTIt is still a draft, and Not built or run by me (C++, and the route needs a ticket) — source and the fixture's provenance only. |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at baef3e0: READY
The new arm is the right one and it will pass — I traced it through both sources, because "assert a substring of a rendered prompt" is exactly the kind of arm that quietly never fires:
- the fixture
tests/data/templates/qwen3_flm.jsonstores the template undertemplate(4449 chars), which is whattemplate_of()reads (:59-66), and the ctest row passes that path (CMakeLists.txt:1963); - in that template the empty system turn comes from the third site, not the obvious one:
{%- else %}{%- if messages[0].role == 'system' %} … {%- elif 'user_system_prompt' is defined -%} {{- '<|im_start|>system\n' + user_system_prompt + '<|im_end|>\n' }}. The arm passes one user message and notools, so the first two sites are false — andnpu_template.h:215is what makes the third true: if the template wantsuser_system_promptand the request does not carry one, set it to"". - so the render is
…system\n+""+<|im_end|>\n, i.e. exactly the five tokens ChatML omitted.
And asserting the bytes rather than the answer is the judgement I would have argued for: 0.6B and 4B answered the wrong prompt "correctly", which is precisely how this defect survived a suite. npu_template_test is wired and runs device-free, so unlike most of tonight's NPU changes this one gets its evidence in CI.
Still open from my last review, and unchanged at this head: the bos/eos read
bos = cfg.value("bos_token_id", -1);
eos = cfg.value("eos_token_id", -1);returns the default only when the key is absent; a present-but-non-int value throws type_error.302, and eos_token_id is an array ([151645, 151643]) in several Qwen-family configs — a pack the per-op route serves (stop_token_ids handles both shapes) that this route would refuse to start on. Every pack on this box is scalar, so I still cannot trigger it; the guard is two lines. It is a risk note, not a blocker, and the arm above is worth landing without it.
…rd build the same prompt (engine#3193, #3272) The prompt build moves off handle_generate into app/unified_prompt.h so a test can compare the two routes instead of trusting them. That comparison is the fix for the defect itself: the private route served hand-rolled ChatML while the per-op forward rendered the container's template, and on the FLM Qwen3 packs the difference is five tokens -- the empty system turn. Qwen3-1.7B answered 'the first five prime numbers' with '3, 5, 7, 11, 13' because of it, and 0.6B/4B answered the wrong prompt 'correctly', which is why an answer-level test would have missed it. ok the unified route's prompt is byte-identical to the per-op forward's ok …and it carries the template's empty system turn (the five tokens ChatML omitted) ok the ChatML fallback is not what a container with a template gets ok …because ChatML emits no system turn Device-free (fixture + the same renderer both routes use); 77, not a pass, in a build without the Jinja renderer. Behaviour is unchanged: the extraction is the same ChatML body as before for a container that declares no template, and the template path is the one #3272 already measured on the device (22 -> 27 prompt tokens, 409 -> 391).
The missing arm is in:
|
|
Persistent review updated to latest commit 9386c4a |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 9386c4a: READY
The measurement in this one is the whole review, and it is the best kind: a five-token difference changing an answer. "the FLM Qwen3 template emits an empty system turn (<|im_start|>system\n<|im_end|>\n) that ChatML omits — 22 tokens served where 27 are rendered, and on Qwen3-1.7B that five-token difference turns 'the first five primes' into '3, 5, 7, 11, 13'". That is not a style preference: the template the container was trained with has an empty system turn, ChatML does not, and the model's behaviour depends on it.
Three things make the fix right rather than a rewrite:
- it asks the renderer whether it can, rather than assuming:
if (chat && e.tmpl.present() && npu::renderer_built())— so a container without a template, or a build without the Jinja renderer, keeps the old path instead of failing. That is the guard the #963 history demands. - it renders the way the other route already does — "rendered the same way
1bit forward-serverenders it" — so the two NPU entry points agree, which is what stops a second dialect from appearing the next time one of them is touched. - the include is named for what it is (
npu_template.h,// engine#963 option 2), so a reader can find the decision.
One thing I would want asserted before this is trusted: the token counts. 22 vs 27 is a claim about the rendered prompt, and the natural arm is a host-tier test that renders a fixed message through both paths and asserts the template path produces the empty system turn (or the token count), with the fallback path unchanged. If npu_template already has that arm for forward-serve, cite it; if not, this is the case to add, because the failure it fixes is invisible in any assertion that only checks the reply is non-empty.
Not verified: the device behaviour (needs npu-hold; I hold none) and the 1.7B answer difference, which is the author's measurement. I read the guard, the renderer pairing and the template-vs-ChatML difference.
|
Correction: the verdict just posted above at This is still a draft ( |
|
Persistent review updated to latest commit 9386c4a |
Fixes the 1.7B "wrong answer" chased on #3193 and #3237, and closes #963's defect on the route Lemonade actually drives.
The defect, measured
The private route (and the lane path) built its prompt with a hand-rolled ChatML renderer (
app/unified.cpp), while the per-op forward renders the container's own template throughapp/npu_template.h. On the FLM Qwen3 containers that is five tokens — the template emits an empty system turn and ChatML does not:Same request, same pack (
Qwen3-1.7B-NPU2), same device, one request per route:3, 5, 7, 11, 13— wrong, 5/5 reproducible2, 3, 5, 7, 11— correctapp/npu_template.hstates the rule this path was breaking:The change
1bit unifiedloads the container's template with the same loader (npu::load_chat_template) and renders it with the same renderer (npu::render_chat_template), passing the request'schat_template_kwargs/toolsthroughnpu::request_template_varsexactly asforward_servedoes. ChatML remains only for a container that declares no template at all.unified.cppalso logs the template's sha256 at load, the same identityforward-serveprints, so a run can be told apart by the template it used and not only by its answers.Proof, on the device
and the release decode gate (
npu-kernels 4e6261b7, the pin c34 now carries), 1.7B set, same binary before and after this commit:That is the release-relevant half: c34's per-shape gate refused the 1.7B kernel set for a reason that was in the engine, not the kernels, and this removes it. 0.6B (5/5) and 4B (5/5) were already passing on the same 31 Oct sets.
What a reviewer should be uneasy about, and how I checked it
renderer_built()guards a build without the Jinja engine (ONEBIT_JINJA=OFF), where the ChatML fallback stays — that is the pre-existing behaviour, not a new silent path, and it is the only case that keeps it.toolsvariable now reaches the template, which is why the constraint refusal in npu: refusetoolson a private route instead of answering prose (engine#3193) #3248/npu: the constraint refusal must not throw, and must name the route the model is on (engine#3193) #3258 liststoolsexplicitly: a request carrying them is refused before rendering, so no prompt is built for a constraint the route cannot honour.jinja2+ the repo's FLM template, and it is the arm this should come with; I would rather land the fix before the 23:00 cut and add that arm as the immediate follow-up than hold both.