Basics · Hybrid Reasoning Mode Ablation · Thinking ON vs /no_think · WASM q8
Thinking ON vs /no_think: Side-by-Side Latency & Token Lab
The same onnx-community/Qwen3-0.6B-ONNX weights run in two distinct
modes: Thinking ON emits an internal <think>…</think>
chain before answering, while /no_think suppresses reasoning
for low-latency replies. Run one prompt through both paths with identical sampling parameters
and measure the exact token and latency trade-off.
1. Configure Prompt & Sampling Parameters
Pick a reasoning-sensitive preset (e.g. decimal trap or algebra riddle):
Token savings (/no_think)–
Latency savings–
Think budget share–
NaN / invalid–
2. Side-by-Side Output & Token Breakdown
Path A · Thinking ON (<think>)
Idle
TTFT–
Total ms–
Think / Ans tok–
Decode tok/s–
Internal <think> reasoning
Awaiting Thinking ON run…
Path B · Direct Mode (/no_think)
Idle
TTFT–
Total ms–
Answer tokens–
Decode tok/s–
Awaiting /no_think run…
Formatted Prompt · Thinking ON
Prompt preview appears when comparison runs.
Formatted Prompt · /no_think
Prompt preview appears when comparison runs.
3. See inside the code
Show the code — qwen3-core.mjs: formatPromptWithThinkingMode() (/think vs /no_think)Show the code — qwen3-core.mjs: computeThinkBudgetStats() (reasoning share accounting)Show the code — worker.js: handleGenerate() (FIFO opQueue + epoch guard)