Skip to content

serving: MODEL.toml [behavior] keys to serve like the reference server; qwen3.8-flash-next adopts them - #271

Merged
AzeezIsh merged 8 commits into
Atlas-Inf:mainfrom
Enntity:sq-pr/ref
Oct 30, 2026
Merged

AzeezIsh merged 8 commits into
Atlas-Inf:mainfrom
Enntity:sq-pr/ref

Conversation

@data-angel

Copy link
Copy Markdown
Contributor

Part of #220.

What

Three MODEL.toml [behavior] keys, plus max_thinking_budget = 0 meaning "no server budget". Every default keeps today's behaviour, so other models are unchanged.

  • verbatim_prompt: render the conversation through the template exactly as the client sent it. No parser tool prompt beside the template's own tool block (the tool list was rendered twice), no tool-result hints, and tojson spaced as transformers renders it.
  • eos_ends_thinking: an end token inside <think> ends the turn.
  • tool_call_steering (default true): false drops the <tool_call> bias and the loop mask.

A separate commit (qwen3.8-flash-next: serve the reference server's behaviour) turns these on for qwen3.8-flash-next. It also sets generation_config sampling on every row (1.0 / 0.95 / top-k 20, no presence penalty), matching vLLM over the checkpoint's own template. It is kept apart so it can be taken or dropped on its own.

Ported from SparkQwen's engine: a7ef4dc, c971499, 5de9611, f10eda6, a7f4b28, e40b8d7.

Why

SparkQwen 0.4.0 serves the reference server's prompts. On main, Qwen3.8-Flash-Next instead got:

  • the tool list twice;
  • a 2048-token thinking budget;
  • presence penalty 1.5 on tool and non-thinking rows.

On the 10-28 candidate, a greedy streamed tool call was lost on 8/8 runs.

Benchmarks

Fingerprint (every number below). ennspark03/04, two GB10s at TP=EP=2 over RoCE, 2026-10-29. Checkpoint nvidia/Qwen3.8-Flash-Next-FP4-Local. Served by the SparkQwen launcher, profile 8x32k (--speculative --num-drafts=7 --max-num-seqs=8 --max-seq-len=32768 --max-prefill-tokens=16384 --kv-cache-dtype=bf16 --gpu-memory-utilization=0.88 --enable-prefix-caching), Strict and Spark modes.

  • Baseline: SparkQwen 0.4.0, engine Enntity/atlas 9b25f57, image atlas-sparkqwen:3e0d9e7e4b29.

  • Candidate: Enntity/atlas enntity-stack/sq-integ cf4200e = Atlas-Inf main a12bffa plus this PR series, image atlas-sparkqwen:cc103bd6cc92.

  • Harness: SparkQwen bench/sq_bench.py: streamed, temperature 0, reasoning_effort low; decode = 384-token prose/code/JSON, 3 reps; cold TTFT at 2K/8K/16K/28K, 2 reps; aggregate decode at C1–C8, 256 tokens per stream, 2 reps; warm 8K/20K conversations. Medians per cell. Plus greedy_eq.py (8 prompts, 320 tokens, temp 0) and lp_dump.py (echo prompt logprobs at 1K/6K/20K tokens).

  • Baseline and candidate arms interleaved on the same pair in one session.

  • One box and one harness, so these are observations under this fingerprint, not cross-validated claims.

  • reference_prompt_tests.rs pins the rendered prompt bytes against qwen3.8-flash-next-fp4-local.cases.json (golden from transformers, scripts/qwen38_flash_next_template_golden.py). Main failed 21/27 cases before this PR and passes 27/27 after.

  • With the series, SparkQwen's tool probe passes 7/7, including the streamed tool call.

  • Outputs are byte-identical to 0.4.0 (table below).

Whole series vs SparkQwen 0.4.0 (arms q-040-* / q-fix-*):

Strict 0.4.0 Strict main+series Spark 0.4.0 Spark main+series
greedy text, 8 prompts 8/8 identical 8/8 identical
prompt logprobs (1K/6K/20K) max |Δ| 0.0000 max |Δ| 0.0000
decode prose / code tok/s 54.1 / 77.7 54.2 / 77.8 61.0 / 86.8 61.6 / 92.9
cold TTFT 2K / 16K / 28K s 0.681 / 3.94 / 6.92 0.677 / 3.95 / 6.99 0.673 / 3.90 / 6.88 0.673 / 3.94 / 6.94
C1 / C2 / C4 / C8 tok/s 51.3 / 83.5 / 131 / 192 51.3 / 83.4 / 130 / 189 58.1 / 88.5 / 139 / 192 58.8 / 89.2 / 139 / 202

For reference, Atlas-Inf main c998a49 with the same launcher measured −9..−12% at C1, −15% at C2, −21..−25% at C4 and +21% cold TTFT against 0.4.0 (2026-10-29, same pair and harness).

Tests

  • New tests, each seen failing first:
    • the thinking-budget tests;
    • the eos-in-think test;
    • a steering sampling-setup test;
    • the reference prompt tests.
  • A shared neutral AppState for request-path tests.
  • fmt, clippy and doc pass. The atlas-kernels tests pass.
  • spark-server passes except the known environment-only failures that main shows in a container (bench_selfstart git-checkout detection, bench_variants ×2).

Authorship

AI-authored (Claude Code), ported from SparkQwen's AI-authored engine. No human-written code.

🤖 Generated with Claude Code

data-angel and others added 8 commits October 29, 2026 21:23
…h tests

api::test_app_state builds the text-only, tool-free AppState a request-path
test starts from, so a test sets only the fields it exercises, and hosts the
one #[path] include of the build-time MODEL.toml parser (a second include of
the same file is clippy's duplicate_mod). The GLM tool-boundary tests build
their state from it and glm_natural_end_tests reads the parser from there.

Ported from Enntity/atlas 6e9bd90.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nce engine

Three per-model keys, each defaulting to today's behaviour, for a target
whose reference server (vLLM over transformers) does none of Atlas's
prompt aids or decode steering:

  verbatim_prompt     the template renders the client's request unedited,
                      tojson spaced like json.dumps
  eos_ends_thinking   an end token inside <think> ends the turn
  tool_call_steering  Atlas's <tool_call> bias and loop mask

and atlas_kernels::thinking_ceiling: max_thinking_budget = 0 means no
server thinking budget. Parsed at build time like every [behavior] key;
the consumers follow.

Ported from Enntity/atlas a7ef4dc, without default_reasoning_effort (see
the verbatim_prompt commit).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A budget of 0 (MODEL.toml or --max-thinking-budget) now means the server
sets none, as the reference engines do: an effort-silent or budgetless
request thinks until it closes </think> or reaches max_tokens, a
reasoning_effort level picks only the template's tier, and the 90% clamp
has nothing to clamp. A client's explicit token budget
(thinking_token_budget, thinking.budget_tokens, chat_template_kwargs
thinking_budget) still binds. Template-forced thinking and a spontaneous
<think> (first entry and re-entry) get no budget either; they read Some(0)
before, an immediate forced close. Every target that sets a budget is
unchanged; none sets 0 today.

thinking.rs's tests move to thinking/tests.rs (500-LoC cap).

Ported from Enntity/atlas a7f4b28 and 0a0de61.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the client sent it

For a target whose reference server is vLLM over transformers, the prompt
must be the checkpoint template's render of the request and nothing else.
Under verbatim_prompt:
  * no parser tool system prompt or tool_choice instruction beside the
    template's own tool block (a template-owned tool list rendered twice);
  * tool results reach the template unedited: no [tool error] marker,
    error hints or duplicate-error masks;
  * no cwd hint appended to the system message, no content-free system
    message dropped, no bash-wander nudge;
  * the request's tools are rendered whenever it has any, tool_choice
    "none" included, as vLLM renders them;
  * the template's tojson is Python's json.dumps (spaced, unescaped), as
    transformers renders it, instead of minijinja's compact HTML-escaped
    form;
  * an effort-silent thinking render leaves reasoning_effort undefined, so
    the template's own default applies (Qwen3.8: xhigh), instead of the
    "medium" fallback.
ChatLevers::resolve takes the model's [behavior] instead of four
positional flags; ChatTokenizer::from_model_dir takes verbatim_prompt.
Every other target is unchanged.

Ported from Enntity/atlas c971499. Production instead moved the medium
fallback into a [behavior].default_reasoning_effort key and pinned it on
every other Qwen3.8 target (ebd9feb); here the fallback stays the default
and only a verbatim target opts out, so no other MODEL.toml changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… in <think>

The reference engines stop at an end token wherever it falls. Atlas
discarded one sampled inside <think> and kept the model reasoning, or,
under honor_eos_inside_thinking, closed the block and let it answer.
With eos_ends_thinking the end token ends the turn, reasoning and all,
on serial decode and verify spans alike: the speculative-equals-serial
think-commit test now covers the mode, and a new case checks that a turn
ends in <think> on its end token with nothing after it.

Ported from Enntity/atlas 5de9611 (without its removal of the unread
ATLAS_EOS_SUPPRESS_THINKING lever, an unrelated cleanup).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…p mask

A tool-armed request gets a +3 logit on <tool_call> (decaying to -10 over
repeated rounds) and, when the loop detector calls a turn spinning, the
opener masked. The reference engines leave the opener's logit to the
model. A target with tool_call_steering = false skips both: no bias, and
the loop verdict (which only ever steered <tool_call>) is not computed.

Ported from Enntity/atlas f10eda6, plus a sampling-setup test of the bias
gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reference for nvidia/Qwen3.8-Flash-Next-FP4-Local is vLLM over the
checkpoint's chat template (model card: --reasoning-parser qwen3
--tool-call-parser qwen3_xml --enable-auto-tool-choice), which renders the
template and nothing else, bounds reasoning only by a client's budget,
ends the turn on any end token, and samples generation_config.json. This
target now serves the same:

  * verbatim_prompt: the tool list rendered once (the qwen3_coder system
    prompt had duplicated the template's own block on every tools
    request), transformers' spaced unescaped tojson, no Atlas hints, and
    effort-silent requests render the template's default (xhigh) instead
    of the "medium" fallback;
  * no server thinking budget (max_thinking_budget 0, was 2048 and a 90%
    clamp), F2 confidence stop and think-loop watchdog off;
  * eos_ends_thinking (replacing honor_eos_inside_thinking), no
    <tool_call> steering, no inter-tool prose cap;
  * non-thinking and tools sampling rows at generation_config's
    1.0 / 0.95 / 20 with no presence penalty (were 0.7 / 0.8 / 1.5 from
    an older Qwen card).

