mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5250] [Benchmark] Radeon 8060S (Strix Halo, gfx1151, Linux HIP) + Qwen3.8-Flash-Next IQ3_XXS: conversation cache token-exact at 3.7k and 36.6k tokens, plus a 3-conversation alternation probe #3124
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#3124
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 @jwdeaver2009 on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5250
Here is a HIP / gfx1151 data point for the conversation cache (
--conversation-cache-mib/--conversation-cache-slots), in case backend coverage is being collected: token-exact restores at 3.7k and 36.6k tokens, plus a three-conversation alternation probe through a proxy.Setup
1cbcacbcae29), HIP backend, built in a ROCm 7.14.1 toolchain image (HIP 7.14.60850, hipBLASLt 1.4.1 with the gfx1151 tuning table).--ple-gguf), int8 K/V.--expert-cache auto --prefill 16384 --spec 4 --spec-min-p 0.5 --mtp --max-context 262144 --kv int8 --kv-resident 32768 --vram-reserve-mib 700 --lookup-chain 3 --mtp-q4 all --pcie-frac 0 --prompt-cache-root 128.STRATA_ARENA_MMAP=1,STRATA_PF_FUSED=1,STRATA_PF_GEMM=1,STRATA_HC_UPMIX=1,STRATA_PA_FAST=1,STRATA_HIP_WMMA=1,STRATA_SELECT_WMMA=1,STRATA_HC_Q8=1,STRATA_PF_SWITCH_MIN_T=4096, plus the hipBLASLt tuning file.--conversation-cache-mib 16384 --conversation-cache-slots 4for theparking_test.pyruns and the first server probe (2026-10-22);--conversation-cache-mib 24576 --conversation-cache-slots 6for the alternation probe (2026-10-23).parallel/batch slots).What I ran
1. Your
tools/parking_test.py, unmodified, on the bare engine (seat stopped), twice.The wrapper writes a config that is the seat's own
seat.jsonminus the server-side--visionflag, then runs:The two runs built conversations of 3,682 and 36,622 tokens (
--repeatsets the size; I no longer have the exact values I passed, so the token counts are the numbers of record).2. A server-side probe through an OpenAI-compatible proxy in front of the Strata server, with the cache on: conversations A and B (two ~18k-token slices of text) read, then each returned to, then a second, more realistic shape: three conversations of different sizes interleaved A1 B1 C1 A2 B2 C2.
The probe is
strata.sh parking-probe; the realistic shape isPROBE_CHARS="480000 80000 28000" strata.sh parking-probe.Results:
parking_test.py(bare engine, 16 GiB / 4 slots)--kv-resident 32768)Fit through those two points: parked size is roughly 0.44 GB fixed plus 26.5 KB per token.
I used that to size the budget; I have only two points, so treat it as a rough line, not a model.
Wall time for the two runs was 81 s and 282 s.
Results: server probe, two ~18k conversations (16 GiB / 4 slots, 2026-10-22)
Counters over the probe: parks +4, restores +2, evictions 0, two conversations parked.
Re-run after moving to 24 GiB / 6 slots (2026-10-23): the same shape restored 18,844 tokens in 33.2 ms and 18,310 in 41.2 ms (99.9 % reused), parks +3, restores +2, evictions 0.
Results: alternation probe, 3 conversations (24 GiB / 6 slots, 2026-10-23)
Counters: parks +6, restores +5, evictions 0; two conversations parked at 4.47 GB of the 24 GiB budget.
Observation: restore time scales about linearly, roughly 1 ms per 1k tokens, over these three points (23 to 125 ms for 8k to 132k tokens).
One caveat on the cold-read column: its token counts (115,349 / 4,738 / 8,381) are smaller than the conversation sizes (131.7k / 21.1k / 8.4k). For A and B, the checkpoint restore described in the next section accounts for at least part of the gap; for C (61 tokens) I have not traced it.
Note on the cold-read column: the sizes there are what the record lists as read on the first pass, not the full probe size.
Observation: a parked conversation also serves a new one that shares its prefix
In that probe, A1 and B1 (the first, "cold" passes) each restored a 16,384-token checkpoint left by earlier conversations from my default probe, which used the same corpus text as a prefix.
So a parked conversation seems to also warm a new conversation that shares its prefix, at 16K-checkpoint granularity.
I did not design a test for this; it fell out of the probe, so I have one observation, not a measurement of how it behaves in general.
Other observations
/metricsconversation_cacheblock reportedenabled true, budget and slots as configured.NOT tested
"parallel": N) with the cache on. I serve one request at a time.--batch-mtp.POST /slots/0?action=save|restore) together with parking.Two questions
From reading
docs/DETAILS.md(around line 756 in the tree I have) the conversation cache evicts oldest-first, and I found no way to pin or reserve a slot, or to tell the engine a conversation is finished.In my setup one long-lived orchestrator context (100k+ tokens) shares the seat with a stream of short one-shot calls.
The workaround I have is per-request
"strata_checkpoint": falsefor the one-shot callers, set at my proxy by caller class.Is a reserve/pin plus an explicit release (so a finished conversation frees its slot instead of waiting to be the oldest) something you would consider, or is there an existing way I missed?
/metrics.I would like to alert when a conversation that should come back does not get restored.
Can
requests/requests_reusedin/metricsdistinguish a returning conversation that missed the cache from a new conversation that never was in it, or is that not recoverable from the counters?Happy to rerun anything on this hardware if a different shape would help your coverage.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.
The Strata project