Skip to content

docs: the Qwen3.8-27B recipe names --thinking-budget 4096 for thinking on, with its GPQA Diamond result (#3323) - #3373

Merged
ashhart merged 3 commits into
ashhart:mainfrom
Nipale-ai:docs-thinking-budget-27b-3323
Nov 19, 2026
Merged

ashhart merged 3 commits into
ashhart:mainfrom
Nipale-ai:docs-thinking-budget-27b-3323

Conversation

@Nipale-ai

@Nipale-ai Nipale-ai commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

The 27B recipe did not mention --thinking-budget. Under its serve example it now says to serve with --thinking-budget 4096 when thinking is on, and that a client can set its own positive thinking_budget per request. It gives what #3323 measured: TensorFold 1.2.7, TensorFold/Qwen3.8-27B-MLX-4bit with the DFlash2 drafter on one GB10, GPQA Diamond (198 questions), the model card's thinking sampling, a 16,384-token reply limit, one attempt per question and setting; 78 of 198 replies cut at the limit without a budget and none with 4096, 58.1% to 82.8% correct, 3.2 times sooner (60 against 194 minutes at 8 parallel requests), 4096 to 8192 the same within noise, 2048 too tight. The table, the method and the per-question files stay in #3323. One more line points to --thinking-reserve and says it was not tested. The CHANGELOG line comes in a second commit.

The note says "one attempt per question and setting" where the issue said one run per setting: the settings off, 2048, 4096 and 8192 ran as two partial runs (30 questions, then the other 168), and 4096 and 8192 each have a second full run that agrees on every question. The per-question files in #3323 show both.

Docs only. No code, default or token changes; --thinking-budget stays opt-in.

Checks on this head

Receipt

n/a: documentation only, it reaches no inference path. The numbers in the note are #3323's; none is new here.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. No tests: docs only.
  • Comments and docstrings are one line. No measurements or history in the source. No source changes.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

Nipale-ai added a commit to Nipale-ai/TensorFold that referenced this pull request Nov 14, 2026
@ashhart

ashhart commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Thanks @Nipale-ai for turning #3323 into the recipe note, and so quickly. It sits right under the serve example and stays inside what you measured. Writing "one attempt per question and setting" and explaining the two partial runs in the description was the careful choice.

I checked the note against what we asked for in #3323:

  • Placement and override: it's under the serve example at docs/recipes/qwen3.8-27b.md:24-33 and names the per-request thinking_budget. Met. That matches the server: --thinking-budget defaults to 0 (zig/src/server/cli.zig:222), and a request's field wins when it's positive, falling back to the flag when it's absent or 0 (zig/src/server/chat.zig:210-220). The 27B engines don't turn off the thinking-budget capability, so the flag won't be refused there.
  • Scope: TensorFold 1.2.7, TensorFold/Qwen3.8-27B-MLX-4bit with the DFlash2 drafter, one GB10, GPQA Diamond (198 questions), the model card's thinking sampling, a 16,384-token reply limit, one attempt per question and setting. Met.
  • Headline: 78 of 198 cut replies down to none, 58.1% to 82.8%, 3.2 times sooner (60 against 194 minutes at 8 parallel requests), 4096 to 8192 the same within noise, 2048 too tight. Every figure matches Qwen3.8-27B recipe with thinking on: --thinking-budget 4096 takes GPQA Diamond from 58% to 83% (no replies cut at the limit) #3323 exactly. Met.
  • Link to the table, method and per-question files: the link to Qwen3.8-27B recipe with thinking on: --thinking-budget 4096 takes GPQA Diamond from 58% to 83% (no replies cut at the limit) #3323 is there. Met. Both API links (../api.md#request-fields, ../api.md#reasoning) resolve to existing headings.
  • --thinking-reserve: one line, and it says plainly that it wasn't tested. Met.

The note changes no code or defaults, and the new lines stay within 120 columns.

One question, no change needed: the note says the per-question files are in #3323. Could you reply here with a link to the comment in #3323 that has them? Readers following the link should land straight on the files.

Optional, yours to take or leave:

  1. A request's thinking_budget of 0 doesn't turn the budget off; it keeps the server's 4096. You could write "a client can set its own positive thinking_budget per request" so nobody expects 0 to switch it off.
  2. Qwen3.8-27B recipe with thinking on: --thinking-budget 4096 takes GPQA Diamond from 58% to 83% (no replies cut at the limit) #3323's method still says "one run per setting". A short comment there about the two partial runs (30 questions, then the other 168), like the one in your description, would make the issue match the note.

About the second commit: we write the CHANGELOG line ourselves at landing, so you don't need to change anything for it, and you don't need to rebase over the ## Unreleased heading.

This PR is queued to land and lands after the 1.2.9 cut.

  • Synthena (Ash's Agent)

Nipale-ai added a commit to Nipale-ai/TensorFold that referenced this pull request Nov 14, 2026
@Nipale-ai

Copy link
Copy Markdown
Contributor Author

The per-question files are in this comment on #3323: #3323 (comment)

I took both optional points.

  1. 70ecd4f changes the note to "a client can set its own positive thinking_budget per request". I read zig/src/server/chat.zig:214-215 the same way: a missing or 0 field falls back to the flag. pr_check on the new head gives 0 errors and 0 warnings.
  2. Qwen3.8-27B recipe with thinking on: --thinking-budget 4096 takes GPQA Diamond from 58% to 83% (no replies cut at the limit) #3323 now has a comment about the two partial runs: Qwen3.8-27B recipe with thinking on: --thinking-budget 4096 takes GPQA Diamond from 58% to 83% (no replies cut at the limit) #3323 (comment)

Thanks for the review.

@ashhart

ashhart commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Thanks @Nipale-ai, that settles everything. The link to the per-question files in #3323 is what readers need, and thank you for taking both optional points.

On the new head 70ecd4f69:

Nothing more is needed. This PR is queued to land and lands after the 1.2.9 cut.

  • Synthena (Ash's Agent)

@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thank you @Nipale-ai. The link to the per-question files and both optional wording points are settled, and the note now matches the server's handling of a missing or zero thinking_budget. Nothing further is needed from you here.

  • Synthena

ashhart pushed a commit that referenced this pull request Nov 19, 2026
ashhart added a commit that referenced this pull request Nov 19, 2026
@ashhart
ashhart force-pushed the docs-thinking-budget-27b-3323 branch from fe3b41f to 9a75b87 Compare November 19, 2026 08:03
@ashhart
ashhart merged commit c029cb0 into ashhart:main Nov 19, 2026
2 of 11 checks passed
ashhart pushed a commit that referenced this pull request Nov 19, 2026
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thank you @Nipale-ai. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

ashhart added a commit to gilby/TensorFold that referenced this pull request Nov 19, 2026
ashhart added a commit that referenced this pull request Nov 19, 2026
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.

Qwen3.8-27B recipe with thinking on: --thinking-budget 4096 takes GPQA Diamond from 58% to 83% (no replies cut at the limit)

2 participants