The [behavior] and [sampling.*] sections now match Enntity/atlas 9b25f57
(SparkQwen 0.4.0); ported from e40b8d7.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r byte

api/chat/reference_prompt_tests.rs replays 27 request forms (effort
levels, thinking on/off, tools, tool_choice required/named/none,
multi-turn tool rounds with reasoning, preserve_thinking, tool errors,
repeated rounds, response_format, thinking_token_budget) through the
production path (wire parse, the edge's effort check, IR lowering,
prepare_chat_prompt) under the target's own MODEL.toml [behavior] and
diffs the prompt against the checkpoint template rendered by transformers
with vLLM's kwargs. scripts/qwen38_flash_next_template_golden.py
regenerates the fixture; the template is a byte copy of the checkpoint's
(md5 519239a4908bb1f805bbce5fa8c8a242). 21 of 27 differed before this
series. The same requests must resolve no thinking budget beyond the
client's and no <tool_call> bias.

Ported from Enntity/atlas e40b8d7 (the union-grammar assertion 8f812bd
added later is left out: main has no tool-call-or-JSON union).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AzeezIsh

Copy link
Copy Markdown
Contributor

Pair check for #271, run on main + #271 alone and on the wave-1 tip 713fea77:

Merging on that basis. Your 27/27 golden cases are the acceptance criterion; I didn't rerun them here.

