mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3950] 0.1.48 engine: random 10-80s TTFT spikes on short chat requests (not in 0.1.44.1) #1690
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#1690
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 @flamesugar on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3950
Summary
Upgrading the engine from 0.1.44.1 (local build) to the prebuilt 0.1.48 release (
strata-engine-0.1.48-linux-x86_64-cuda-cuda13.tar.gz) introduced large, random time-to-first-token (TTFT) spikes on short chat requests that did not exist on 0.1.44.1. Throughput (tok/s) is roughly the same or slightly lower; the problem is tail latency.System
--kv int8 --spec 4 --spec-min-p 0.70 --vram-reserve-mib 1024 --expert-cache auto,--parallel 1exe/BUILD.jsonswapped), usingtools/strata_bench.py --runs 5 --longWhat changed between the two runs
Only the engine binary + its bundled CUDA libs (
strata,strata-vision,libstrata_kq.so,libcudart.so.13,libcublas.so.13,libcublasLt.so.13) were swapped for the official 0.1.48 prebuilt. Router config, model pack, GPU, and bench script were identical.Results
Throughput (median over 5 runs)
Chat TTFT — 15 identical short requests (85-93 prompt tokens)
0.1.44.1, all 15 requests:
0.1.48, same 15 requests, same prompts, in order:
9 of 15 requests are >8s; the worst is 76s for an 85-token prompt. Normal and anomalous values are interleaved randomly, not a one-time cold-start cost.
Agent turns (25 turns, 5 sessions x 5 turns, ~10K+ context)
32K prompt TTFT (5 runs)
Ruled out as the cause
Suite.run()is sequential (run_chat->run_prompt(4K)->run_prompt(16K)->run_agent->run_prompt(32K));run_clients(the only concurrent path in the script) was not invoked.request for unknown model None -> FN_3s, 11:43:10), which with--parallel 1could only ever delay one in-flight request. It cannot explain 9/15 chat anomalies plus the agent and 32K spikes.Suspected area
0.1.48's startup log shows a new feature not present in 0.1.44.1:
Each individual park/restore event only takes 100-250ms in the log, which doesn't by itself explain the 10-80s stalls, but the timing coincides with when the stalls start appearing — this smells like a lock/queue interaction between conversation-cache eviction and the adaptive-tier expert swap-in, rather than the cache operations themselves.
Repro
Compare chat-request TTFT distribution against the same bench on 0.1.44.1 with the same model pack and router config.
Workaround
Rolled back to the locally-built 0.1.44.1 engine, which does not exhibit this issue. Would like to know whether
--conversation-cache-mib 0on 0.1.48 removes the stalls before filing this as a confirmed regression in that feature specifically — happy to run that A/B and report back if useful.@github-actions[bot] commented on GitHub (Oct 24, 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
@Niko1221 commented on GitHub (Oct 29, 2026):
Please retest on 0.2.7.1 with
--conversation-cache-mib 0and with the default, and send the engine log around one slow chat request.@github-actions[bot] commented on GitHub (Oct 29, 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.