mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3580] [Engine] Multi-turn answers shrink to a few tokens with --batch 8+ and a large --conversation-cache (0.1.40.4 and 0.1.45) #1476
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#1476
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 @kevinhirsch on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3580
What happened
Summary. In one conversation that keeps adding turns, each answer is shorter than the last, until the engine stops after about 4 tokens on every turn. This happens only when the batch slots are 8 or more AND the parked-conversation cache is large (16384 MiB, 16 slots). With either setting alone, answer lengths stay normal. Prompt reuse looks healthy throughout (
prompt N tokens = X reused + ~320 read, drafts accepted), so the engine itself ends the answers early.Load. One stream for 150 s, one append-only conversation: a 1,500-token first turn, then +300-token turns, each asking for five bullet points;
max_tokens512; temperature 0.7, top_p 0.8, top_k 20, presence_penalty 1.5.Results (median answer length on turns 2 and later, and answers of 8 tokens or fewer):
--ple-io ram)The answers shrink from turn 2 on, for example 512, 95, 60, 40, 47, 35, 26, 9, 8, 13, 9, 4, 4, ... (0.1.40.4, parallel 8, 16 GiB/16). With 4 or more concurrent streams, most later turns stay normal (one run at 8 streams, 0.1.45 parallel 8, did shrink). A Qwen3.8-27B on vLLM under the same load keeps its later turns at 512 tokens.
Guess. Whatever the engine does with the live conversation between turns differs once the slot count and the parked cache are both large. Perhaps a park/restore or slot copy of the GDN state or turn checkpoints. The copy/checkpoint switches change how badly it shrinks.
Repro artifacts available: configs, engine logs (
strata serve: prompt ...lines per turn), and the harness (speed.py load --streams 1 --start 1500 --turn 300 --max-tokens 512).Strata version, GPU, OS
6674a00) and the Strata engine of the PolyStrata tree at 0.1.45 (974552f); both reproduce it.--kv int8 --kv-resident 32768 --max-context 131072 --spec 4 --mtp <rt> --resident-experts --expert-cache auto, the server's"parallel". Engines: Strata 0.1.40.4 (6674a00) and the Strata engine of the PolyStrata tree at 0.1.45 (974552f).Engine log
Per-turn lines from one single-stream run (0.1.40.4, parallel 8, 16384 MiB / 16-slot conversation cache). Prompt reuse stays normal while the generated length shrinks:
@github-actions[bot] commented on GitHub (Oct 21, 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:
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
@kevinhirsch commented on GitHub (Oct 21, 2026):
Correction from the reporter, with more data: the trigger is
--ple-io ram, not--batch 8+or a large--conversation-cache.Same machine (2x RTX 2080 Ti 22 GB, sm_75, layer split 24, IQ3_XXS, engine 0.1.40.4) and the same multi-turn harness (each conversation starts at ~1,500 tokens and grows ~300 per turn, 512 max tokens, thinking off), one client:
--ple-ioSo 8+ slots and a large parked cache are fine on their own, and every run with
--ple-io ramshrinks the multi-turn answers, even with 4 slots and a 3 GB cache. Fresh single-turn prompts with--ple-io ramare unaffected (decode 67-72 tok/s at 2K-102K, normal lengths). We have not re-tested on 0.1.47 yet and will add a line when we do. Sorry for the misleading title.@Niko1221 commented on GitHub (Oct 22, 2026):
Thanks for the correction — the trigger (--ple-io ram) is much clearer than the original title. Nothing else is needed to triage it; a re-test on 0.2.2 / engine 0.1.47 would tell us whether it still reproduces.
@github-actions[bot] commented on GitHub (Oct 27, 2026):
Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.
To bring it back: fix the title (area prefix) and the missing parts, then comment
/reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.