[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

Closed
opened 2026-11-07 14:38:15 +07:00 by bsakaguchi · 1 comment
Owner

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

  • Hardware: AMD Ryzen AI Max+ 395 (Strix Halo), Radeon 8060S iGPU (gfx1151), 128 GB unified memory.
  • Software: Strata v0.1.40 (tag sha 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).
  • Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS (the two-file GGUF, plus --ple-gguf), int8 K/V.
  • Seat flags: --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.
  • Env: 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.
  • Cache config: --conversation-cache-mib 16384 --conversation-cache-slots 4 for the parking_test.py runs and the first server probe (2026-10-22); --conversation-cache-mib 24576 --conversation-cache-slots 6 for the alternation probe (2026-10-23).
  • Serving: one process, one request at a time (no 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.json minus the server-side --vision flag, then runs:

cd /strata && .venv/bin/python tools/parking_test.py --exe engine/strata --config /cfg/parking-test.json --repeat <REPEAT> --max-new 120 --extra "--conversation-cache-mib 16384 --conversation-cache-slots 4 --adapt-every 1000000"

The two runs built conversations of 3,682 and 36,622 tokens (--repeat sets 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 is PROBE_CHARS="480000 80000 28000" strata.sh parking-probe.

Results: parking_test.py (bare engine, 16 GiB / 4 slots)

Conversation A Follow-up tokens vs. unparked Restore Parked size K/V reused on second park
3,682 tokens IDENTICAL, 96/96 18.8 ms 533.5 MB 57.7 MB
36,622 tokens (past --kv-resident 32768) IDENTICAL, 95/95 26.3 ms 1.41 GB 558.8 MB

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)

Cold read Return (reused + newly read) Return latency
A 18,779 tokens in 17.5 s (1,071 tok/s) 18,821 of 18,846 reused + 25 read 490 ms
B 18,295 tokens in 17.0 s 18,344 of 18,367 reused + 23 read 437 ms

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)

Conversation Tokens Cold first read Return restored Reused Restore time
A 131.7k 115,349 tokens in 104 s (1,105 tok/s) 131,791 tokens (23 read, prompt done in 539 ms) 100.0 % 125.3 ms
B 21.1k 4,738 tokens in 5.3 s 21,181 tokens 99.9 % 45.1 ms
C 8.4k 8,381 tokens in 7.8 s 8,442 tokens 99.7 % 23.2 ms

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

  • Parking cost host RAM, not GPU memory: GTT read 46.0 GiB, unchanged by enabling it, and available host RAM went from 67 to 65 GiB.
  • The /metrics conversation_cache block reported enabled true, budget and slots as configured.

NOT tested

  • Batch slots ("parallel": N) with the cache on. I serve one request at a time.
  • --batch-mtp.
  • Session files (POST /slots/0?action=save|restore) together with parking.
  • Any model other than the one above; any quant other than IQ3_XXS; any backend other than HIP on this one chip.
  • Long-run behaviour beyond the probes above: no soak under mixed traffic is reported here.
  • Anything about CUDA/Vulkan; I only have the HIP result.

Two questions

  1. Reserve/pin for a long-lived conversation.
    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": false for 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?
  2. Telling a returning conversation from a new one in /metrics.
    I would like to alert when a conversation that should come back does not get restored.
    Can requests / requests_reused in /metrics distinguish 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.

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 - Hardware: AMD Ryzen AI Max+ 395 (Strix Halo), Radeon 8060S iGPU (gfx1151), 128 GB unified memory. - Software: Strata v0.1.40 (tag sha `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). - Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS (the two-file GGUF, plus `--ple-gguf`), int8 K/V. - Seat flags: `--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`. - Env: `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. - Cache config: `--conversation-cache-mib 16384 --conversation-cache-slots 4` for the `parking_test.py` runs and the first server probe (2026-10-22); `--conversation-cache-mib 24576 --conversation-cache-slots 6` for the alternation probe (2026-10-23). - Serving: one process, one request at a time (no `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.json` minus the server-side `--vision` flag, then runs: ``` cd /strata && .venv/bin/python tools/parking_test.py --exe engine/strata --config /cfg/parking-test.json --repeat <REPEAT> --max-new 120 --extra "--conversation-cache-mib 16384 --conversation-cache-slots 4 --adapt-every 1000000" ``` The two runs built conversations of 3,682 and 36,622 tokens (`--repeat` sets 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 is `PROBE_CHARS="480000 80000 28000" strata.sh parking-probe`. ## Results: `parking_test.py` (bare engine, 16 GiB / 4 slots) | Conversation A | Follow-up tokens vs. unparked | Restore | Parked size | K/V reused on second park | |---|---|---|---|---| | 3,682 tokens | IDENTICAL, 96/96 | 18.8 ms | 533.5 MB | 57.7 MB | | 36,622 tokens (past `--kv-resident 32768`) | IDENTICAL, 95/95 | 26.3 ms | 1.41 GB | 558.8 MB | 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) | | Cold read | Return (reused + newly read) | Return latency | |---|---|---|---| | A | 18,779 tokens in 17.5 s (1,071 tok/s) | 18,821 of 18,846 reused + 25 read | 490 ms | | B | 18,295 tokens in 17.0 s | 18,344 of 18,367 reused + 23 read | 437 ms | 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) | Conversation | Tokens | Cold first read | Return restored | Reused | Restore time | |---|---|---|---|---|---| | A | 131.7k | 115,349 tokens in 104 s (1,105 tok/s) | 131,791 tokens (23 read, prompt done in 539 ms) | 100.0 % | 125.3 ms | | B | 21.1k | 4,738 tokens in 5.3 s | 21,181 tokens | 99.9 % | 45.1 ms | | C | 8.4k | 8,381 tokens in 7.8 s | 8,442 tokens | 99.7 % | 23.2 ms | 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 - Parking cost host RAM, not GPU memory: GTT read 46.0 GiB, unchanged by enabling it, and available host RAM went from 67 to 65 GiB. - The `/metrics` `conversation_cache` block reported `enabled true`, budget and slots as configured. ## NOT tested - Batch slots (`"parallel": N`) with the cache on. I serve one request at a time. - `--batch-mtp`. - Session files (`POST /slots/0?action=save|restore`) together with parking. - Any model other than the one above; any quant other than IQ3_XXS; any backend other than HIP on this one chip. - Long-run behaviour beyond the probes above: no soak under mixed traffic is reported here. - Anything about CUDA/Vulkan; I only have the HIP result. ## Two questions 1. **Reserve/pin for a long-lived conversation.** 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": false` for 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? 2. **Telling a returning conversation from a new one in `/metrics`.** I would like to alert when a conversation that should come back does not get restored. Can `requests` / `requests_reused` in `/metrics` distinguish 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.
Author
Owner

@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

<!-- gh-comment-id:6658807446 --> @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
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#3124
No description provided.