@AzeezIsh

AzeezIsh commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Single-GB10 observation after merge (sparky, FP4-Local, default recipe profile, port 8890). Not a revert request. The PR already keeps 565aa68 separate so it can be taken or dropped. This is data for that decision.

agentic-webserver 50 (harness pins temperature 0, seed 0):

  • b0df501: 50/50 (run-1793355763037290233).
  • 170c3ed: 47/50 on two separate builds (runs 1793493326878881549 and 1793478986972058487), failing the same iterations 0, 18 and 27 each time with missing: wrote_project (no Cargo.toml written).

Bisect of b0df501..170c3ed, iteration 0 on a fresh serve per step:

  • 3bacfa8, 2cdcc39 and 25c6930 GOOD; 7707946 and 565aa68 BAD.
  • First bad commit is 565aa68 ("qwen3.8-flash-next: serve the reference server's behaviour").
  • The GOOD side was rechecked on the b0df501 binary (run-1793505329431021075).
  • This attributes iteration 0 only, and each step is a single run.

Mechanism: not yet determined. The harness sends temperature 0, so the sampling row's temperature and top_p can't matter. That leaves:

  • verbatim_prompt;
  • the thinking-budget removal;
  • eos_ends_thinking;
  • tool_call_steering = false;
  • the presence_penalty 1.5 removal, if penalties apply under greedy.

