[GH-ISSUE #5324] [TUI] presets recheck compares a 4K prompt with the saved ~96K long-prompt result, causing an immediate retune loop #3178

Open
opened 2026-11-07 14:38:40 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @NRK-SH on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5324

What happened

After an official quick tune on a 524,288-token Qwen3.8-Flash-Next IQ3_S profile, presets recheck immediately returns retune. The same result occurs again after re-running tune auto.

The saved preset and the recheck appear to use different prompt lengths:

  • Quick tuning evaluates --prefill auto:32768 with its 4K prompt and an additional 98,304-token long prompt.
  • The candidate's long-prompt run measured 4,968.9 tok/s at an actual prompt of 95,767 tokens, and the confirmation run measured 4,967.5 tok/s at 95,903 tokens.
  • The preset is saved with pp4k_tok_s around 4,968.
  • presets recheck then runs its normal 4K request set. Raw logs show a cold prompt of 3,636 tokens at 2,752.4 tok/s and a warm prompt of 4,079 tokens at 2,998.0 tok/s.
  • Recheck compares the 4K measurement (~2,998) with the saved long-prompt measurement (~4,968), reports "long prompts are slower than when it was saved", and requests another tune.

I reproduced this with two successive quick tunes. Both selected the same --prefill auto:32768 setting. The second recheck again returned retune.

This looks like a persistence/comparison mismatch rather than a hardware regression: the official recheck should compare like-for-like prompt sizes.

Smallest steps or command that reproduce it

  1. Configure Qwen3.8-Flash-Next IQ3_S with --max-context 524288, INT8 KV, MTP, and --prefill auto.
  2. Run strata tune auto <config> --mode quick --use coding --goal speed --name <preset>.
  3. Observe that tuning selects --prefill auto:32768 and records a long-prompt result near 4,968 tok/s.
  4. Run strata presets recheck <preset> <config>.
  5. Recheck measures its ~4K prompt near 3,000 tok/s, compares it with the saved ~4,968 value, and returns retune.
  6. Re-run tuning and recheck; the same mismatch repeats.

Expected: either save and compare separate 4K and long-prompt references, or make recheck replay the same prompt set/length that was saved.

Reproduction status

Reproduced locally

Strata version

Strata 0.2.10 · Control 0.1.56 · engine 0.1.56
Built from the official source with STRATA_ISA_FLOOR=avx for a CPU without AVX2. No engine source changes.

Graphics card, memory and system

NVIDIA RTX 4090 D 48 GB · 2× Xeon E5-2697 v2 · about 247 GiB RAM · Ubuntu 24.04 · NVIDIA driver 595.99.02

Model, size and settings

Qwen3.8-Flash-Next IQ3_S · context 524,288 · KV INT8 · MTP · vision off · --prefill auto:32768

Relevant sanitized logs

tune candidate: prompt 95767 tokens = 0 reused + 95767 read in 19273 ms (4968.9 tok/s)
tune confirm:   prompt 95903 tokens = 0 reused + 95903 read in 19306 ms (4967.5 tok/s)

recheck cold:   prompt 3636 tokens = 0 reused + 3636 read in 1321 ms (2752.4 tok/s)
recheck warm:   prompt 4079 tokens = 0 reused + 4079 read in 1361 ms (2998.0 tok/s)
recheck verdict: retune — long prompts are slower than when it was saved

second recheck: decode 142.1 tok/s; 4K prefill 2997.9 tok/s; verdict retune
preset: decode_tok_s 151.05; baseline_decode_tok_s 151.3; settings --prefill auto:32768
preset recheck.last_ok: null

The inconsistency is in the saved pp4k_tok_s reference: it is populated from the ~96K long-prompt result, while recheck runs a ~4K prompt and compares the two directly.

Area

TUI

Desktop app, Terminal or source?

Terminal / source build

Originally created by @NRK-SH on GitHub (Nov 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5324 ### What happened After an official quick tune on a 524,288-token Qwen3.8-Flash-Next IQ3_S profile, `presets recheck` immediately returns `retune`. The same result occurs again after re-running `tune auto`. The saved preset and the recheck appear to use different prompt lengths: - Quick tuning evaluates `--prefill auto:32768` with its 4K prompt and an additional 98,304-token long prompt. - The candidate's long-prompt run measured 4,968.9 tok/s at an actual prompt of 95,767 tokens, and the confirmation run measured 4,967.5 tok/s at 95,903 tokens. - The preset is saved with `pp4k_tok_s` around 4,968. - `presets recheck` then runs its normal 4K request set. Raw logs show a cold prompt of 3,636 tokens at 2,752.4 tok/s and a warm prompt of 4,079 tokens at 2,998.0 tok/s. - Recheck compares the 4K measurement (~2,998) with the saved long-prompt measurement (~4,968), reports "long prompts are slower than when it was saved", and requests another tune. I reproduced this with two successive quick tunes. Both selected the same `--prefill auto:32768` setting. The second recheck again returned `retune`. This looks like a persistence/comparison mismatch rather than a hardware regression: the official recheck should compare like-for-like prompt sizes. ### Smallest steps or command that reproduce it 1. Configure Qwen3.8-Flash-Next IQ3_S with `--max-context 524288`, INT8 KV, MTP, and `--prefill auto`. 2. Run `strata tune auto <config> --mode quick --use coding --goal speed --name <preset>`. 3. Observe that tuning selects `--prefill auto:32768` and records a long-prompt result near 4,968 tok/s. 4. Run `strata presets recheck <preset> <config>`. 5. Recheck measures its ~4K prompt near 3,000 tok/s, compares it with the saved ~4,968 value, and returns `retune`. 6. Re-run tuning and recheck; the same mismatch repeats. Expected: either save and compare separate 4K and long-prompt references, or make recheck replay the same prompt set/length that was saved. ### Reproduction status Reproduced locally ### Strata version Strata 0.2.10 · Control 0.1.56 · engine 0.1.56 Built from the official source with `STRATA_ISA_FLOOR=avx` for a CPU without AVX2. No engine source changes. ### Graphics card, memory and system NVIDIA RTX 4090 D 48 GB · 2× Xeon E5-2697 v2 · about 247 GiB RAM · Ubuntu 24.04 · NVIDIA driver 595.99.02 ### Model, size and settings Qwen3.8-Flash-Next IQ3_S · context 524,288 · KV INT8 · MTP · vision off · `--prefill auto:32768` ### Relevant sanitized logs ~~~text tune candidate: prompt 95767 tokens = 0 reused + 95767 read in 19273 ms (4968.9 tok/s) tune confirm: prompt 95903 tokens = 0 reused + 95903 read in 19306 ms (4967.5 tok/s) recheck cold: prompt 3636 tokens = 0 reused + 3636 read in 1321 ms (2752.4 tok/s) recheck warm: prompt 4079 tokens = 0 reused + 4079 read in 1361 ms (2998.0 tok/s) recheck verdict: retune — long prompts are slower than when it was saved second recheck: decode 142.1 tok/s; 4K prefill 2997.9 tok/s; verdict retune preset: decode_tok_s 151.05; baseline_decode_tok_s 151.3; settings --prefill auto:32768 preset recheck.last_ok: null ~~~ The inconsistency is in the saved `pp4k_tok_s` reference: it is populated from the ~96K long-prompt result, while recheck runs a ~4K prompt and compares the two directly. ### Area TUI ### Desktop app, Terminal or source? Terminal / source build
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Fill in "Area".
  • Fill in "Desktop app, Terminal or source?".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6662350243 --> @github-actions[bot] commented on GitHub (Nov 5, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Fill in "Area". - [ ] Fill in "Desktop app, Terminal or source?". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6662506431 --> @github-actions[bot] commented on GitHub (Nov 5, 2026): Thanks, this follows the format now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3178
No description provided.