Skip to content

adaptive spec: the re-probe backoff starts at the interval (follow-up to #408) - #425

Closed
AzeezIsh wants to merge 1 commit into
mainfrom
fix/adaptive-reprobe-interval
Closed

AzeezIsh wants to merge 1 commit into
mainfrom
fix/adaptive-reprobe-interval

Conversation

@AzeezIsh

Copy link
Copy Markdown
Contributor

Follow-up to #408, as proposed in that PR's thread: the adaptive-spec re-probe backoff starts at ATLAS_DFLASH_ADAPTIVE_REPROBE itself, not an eighth of it. The doubling to four intervals stays.

hold_tokens(reprobe, failed) = reprobe << failed.min(2)    // 256, 512, 1024, 1024 at the default

#408's backoff started at reprobe / 8 (32 tokens at the default) for every model with ATLAS_DFLASH_ADAPTIVE=1. Same-binary A/B on one GB10 (sparky 188b and 194; Inkling Strict, recipe DSpark env 1:7,1000000:0, ADAPTIVE=1, MIN=1.2; sq_bench single-stream; two reps each):

#408 (first wait 32) fixed interval (256) this PR
decode prose / code / json, tok/s 35.7 / 36.2 / 34.5 (both reps) 36.8 / 37.0 / 36.0 (both reps) 36.8 / 37.0 / 36.0 · 36.6 / 36.8 / 35.8
aggregate C1 34.2 / 34.2 36.8 / 36.9 36.8 / 36.7
re-probes 31 6 7 / 6, all after 256
drafted == plain (greedy C1, 8 prompts) 8/8

On text whose drafts don't pay, the short start re-probes about 5× as often and costs 3–8%. @data-angel measured the opposite on Inkling code with RigMark (58 → 64.7 tok/s), so a model that wants the short start can set a short interval in its recipe. ATLAS_DFLASH_ADAPTIVE_REPROBE=32 gives 32, 64, 128. No new env name. Only the Inkling recipes set ATLAS_DFLASH_ADAPTIVE today.

Draft until @data-angel weighs in on #408's thread.

🤖 Generated with Claude Code

…ghth of it

#408's backoff started at ATLAS_DFLASH_ADAPTIVE_REPROBE / 8 (32 tokens at
the default 256) for every model with ATLAS_DFLASH_ADAPTIVE=1. Same-binary
A/B (sparky 188b, Inkling Strict, recipe DSpark env, two reps each): the
short start re-probed 31 times against 6 and decoded prose / code / json
35.7 / 36.2 / 34.5 tok/s against 36.8 / 37.0 / 36.0, C1 34.2 against 36.9.

The first wait is the interval again; the doubling to four intervals stays.
A model whose drafts come back quickly sets a short interval in its recipe
(ATLAS_DFLASH_ADAPTIVE_REPROBE=32 keeps #408's Inkling code start). No new
env name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 95328e9be3ceb3031ecc5984382909c7d2bb982e)
@AzeezIsh

AzeezIsh commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Closing: re-measured on today's tree, and it loses. @data-angel, you were right about Inkling.

Same box and harness as 188b/194, but on current code and recipes: M3 = main cb4dcf9a7 + #411 + #397 + #399 (what main is about to be), M4 = M3 + this PR. Native serve with sparkrun-recipes#37's flags and env (incoai DFlash2 drafter, ADAPTIVE=1, Strict ADAPTIVE_MIN=1.0, CONF_WIDTH=1, GATE_FORCE=1). sq_bench single-stream decode, 3 interleaved reps per arm (spread ≤ 0.2 tok/s), sparky job 219, one GB10. Medians in tok/s:

prose code json C1 re-probes (first wait)
Strict, M3 (#408: 32) 44.6 64.3 47.3 48.0 3 (32)
Strict, this PR (256) 39.2 63.0 47.3 48.3 2–3 (256)
Spark, M3 (#408: 32) 61.0 83.6 66.7 61.3 19 (32, 64)
Spark, this PR (256) 63.0 61.6 64.0 59.2 5 (256)

With the DSpark drafter (where 188b/194 measured), drafts rarely paid, so frequent re-probes cost 3–8%. With DFlash2, a suspended sequence's drafts come back quickly, and waiting 256 tokens to re-probe gives up a lot of speculation. Spark code loses 26%, Strict prose 12%. Drafted text still equals plain decode (8/8). #408's short first wait stays as is.

🤖 Generated with Claude Code

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