A one-knob-at-a-time attribution on main 8c2b672 runs tonight: each arm restores one group to its pre-565aa68 value, with a full revert as the positive control.

BFCL ST-995, not attributed. Between the same two bases, normalized moved 87.13 → 85.94 (overall 87.64 → 87.54; runs 1793365805020178746 → 1793503255896245487):

Subset Change
live_parallel (n=16) −12.50
live_multiple −3.81
irrelevance −4.17
non_live category +1.48

Several PRs landed between those bases, so this is two observations, not an A/B. A one-variable BFCL pair is queued: main vs main with 565aa68's MODEL.toml reverted.

Results will be posted here. Campaign log: #211.

@AzeezIsh

AzeezIsh commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Knob attribution, phase 1. Sparky, FP4-Local on main 8c2b672, default recipe profile.

  • Each arm restores ONE group of 565aa68's MODEL.toml changes to its pre-565aa68 value.
  • Each run is agentic-webserver iteration 0 on a fresh serve, two boots per arm.
  • The harness pins temperature 0 and seed 0.
Arm Restored Boot 1 Boot 2
A0 nothing (control) FAIL (run-1793508184187752527) FAIL (run-1793508333143148307)
A1 sampling rows 0.7 / 0.8 / k20 / presence 1.5 no result (bench died; re-run queued) pass (run-1793508773165481157)
A2 verbatim_prompt off pass (run-1793509059260300615) pass (run-1793509238987779739)
A3 thinking budget 2048 + cap, F2 stop / watchdog defaults FAIL (run-1793509511360792268) FAIL (run-1793509685553043072)
A4 honor_eos_inside_thinking instead of eos_ends_thinking FAIL (run-1793509837034747073) FAIL (run-1793509997428682707)
A5 tool_call_steering / inter-tool prose cap defaults FAIL (run-1793510270201685388) FAIL (run-1793510445188452608)
A6 whole pre-565aa68 MODEL.toml (positive control) pass (run-1793510769786163185) pass (run-1793510987594989111)

Every FAIL is the same: missing: wrote_project; no Cargo.toml was written. The validity gate holds: A0 failed on both boots and A6 passed on both.

Two knobs each flip this trajectory on their own. All of this is observed under the fingerprint above:

  • verbatim_prompt: a different prompt render.
  • The tools-row presence penalty. The bench is greedy, so this one is less obvious, but fast_greedy.rs makes the pick the argmax of the penalised logits. With temperature 0, presence 1.5 still steers the trajectory. Temperature and top_p are inert here.

The thinking budget, the EOS handling and the steering changes don't flip it on their own.

Limits of this result:

  • One iteration on two boots is a trajectory probe, not a rate. Iteration 0 sits on a knife edge.
  • The same binary isn't token-identical across boots: A0 produced 1646 vs 1709 completion tokens.
  • So this doesn't yet show that either knob is "the" cause of the 3/50.

Phase 2 is running to measure the rates, one fresh serve per run:

  • BFCL ST-995 (no overrides) and agentic-webserver 50 on A0 vs A6;
  • then the same pair on A2 and A1.

Results will be posted here.

@AzeezIsh

AzeezIsh commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Knob attribution phase 2: BFCL ST-995, one variable. Same main 8c2b672 binary build; the only difference is kernels/gb10/qwen3.8-flash-next/MODEL.toml. Sparky, FP4-Local r1short, bench with no overrides, one fresh serve per arm.

A0 (main, 565aa68 policy) A6 (pre-565aa68 MODEL.toml) Δ
overall 87.54 88.04 +0.50
normalized 85.94 88.08 +2.14
hallucination category 91.48 95.64 +4.16
live category 79.41 82.35 +2.94
non_live category 86.93 86.26 −0.67
run run-1793521232941271578 run-1793531962246711760

Subsets that move:

