Skip to content

strix-hip qwen3.8-27b: drop the <tool_call> steering bias, render the template verbatim (+9.9 pt ST-995 normalized) - #324

Merged
AzeezIsh merged 2 commits into
mainfrom
perf/hip-27b-reference-tools
Nov 3, 2026
Merged

AzeezIsh merged 2 commits into
mainfrom
perf/hip-27b-reference-tools

Conversation

@AzeezIsh

@AzeezIsh AzeezIsh commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Problem

Atlas served nvidia/Qwen3.8-27B-NVFP4 on gfx1151 with ST-995 at 84.32 / 74.58 (live_irrelevance 38.64). Stock llama.cpp on the same weights scored 86.63 / 81.79 (89.77).

DevLab run 41587487769 replayed 60 BFCL live_irrelevance items on one runner, one checkpoint. Atlas answered 29/60 with a tool call; llama.cpp answered 8/60. The model declines in prose and a call follows anyway. For example, live_irrelevance_17-2-5: "I don't have access to a VirusTotal API tool …", then get_current_weather, finish=tool_calls.

The cause is api/chat/sampling_setup.rs tool_call_bias. It adds +3.0 to <tool_call> on every tool-armed step under [behavior].tool_call_steering, which defaults to true. gb10/qwen3.8-flash-next turned that off in 565aa68; the strix-hip 27B target never did.

Change

kernels/strix-hip/qwen3.8-27b/MODEL.toml only, in two commits:

  • 17ead7b: tool_call_steering = false, max_inter_tool_prose = 0.
  • ed48e50: verbatim_prompt = true. The checkpoint template renders the prompt: no Atlas tool prompt on top of the template's own tool block, no hints, and tojson as transformers renders it.

Measurements

All on nvidia/Qwen3.8-27B-NVFP4 with thinking off.

ST-995:

run overall normalized live_irr
main (strix s196c, f506e92) 84.32 74.58 38.64
this PR, ed48e50 (framework f193, run-1793698811596767507) 88.24 84.83 94.32
main + --reference-mode (strix s199b / DevLab 41593030112) 87.44 / 87.64 83.50 / 83.51 92.05
llama.cpp v0.8.0, same checkpoint (DevLab) 86.63 81.79 89.77
Gufo, Unsloth Q4_K_XL (DevLab) 84.22 81.12 92.05

live_irrelevance probe, 60 items:

build items with a tool call
main recipe (framework f190b) 30/60
main --reference-mode 7/60
llama.cpp 8/60

Speed is neutral (DevLab, same runner, prefix cache on):

pp(2k) TTFT after 8k / 16k C1 C4 C8
this PR (41610607856) 374 6.01 / 7.16 s 18.3 38.6 47.8 tok/s
main (41574628802) 371 6.06 / 7.29 s 18.3 38.2 47.5 tok/s

Still running before merge

  • Agentic gate, prefix cache ON (framework f194; the bar is 50/50, as s185 and s190b on main).
  • 17ead7b alone, ST-995 (strix s201): attributes the gain between the two commits.
  • DevLab ST-995 on this branch (41614041238).
  • After merge: build + serve of the new main on strix and framework.

🤖 Generated with Claude Code

AzeezIsh and others added 2 commits November 3, 2026 02:02
The +3.0 <tool_call> bias made nvidia/Qwen3.8-27B-NVFP4 append a tool call
after declining in prose (29/60 BFCL live_irrelevance items vs 8/60 for stock
llama.cpp on the same weights, DevLab 41587487769). ST-995 live_irrelevance
38.64 vs 89.77. Same change gb10/qwen3.8-flash-next made in 565aa68.

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

AzeezIsh commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Agentic gate: PASS (framework f194, exactly ed48e50, nvidia/Qwen3.8-27B-NVFP4; agentic-webserver ×50, prefix cache ON, SSM_SLOTS 8, thinking off)

  • 50/50 webserver_ok, 50/50 followed_directions, 11.4 s/turn, Σwall 7,922 s, 0 faults.
  • Server TTFT median 1.01 s, p90 1.79 s; 642 restored and 49 dropped Marconi hits.
  • For comparison, the last runs on main were on strix (s185: 50/50, TTFT median 1.79 s, p90 4.66 s; s190b: 18.0 s/turn). Inference: part of the drop is box speed (framework is faster), and part is fewer spurious tool calls. Not separated.

Gates:

  • ST-995 ✅ 88.24 / 84.83 (f193)
  • Agentic ✅ 50/50 (f194)
  • Speed ✅ neutral (DevLab 41610607856)
  • DevLab native build of exactly ed48e50: 41636319657 (running)

@AzeezIsh
AzeezIsh merged commit 2f9c370 into main Nov 3, 2026
25 of 26 checks passed
@AzeezIsh

AzeezIsh commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Post-merge check: PASS on both boxes. Main 2f9c370 builds every strix-hip target (including #321) and serves nvidia/Qwen3.8-27B-NVFP4 with 0 faults (strix s202, framework f195).

Attribution (strix s201, ST-995, commit 17ead7b alone):

commit change overall / normalized live_irrelevance
main — 84.32 / 74.58 38.64
17ead7b (A) steering off, prose cap 0 86.03 / 80.33 52.27
ed48e50 (B) A + verbatim_prompt 88.24 / 84.83 94.32

Both halves contribute: steering accounts for about +1.7 / +5.8 and the verbatim template for about +2.2 / +4.5.

@AzeezIsh

AzeezIsh commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

DevLab ST-995 on this change (41614041238, same runner as the llama.cpp row): 88.54 / 85.56. Hallucination 86.17, live 82.94, non_live 87.57.

engine, same runner, nvidia/Qwen3.8-27B-NVFP4 overall normalized
Atlas, #324 88.54 85.56
llama.cpp v0.8.0 86.63 81.79

The normalized score also clears the 85.32 reference floor.

@AzeezIsh

AzeezIsh commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Same-box agentic check (strix s203, main 2f9c370, same recipe as the pre-merge s185):

strix pass TTFT median TTFT p90
s185, before #324 50/50 1.79 s 4.66 s
s203, after #324 50/50 1.78 s 3.56 s
  • Median TTFT is unchanged. The lower f194 figure (1.01 s) was framework being the faster box. That corrects my earlier inference.
  • p90 is 24% lower, and both runs stay at 50/50.

AzeezIsh added a commit that referenced this pull request Nov 4, 2026
AzeezIsh added a commit that referenced this pull request Dec 4, 2026
… speed, MTP + DFlash2)

Measured on winbox at 8b78bdc: MTP 88.24/85.12 and DFlash2 88.54/85.06 on
bfcl-subset n=995, against AMD's 84.22/74.58 at f3ea6f0 (pre-#324 tool_call
bias) and the Linux target of 88.24/84.83.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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