mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2316] [Bug] Repeated requests sharing a large prefix collapse the checkpoint replay path to 7-21 tok/s (cold prefill: 2100+); --prompt-cache 0 avoids it #936
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#936
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jerry-Lee661 on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2316
Environment
auto, dual-socket-free E5-2673 v3, 128 GB DDR3--serve --ple-io ram --kv k8v4 --max-context 524288 --rope-scaling yarn --spec 3 --prefill auto --expert-profile <shipped> --expert-cache 4096; prompt-cache left at defaults (6, every16384)Symptom
On the same running instance, re-submitting a request that shares a large (~48K tok) prefix with an earlier request collapses the effective prompt throughput to 7-21 tok/s — vs 2050-2170 tok/s for a cold prompt of identical length. Decode is unaffected. The first large prefill after a restart is always full speed; repeats of the same request collapse.
Isolation (three experiments, same session)
--prompt-cache 0+ restart → three consecutive same-prefix 48K requests = 2111 / 2164 / 2172 tok/s. Symptom gone.This points at the conversation-checkpoint replay path: on a cache hit, the restore/replay of the cached prefix runs ~100-300× slower than a cold prefill of the same content.
Notes
prompt_per_secondis computed over the non-cached suffix, and the wall time is dominated by the replay of the cached prefix.--prompt-cache 6,--prompt-cache-every 16384).Workaround
--prompt-cache 0— fully removes the collapse. In-session incremental prefill still works; only idle-session checkpoint parking is lost.Platform numbers (same build, for context)
STRATA_SPLIT_OVERLAP=1from self-built #1120)Happy to provide full command lines, logs, or run any probe on this machine.
@Jerry-Lee661 commented on GitHub (Oct 14, 2026):
Update from the reporter: the collapse does not reproduce on 0.1.44.1.
Same machine (2x RX 7900 XTX, gfx1100, ROCm, Xeon E5-2673 v3, 128 GB DDR3), same config family as the original report (Swift IQ3_S, 512K, k8v4, conversation cache 16 GiB, prefix reuse left on), only the engine changed: our 0.1.43.1-era self-build -> our 0.1.44.1 self-build.
Repeat-prefix test: one identical ~29.5K-token prompt sent five times in a row on a fresh start (no other prompts parked):
The replays go through the checkpoint path (the log shows the park/checkpoint lines, "2 checkpoints") and restore in under a second, including after a tail change. On the 0.1.43.1-era build the same pattern collapsed as described in the original report. I could not find a prompt-cache/replay entry in the 0.1.44 or 0.1.44.1 notes, so this may have been fixed silently, or the original trigger was narrower than I described. Either way: I have turned the
--prompt-cache 0workaround off on 0.1.44.1 and will report here if the collapse comes back on longer runs. Feel free to close as fixed if this matches a change you made; the recipe in the original report still reproduces the old behavior on the older build.(Unrelated note from the same setup, in case the wording is worth a line: with
--pipeline-windows 2set explicitly on a layer split that has no--mtpdraft installed (lookup/suffix drafts only), the engine logs--pipeline-windows 2 is off: it needs the MTP drafter (--mtp, --spec). Clear and correct, just mentioning it since this setup turns it on by default on RDNA4 only.)@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.