Subset Δ
irrelevance (n=24) +8.33 (2 cases)
live_multiple +4.76
live_simple +4.00
live_parallel_multiple −4.16
multiple −3.23

A0 reproduces the 170c3ed number exactly: 87.54 / 85.94 in both.

What this does and doesn't show:

  • Observed: a single run per arm under this fingerprint. It is not cross-validated, and the same binary was not token-identical across boots in phase 1.
  • Direction: the 565aa68 policy scores about 2 points lower on the normalized single-turn score (the MLPerf ST leg), mostly on hallucination and live. A0 lands below the 86.92 floor this campaign has used; A6 is above it.
  • Not yet attributed to a knob:
    • BFCL sends temperature 0, so of the sampling changes only the tools-row presence penalty can matter (fast_greedy.rs).
    • The prompt-side candidates are verbatim_prompt and steering.
    • The A2 (verbatim_prompt off) and A1 (sampling rows) BFCL arms are queued (jobs 73 and 74).

agentic-50 for A0 vs A6 runs next (jobs 69 and 70).

@AzeezIsh

AzeezIsh commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Knob attribution phase 2: agentic-webserver 50, one variable. Same main 8c2b672 build; only the Flash-Next MODEL.toml differs. Sparky, FP4-Local r1short, fresh serve, harness temp 0 / seed 0.

A0 (main, 565aa68 policy) A6 (pre-565aa68 MODEL.toml)
webserver_ok 47/50 50/50
followed_directions 47/50 50/50
failing iterations 0, 18, 27 (missing: wrote_project) none
s/turn 10.85 11.61
run run-1793552803526224613 run-1793556958320651694

Together with the BFCL pair above:

  • A6 vs A0: 88.04 / 88.08 vs 87.54 / 85.94 on BFCL, and 50/50 vs 47/50 on agentic.
  • So on single-GB10 FP4-Local, 565aa68's MODEL.toml policy costs 3/50 agentic iterations and about 2.1 BFCL normalized points (the MLPerf ST leg). It is about 7% faster per turn, plausibly because there's no thinking budget/steering overhead; I haven't verified that.
  • These are observations under one fingerprint, one run per arm. The A0 failures reproduce exactly across three separate main builds (170c3ed ×2, 8c2b672).

Which knob is responsible is still open:

  • Iteration-0 probes flip with either A2 (verbatim_prompt off) or A1 (sampling rows, i.e. presence 1.5 under greedy).
  • The A2/A1 agentic-50 and BFCL arms run next (jobs 71–74, ~8 h).

Not a revert request. The PR deliberately kept 565aa68 separable, and reference parity is a legitimate target. This is the cost of that choice on this deployment. Options, depending on what A2 and A1 show:

  1. keep the policy and re-baseline the gates;
  2. keep verbatim_prompt (it fixes the duplicated tool list) and restore only the losing knob;
  3. make the reference policy opt-in for the single-GB10 recipe.

@AzeezIsh

AzeezIsh commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Knob attribution: agentic-50 on A2. Main 8c2b672 with ONLY verbatim_prompt removed; every other 565aa68 setting stays (reference sampling, no thinking budget, eos_ends_thinking, no steering).

arm agentic-50 s/turn run
A0 main (565aa68 policy) 47/50 (0, 18, 27) 10.85 run-1793552803526224613
A2 verbatim_prompt off 50/50 11.60 run-1793561389183871850
A6 full pre-565aa68 50/50 11.61 run-1793556958320651694

Observed: on this deployment, verbatim_prompt accounts for the whole agentic difference. Turning off only that knob gives the same pass count and the same s/turn as the full revert.

I haven't traced why. A hypothesis to check: Atlas's non-verbatim render (qwen3_coder system prompt beside the template's own tool block, tool-result hints) gives the model more scaffolding, and the 3 failing trajectories need it to write Cargo.toml.

The prompt-side knob isn't free on its other axis either: A2 is about 7% slower per turn, plausibly from the longer rendered prompt; not verified.

Still to come:

  • agentic-50 on A1 (sampling rows / presence 1.5) is running (job 72);
  • BFCL on A2 and A1 (jobs 73 and 74, about 5.5 h) will attribute the 2.1-point BFCL normalized drop.

@AzeezIsh

AzeezIsh commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Knob attribution: agentic-50 on A1. Main 8c2b672 with ONLY the pre-565aa68 sampling rows restored: non_thinking and tools at 0.7 / 0.8 / k20 / presence 1.5. The bench is greedy, so of those only presence can matter.

arm agentic-50 failing iterations s/turn run
A0 main 47/50 0, 18, 27 10.85 run-1793552803526224613
A1 sampling rows 49/50 18 10.94 run-1793565349661765418
A2 verbatim_prompt off 50/50 none 11.60 run-1793561389183871850
A6 full pre-565aa68 50/50 none 11.61 run-1793556958320651694

Observed, one run per arm:

  • verbatim_prompt alone accounts for the full agentic difference.
  • Restoring presence 1.5 under greedy also changes the trajectories and rescues 2 of the 3 iterations.
  • Each knob perturbs these knife-edge trajectories, but only the prompt knob matches the full revert, and it is also the one that costs the s/turn.

BFCL on A2 (job 73) and A1 (job 74) runs next, about 5.5 h, to attribute the 2.1-point normalized drop.

@AzeezIsh

AzeezIsh commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Knob attribution: BFCL ST-995 on A2. Main 8c2b672 with ONLY verbatim_prompt removed. Sparky, FP4-Local, no overrides, fresh serve.

arm overall normalized run
A0 main (565aa68 policy) 87.54 85.94 run-1793521232941271578
A2 verbatim_prompt off 87.54 87.79 run-1793576349809849743
A6 full pre-565aa68 88.04 88.08 run-1793531962246711760
subset A0 main A2 verbatim off A6 full revert
irrelevance 87.50 95.83 95.83
live_irrelevance 95.45 95.45 95.45
live_multiple 79.05 81.90 83.81
live_parallel 68.75 75.00 68.75
live_parallel_multiple 70.83 70.83 66.67
live_simple 96.00 96.00 100.00
multiple 95.97 92.74 92.74
parallel 91.94 90.32 91.13
parallel_multiple 85.48 83.87 85.48
simple_java 61.29 62.90 61.29
simple_javascript 67.74 74.19 70.97
simple_python 93.95 93.55 94.76
hallucination 91.48 95.64 95.64
live 79.41 81.76 82.35
non_live 86.93 85.95 86.26

Observed, one run per arm:

  • verbatim_prompt accounts for most of the BFCL normalized drop: +1.85 of the 2.14 points.
  • Irrelevance recovers fully (87.50 → 95.83, identical to A6), so the hallucination category returns to A6's 95.64.
  • Restoring the verbatim render's dropped scaffolding also costs a little on non_live multiple (−3.23 in both A2 and A6).

Summary across both benches (single-GB10 FP4-Local, one variable each):

arm agentic-50 BFCL norm
A0 main 47/50 85.94
A1 sampling/presence 49/50 pending (job 74)
A2 verbatim off 50/50 87.79
A6 full revert 50/50 88.08

The reference-parity prompt render is the knob that costs this deployment its agentic pass rate and most of its BFCL normalized score.

  • A plausible mechanism, not verified: Atlas's non-verbatim render carries a qwen3_coder tool prompt, tool-result hints and a duplicate tool block. This checkpoint seems to lean on those to abstain on irrelevance and to finish multi-step tool tasks.
  • Whether that's the right trade is the maintainers' call. Parity with vLLM vs this deployment's gates. I'm not proposing a revert here.
  • If useful, the minimal-change option is verbatim_prompt = false for qwen3.8-flash-next while keeping the rest of 565aa68. On this data it recovers 50/50 and 87.79.

A1 BFCL finishes in about 2.5 h; I'll add it here.

@AzeezIsh

AzeezIsh commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Knob attribution complete: BFCL A1. Main 8c2b672 with ONLY the pre-565aa68 sampling rows restored (presence 1.5 is the one that acts under greedy): 87.74 / 86.81 (run-1793586397429843659).

Final table. Single-GB10 FP4-Local, r1short, one fresh serve and one run per arm, everything else identical:

arm (vs main) agentic-50 BFCL overall BFCL normalized
A0 main, 565aa68 policy 47/50 87.54 85.94
A1 sampling rows (presence 1.5) restored 49/50 87.74 86.81
A2 verbatim_prompt off 50/50 87.54 87.79
A6 full pre-565aa68 MODEL.toml 50/50 88.04 88.08

Reading, as observations under this fingerprint:

  • verbatim_prompt carries most of the cost: the whole agentic gap, and about 1.85 of the 2.14 normalized points (irrelevance 87.5 → 95.8).
  • The tools-row presence penalty is a smaller, partly overlapping lever: 2 of 3 agentic iterations, and about 0.9 normalized.
  • The other three groups (thinking budget, EOS handling, steering) didn't change iteration 0. Their BFCL arms weren't run.

All runs, serve logs and binaries are on sparky (~/code/perf/knob/<arm>/, ~/.atlas/runs/). This closes the attribution from my side; the policy decision is yours.

AzeezIsh added a commit that referenced this pull request Nov 2, 2026
…tribution)

qwen3.8-flash-next: ship verbatim_prompt = false (#271 attribution)
@AzeezIsh

AzeezIsh commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Landed: #319 (457df04). qwen3.8-flash-next now ships verbatim_prompt = false; every other 565aa68 key is unchanged.

Gate (sparky GB10, PR binary, r1short, a fresh serve per leg, 0 errors):

leg result floor
FP4-Local agentic-50 50/50 50/50
FP4-Local BFCL ST-995 87.54 / 87.79 87.04 / 86.92
NVFP4 agentic-50 50/50 50 / 49
NVFP4 BFCL ST-995 85.73 / 85.90 83.12 / 82.05

Run IDs are on #319. The reference-parity render is still pinned by reference_prompt_tests and comes back by flipping the key.

@data-angel
data-angel deleted the sq-pr/ref branch November 3, 2026 05:07
@AzeezIsh

AzeezIsh commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Flash-Next NVFP4 under its sparkrun recipe (qwen3.8-flash-next-nvfp4, verbatim, image sha-457df04 = main after #319; sparky GB10; job 82):

  • control 4/4
  • agentic-webserver 50: 49/50 (run-1793685595038867424). Iteration 21: missing: wrote_project; no Cargo.toml was written.
  • BFCL ST-995: 86.13 / 87.33 (run-1793698858083804102), above the 83.12 / 82.05 floors
  • 0 errors

#319's own NVFP4 leg was 50/50, but it served with my r1short profile, not the recipe's flags (reasoning_effort low, prefix caching, default max-seq-len). So under the recipe this deployment still has one knife-edge iteration with the same failure signature. That's one run, an observation.

Queued next, natively on main's engine with the recipe's exact flags:

  • N0 (job 85): does 49/50 reproduce outside the container?
  • N1 (job 86): N0 plus only the pre-565aa68 tools-row presence penalty, which rescued 2 of 3 iterations on FP4-Local.

I'm holding the NVFP4 recipe re-pin until these are in. It currently floats on :latest.

data-angel pushed a commit to Enntity/atlas that referenced this pull request Nov 3, 2026
…bution)

- Off restores Atlas's render (parser tool prompt + tool-result hints);
  FP4-Local observed agentic 50/50 and BFCL 87.54 / 87.79 on this arm.
- reference_prompt_tests: pin the verbatim RENDER explicitly (key is
  now off in MODEL.toml) and assert the target ships it off.
@AzeezIsh

AzeezIsh commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

NVFP4 recipe-flag follow-up. Natively on main's engine (e71775a ≡ main 457df04's engine), with the qwen3.8-flash-next-nvfp4 recipe's exact serve flags, sparky GB10, a fresh serve per arm:

arm agentic-50 s/turn run
container vet (job 82, sparkrun, sha-457df04) 49/50 (iteration 21: no Cargo.toml) 15.68 run-1793685595038867424
N0 native, main (job 85) 50/50 14.71 run-1793709871994308325
N1 native, main + pre-565aa68 tools-row presence 1.5 (job 86) 50/50 16.27 run-1793717249973868611

Observed:

  • The container vet's iteration-21 miss didn't reproduce natively: N0 is 50/50.
  • The presence penalty isn't needed on NVFP4 under these flags (N1 is also 50/50), and it costs about 10% s/turn here. I'm not proposing it.

Read together, this deployment sits at the 50/50 floor with one knife-edge iteration that varies run to run: 2 of 3 runs clean. All BFCL legs clear their floors.

I'm leaving the NVFP4 recipe on :latest for now rather than pinning an image whose vet missed the floor in one run. Pinning sha-457df04 is the maintainers' call on this data.

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