[GH-ISSUE #4677] [Engine] parked conversation snapshot sometimes rejected on continuation — falls back to an older checkpoint and re-reads ~6% of the prompt #2133

Open
opened 2026-11-04 01:56:56 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @hanchengme on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4677

Area

[Engine] (speed, kernels, models, the server and API)

Desktop app, Terminal or source?

Source, and the packaged engine too. We run serve/server.py --engine strata with the serve side at tag v0.2.8 (870aedd9). Three engine binaries are involved:

engine binary SHA-256 note
packaged 0.1.54 (v0.2.8 release assets) efc84b874c18fcf531bb89acaec1c6f16df0b0d96a7d48b3dff0f284d7255fc5 its BUILD.json reports source: f-amd-vision 8c1aea4bca1b
our HIP build of public 870aedd9, unmodified 053b02e696ef110213548e25a38af567b7e1b848dca28201d67c06b21861ccbf engine 0.1.54
the same build + the attached patch (STRATA_SERVE_STOP_BOUND=1) 9cd5d5d4bc3cbe688c3b216a72fe5b6d5019879a95abf7116a203e310d67463a engine 0.1.54

All three show the fallback. One caveat we want to state up front: the packaged build self-reports its source object as f-amd-vision 8c1aea4bca1b, which we could not locate in the public repository, so all source reading and the patch are against the public 870aedd9; we do not claim that is byte-for-byte the shipped source.

What happened

A parked conversation snapshot is sometimes not accepted on continuation, and the engine falls back to a mid-prompt checkpoint. The whole generated answer's K/V is discarded and 809 tokens of prefill are paid again. Every answer in these runs is verified by an acceptance code embedded in the request, and 96/96 correctness checks passed — this is a cache-identity problem, not a wrong-answer problem.

Same serve, same model, same client script. Hit:

strata serve: conversation cache: restored 12844 tokens (live) in 86.9 ms
strata serve: prompt 12878 tokens = 12844 reused + 34 read in 377 ms (90.3 tok/s), 768 generated in 9155 ms (83.9 tok/s)

Miss, same conversation, next turn:

strata serve: conversation cache: restored 12069 tokens (checkpoint) in 91.3 ms
strata serve: prompt 12878 tokens = 12069 reused + 809 read in 1531 ms (528.5 tok/s), 768 generated in 10014 ms (76.7 tok/s)

The prompt is 12,076 tokens; after a 768-token answer the parked length should be 12,843/12,844 (last emitted token left unconsumed, as in the scalar loop). On the miss, reuse drops to 12,069 and reuse fraction goes 99.73% → 93.72%; time to first token 0.31–0.55 s → 0.96–1.29 s.

Two things make this worth a look:

  1. It only appears with long answers. A 32-conversation round-robin of ~12K-token conversations that each answer a short acceptance code reuses 99.79% weighted across three rounds with zero fallbacks. A benchmark that only continues short answers will never see this.
  2. The engine log contains parked 12845 tokens 6 times, where the correct parked length for this shape is 12,843/12,844 — i.e. a snapshot parked with more tokens than the client ever received.

The code that can produce that, in the single-request speculative decode paths of 870aedd9 (normal path around src/program/generate.cpp:16749–16802, and the experimental two-verifier path around line 16334): the accepted rows of a verify window are committed first, and the output loop truncates to max_new / EOS afterwards.

int a = merged ? T - 1 : 0;
while (a < T - 1 && window[a + 1] == outv[a]) ++a;
...
if (!V1(A).pl_commit_async(a + 1, err)) return die(err);
for (int i = 0; i <= a; ++i) consumed.push_back(window[i]);

If the last window of a request accepts more rows than the request is allowed to emit, the live state and the consumed sequence — and therefore the snapshot that gets parked — carry tokens the client never got. Since conversation_prefix() requires the snapshot's full token sequence to be a prefix of the new prompt, and the snapshot also carries running state so it cannot be rewound to a shorter common prefix, the whole snapshot is rejected and the older checkpoint is used instead.

We tried a bounded-commit change (attached, opt-in, HIP only): cap the accepted rows at the rows this request can actually emit, and end at the first EOS, before pl_commit_async. Merged prompt windows keep the current behaviour; the grouped --batch MTP path is untouched because it already bounds emittable rows when it starts a window.

  • The policy function is pure and tested exhaustively against the unmodified output loop used as the reference: 1–16 accepted rows × 1–18 remaining budget × EOS at every position = 2,736 cases, -Wall -Wextra -Werror on both clang++ (macOS) and g++ (Linux).
  • Four fixed real tasks (inventory / support / SQL / Python text) produce byte-identical output SHA-256 to the packaged binary, so visible output does not change.
  • Weighted reuse on this long-answer subset went from 98.23% (4 continuations, unmodified v0.2.8 build) to 98.98% (8 continuations, patched), with 7 of 8 continuations hitting.

It is not a complete fix, and we want help with the rest. One of the eight patched continuations still falls back to the same 12069 tokens (checkpoint). So a second source of sequence mismatch exists that we have not located, and since our shape runs --batch 8 --batch-groups 2, the snapshot that failed may have been written by the batch path at all rather than by the two paths we changed.

Smallest steps or command that reproduce it

  1. Serve with the conversation cache on: --conversation-cache-mib 16384 --conversation-cache-slots 16 --conversation-cache-min-tokens 4096 --conversation-cache-park-gain 128 --conversation-cache-min-free-mib 32768, --batch 8 --batch-groups 2, 262144 context, KV int8, --spec 4 with MTP, temp 0.
  2. Open 4 conversations with ~12,076 prompt tokens each; ask each one for a 768–769 token answer (a list, not a code word).
  3. Interleave 32 short requests (< the 4096-token park minimum) so the 16 batch slots churn and the four conversations get parked out.
  4. Continue each conversation, echoing the previous reply back verbatim, and read timings.cache_n / prompt N tokens = X reused + Y read.
  5. Expected: cache_n ≈ 12843–12844, ~34 tokens read. Observed on some continuations: cache_n = 12069, 809 tokens read, and a restored 12069 tokens (checkpoint) line in the engine log.

Continue the same conversations with short answers instead and reuse stays ~99.79% with no fallback at all — that is the trap in reproducing this.

Reproduction status

Reproduced locally, on this machine, on:

  • the packaged engine 0.1.54 (v0.2.8 release assets) — first seen during our --conversation-cache-park-gain sweeps (1024 / 128 / 0), where the run config left exe unset so serve loaded /opt/Strata/engine/strata; every threshold showed the same partial fallback, so the park thresholds are not the cause;
  • our own HIP build of the public tag v0.2.8 (head 870aedd9), unmodified — 1 of 4 continuations fell back to the 12,069-token checkpoint (93.72% reuse);
  • the same build with the attached bounded-commit patch — 7 of 8 continuations hit, 1 of 8 still fell back (93.71%).

Not every continuation shows it; in these runs roughly one in four to one in eight. All prompts are synthetic; no real user content is included in the attachments.

Strata version

Strata 0.2.8 · engine 0.1.54. Serve code at tag v0.2.8 head 870aedd9; engine binaries and their SHA-256 are listed under "Desktop app, Terminal or source?" above.

Graphics card, memory and system

4× Radeon AI PRO R9700 32 GB (gfx1201) behind a PLX PCIe switch · EPYC 7452 (32C/64T) · 251 GiB RAM · Linux, kernel 7.0.0-38-generic · ROCm 7.2.4, hipBLASLt 100200 · serve/server.py --engine strata, two replicas of two cards each, 8 batch slots per replica (16 slots total).

Also present in the run config and unrelated to this report: HSA_ENABLE_SDMA=0, which is our mitigation for the separate SDMA page-fault crashes in #4591. Nothing here crashes — the native engine PIDs were unchanged through these runs and there were no kernel GPU fault signatures in the window.

Model, size and settings

Qwen3.8-Flash-Next IQ3_S · 262144 context · KV int8 · --kv-resident 20480 · --spec 4 + MTP · --batch 8 --batch-groups 2 (STRATA_PIPED_MTP=1) · --layer-split 25 --trim-stage-weights · conversation cache --conversation-cache-mib 16384 --conversation-cache-slots 16 --conversation-cache-min-tokens 4096 --conversation-cache-park-gain 128 --conversation-cache-min-free-mib 32768 · temperature 0, thinking off, pictures enabled and verified separately.

Reproduction shape:

  1. Four conversations of ~12,076 prompt tokens each; each turn asks for a 768–769 token answer.
  2. Interleave 32 short requests (below the 4096-token park minimum) so the 16 slots churn and the four conversations are parked out.
  3. Continue each conversation, echoing the previous reply back verbatim, and read timings.cache_n plus the prompt N tokens = X reused + Y read line.

Expected on the continuation: cache_n ≈ 12843–12844, ~34 tokens read. Observed on some continuations: cache_n = 12069, 809 tokens read. Hit and miss side by side, same serve and script:

conversation cache: restored 12844 tokens (live) in 86.9 ms
prompt 12878 tokens = 12844 reused + 34 read in 377 ms (90.3 tok/s), 768 generated in 9155 ms (83.9 tok/s)
...
conversation cache: restored 12069 tokens (checkpoint) in 91.3 ms
prompt 12878 tokens = 12069 reused + 809 read in 1531 ms (528.5 tok/s), 768 generated in 10014 ms (76.7 tok/s)

Reuse fraction 99.73% → 93.72%; time to first token 0.31–0.55 s → 0.96–1.29 s. Every answer carries an acceptance code that we check, and 96/96 checks passed, so the answer is right and only the cache identity failed.

The trap when reproducing: continue those conversations with short answers instead and everything is fine — a 32-conversation × 12K round robin with short answers reuses 99.79% weighted over three rounds with zero fallbacks. The failure needs a long answer, because that is what makes the last verify window accept more rows than the request can still emit.

What we ruled out

  • Park policy thresholds: --conversation-cache-park-gain 1024, 128 and 0 all showed the same fallback; --spec 2 also showed it (single-stream decode 72.88 vs 82.37 tok/s in that same shape, so it is not a free knob), therefore the thresholds and the draft depth are not the cause.
  • Cache budget and admission: at the miss the log shows evictions=0 with parked bytes far below the 16 GiB budget, and MemAvailable stayed above the 32 GiB floor; min-tokens was met.
  • Client history mismatch: the client echoes the model's own reply verbatim, and the same script hits on other continuations of the same conversations.
  • Crashes / GPU faults / memory pressure: zero kernel GPU fault signatures in the run window, engine native PIDs unchanged before and after.
  • Correctness: the four fixed tasks give byte-identical output SHA-256 across the packaged binary, the unmodified source build and the patched build.

The code we found, and the attached attempt

In the single-request speculative decode paths of 870aedd9 (normal path around src/program/generate.cpp:16749–16802, experimental two-verifier path around :16334), the accepted rows of a verify window are committed before the output loop truncates to max_new / EOS:

int a = merged ? T - 1 : 0;
while (a < T - 1 && window[a + 1] == outv[a]) ++a;
...
if (!V1(A).pl_commit_async(a + 1, err)) return die(err);
for (int i = 0; i <= a; ++i) consumed.push_back(window[i]);

So the state and consumed — and the snapshot parked from them — can contain accepted rows whose outputs this request never emits. Since conversation_prefix() needs the snapshot's full token sequence to be a prefix of the new prompt, and the snapshot carries running state that cannot be rewound arbitrarily, the candidate is rejected as a whole rather than truncated to the shared prefix. The over-commit shows up in the log as parked 12845 tokens where this shape should park 12,843/12,844.

Attached spec-stop-bound-complete.patch adds one pure helper and calls it before the commit in both single-request paths (STRATA_SERVE_STOP_BOUND=1, HIP only, off by default); merged prompt windows keep today's behaviour. git apply --check passes against 870aedd9.

What it does and does not fix is stated above; the honest summary is that over-commit is real and reproducible, the patch is behaviour-preserving for output and improves this subset, but it does not remove every fallback.

Logs

engine-log-fallback-excerpt.txt, plus arm-labelled machine-readable results with the run configuration SHA-256 in continuity-unpatched-public-0.2.8.json and continuity-patched-stop-bound.json. The engine's own serve log lines carry no timestamps and our log files span several restarts, so the counts inside that file are not attributed build-by-build — the JSON files are.

All requests in the runs are synthetic tasks; no api keys, credentials or real user sessions appear in any attachment.

Questions

  1. Which path writes the snapshot for a batched slot under --batch 8 --batch-groups 2 (with STRATA_PIPED_MTP=1)? Does that path's snapshot token sequence stay aligned with what the request emitted, or can it also carry rows whose outputs were cut by max_new / EOS?
  2. What exactly does conversation_prefix() compare, and is there a debug switch that prints why a candidate snapshot was rejected — the first differing token position, or which running-state array / shape mismatched? That would locate the residual case in a single run instead of another 72-request sweep.
  3. Is commit-then-truncate in the single-request spec paths deliberate (per-slot draft K/V, or restoring a longer sequence)? If bounded commit is acceptable in principle we will send a PR — but we can only validate HIP/gfx1201 on one machine, so CUDA / SYCL / Metal coverage would have to come from you. We did not build or test those, and we did not GPU-validate the experimental two-verifier path (under our sampling defaults it falls back to the normal path).

Not covered

  • CUDA, SYCL, Metal, Windows: not built, not run.
  • The grouped --batch MTP path: not changed, not analysed beyond reading that it bounds emittable rows at window start.
  • Whether the residual fallback is one cause or several: unknown.
  • Speed: this issue is not a speed claim; the single-stream numbers of this configuration are reported elsewhere.

stop-bound-20261030.tar.gz

Originally created by @hanchengme on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4677 ### Area [Engine] (speed, kernels, models, the server and API) ### Desktop app, Terminal or source? Source, and the packaged engine too. We run `serve/server.py --engine strata` with the serve side at tag `v0.2.8` (`870aedd9`). Three engine binaries are involved: | engine binary | SHA-256 | note | | --- | --- | --- | | packaged 0.1.54 (v0.2.8 release assets) | `efc84b874c18fcf531bb89acaec1c6f16df0b0d96a7d48b3dff0f284d7255fc5` | its `BUILD.json` reports `source: f-amd-vision 8c1aea4bca1b` | | our HIP build of public `870aedd9`, unmodified | `053b02e696ef110213548e25a38af567b7e1b848dca28201d67c06b21861ccbf` | engine 0.1.54 | | the same build + the attached patch (`STRATA_SERVE_STOP_BOUND=1`) | `9cd5d5d4bc3cbe688c3b216a72fe5b6d5019879a95abf7116a203e310d67463a` | engine 0.1.54 | All three show the fallback. One caveat we want to state up front: the packaged build self-reports its source object as `f-amd-vision 8c1aea4bca1b`, which we could not locate in the public repository, so all source reading and the patch are against the public `870aedd9`; we do not claim that is byte-for-byte the shipped source. ### What happened A parked conversation snapshot is sometimes not accepted on continuation, and the engine falls back to a mid-prompt checkpoint. The whole generated answer's K/V is discarded and 809 tokens of prefill are paid again. Every answer in these runs is verified by an acceptance code embedded in the request, and 96/96 correctness checks passed — this is a cache-identity problem, not a wrong-answer problem. Same serve, same model, same client script. Hit: ``` strata serve: conversation cache: restored 12844 tokens (live) in 86.9 ms strata serve: prompt 12878 tokens = 12844 reused + 34 read in 377 ms (90.3 tok/s), 768 generated in 9155 ms (83.9 tok/s) ``` Miss, same conversation, next turn: ``` strata serve: conversation cache: restored 12069 tokens (checkpoint) in 91.3 ms strata serve: prompt 12878 tokens = 12069 reused + 809 read in 1531 ms (528.5 tok/s), 768 generated in 10014 ms (76.7 tok/s) ``` The prompt is 12,076 tokens; after a 768-token answer the parked length should be 12,843/12,844 (last emitted token left unconsumed, as in the scalar loop). On the miss, reuse drops to 12,069 and reuse fraction goes 99.73% → 93.72%; time to first token 0.31–0.55 s → 0.96–1.29 s. Two things make this worth a look: 1. It only appears with **long answers**. A 32-conversation round-robin of ~12K-token conversations that each answer a short acceptance code reuses 99.79% weighted across three rounds with zero fallbacks. A benchmark that only continues short answers will never see this. 2. The engine log contains `parked 12845 tokens` 6 times, where the correct parked length for this shape is 12,843/12,844 — i.e. a snapshot parked with **more tokens than the client ever received**. The code that can produce that, in the single-request speculative decode paths of `870aedd9` (normal path around `src/program/generate.cpp:16749–16802`, and the experimental two-verifier path around line 16334): the accepted rows of a verify window are committed first, and the output loop truncates to `max_new` / EOS afterwards. ```cpp int a = merged ? T - 1 : 0; while (a < T - 1 && window[a + 1] == outv[a]) ++a; ... if (!V1(A).pl_commit_async(a + 1, err)) return die(err); for (int i = 0; i <= a; ++i) consumed.push_back(window[i]); ``` If the last window of a request accepts more rows than the request is allowed to emit, the live state and the `consumed` sequence — and therefore the snapshot that gets parked — carry tokens the client never got. Since `conversation_prefix()` requires the snapshot's **full** token sequence to be a prefix of the new prompt, and the snapshot also carries running state so it cannot be rewound to a shorter common prefix, the whole snapshot is rejected and the older checkpoint is used instead. We tried a bounded-commit change (attached, opt-in, HIP only): cap the accepted rows at the rows this request can actually emit, and end at the first EOS, before `pl_commit_async`. Merged prompt windows keep the current behaviour; the grouped `--batch` MTP path is untouched because it already bounds emittable rows when it starts a window. - The policy function is pure and tested exhaustively against the unmodified output loop used as the reference: 1–16 accepted rows × 1–18 remaining budget × EOS at every position = 2,736 cases, `-Wall -Wextra -Werror` on both clang++ (macOS) and g++ (Linux). - Four fixed real tasks (inventory / support / SQL / Python text) produce byte-identical output SHA-256 to the packaged binary, so visible output does not change. - Weighted reuse on this long-answer subset went from **98.23%** (4 continuations, unmodified v0.2.8 build) to **98.98%** (8 continuations, patched), with 7 of 8 continuations hitting. **It is not a complete fix, and we want help with the rest.** One of the eight patched continuations still falls back to the same `12069 tokens (checkpoint)`. So a second source of sequence mismatch exists that we have not located, and since our shape runs `--batch 8 --batch-groups 2`, the snapshot that failed may have been written by the batch path at all rather than by the two paths we changed. ### Smallest steps or command that reproduce it 1. Serve with the conversation cache on: `--conversation-cache-mib 16384 --conversation-cache-slots 16 --conversation-cache-min-tokens 4096 --conversation-cache-park-gain 128 --conversation-cache-min-free-mib 32768`, `--batch 8 --batch-groups 2`, 262144 context, KV int8, `--spec 4` with MTP, temp 0. 2. Open 4 conversations with ~12,076 prompt tokens each; ask each one for a 768–769 token answer (a list, not a code word). 3. Interleave 32 short requests (< the 4096-token park minimum) so the 16 batch slots churn and the four conversations get parked out. 4. Continue each conversation, echoing the previous reply back verbatim, and read `timings.cache_n` / `prompt N tokens = X reused + Y read`. 5. Expected: `cache_n ≈ 12843–12844`, ~34 tokens read. Observed on some continuations: `cache_n = 12069`, 809 tokens read, and a `restored 12069 tokens (checkpoint)` line in the engine log. Continue the same conversations with short answers instead and reuse stays ~99.79% with no fallback at all — that is the trap in reproducing this. ### Reproduction status Reproduced locally, on this machine, on: - the packaged engine 0.1.54 (v0.2.8 release assets) — first seen during our `--conversation-cache-park-gain` sweeps (1024 / 128 / 0), where the run config left `exe` unset so serve loaded `/opt/Strata/engine/strata`; every threshold showed the same partial fallback, so the park thresholds are not the cause; - our own HIP build of the public tag `v0.2.8` (head `870aedd9`), unmodified — 1 of 4 continuations fell back to the 12,069-token checkpoint (93.72% reuse); - the same build with the attached bounded-commit patch — 7 of 8 continuations hit, 1 of 8 still fell back (93.71%). Not every continuation shows it; in these runs roughly one in four to one in eight. All prompts are synthetic; no real user content is included in the attachments. ### Strata version Strata 0.2.8 · engine 0.1.54. Serve code at tag `v0.2.8` head `870aedd9`; engine binaries and their SHA-256 are listed under "Desktop app, Terminal or source?" above. ### Graphics card, memory and system 4× Radeon AI PRO R9700 32 GB (gfx1201) behind a PLX PCIe switch · EPYC 7452 (32C/64T) · 251 GiB RAM · Linux, kernel 7.0.0-38-generic · ROCm 7.2.4, hipBLASLt 100200 · `serve/server.py --engine strata`, two replicas of two cards each, 8 batch slots per replica (16 slots total). Also present in the run config and unrelated to this report: `HSA_ENABLE_SDMA=0`, which is our mitigation for the separate SDMA page-fault crashes in #4591. Nothing here crashes — the native engine PIDs were unchanged through these runs and there were no kernel GPU fault signatures in the window. ### Model, size and settings Qwen3.8-Flash-Next IQ3_S · 262144 context · KV int8 · `--kv-resident 20480` · `--spec 4` + MTP · `--batch 8 --batch-groups 2` (`STRATA_PIPED_MTP=1`) · `--layer-split 25 --trim-stage-weights` · conversation cache `--conversation-cache-mib 16384 --conversation-cache-slots 16 --conversation-cache-min-tokens 4096 --conversation-cache-park-gain 128 --conversation-cache-min-free-mib 32768` · temperature 0, thinking off, pictures enabled and verified separately. Reproduction shape: 1. Four conversations of ~12,076 prompt tokens each; each turn asks for a 768–769 token answer. 2. Interleave 32 short requests (below the 4096-token park minimum) so the 16 slots churn and the four conversations are parked out. 3. Continue each conversation, echoing the previous reply back verbatim, and read `timings.cache_n` plus the `prompt N tokens = X reused + Y read` line. Expected on the continuation: `cache_n ≈ 12843–12844`, ~34 tokens read. Observed on some continuations: `cache_n = 12069`, 809 tokens read. Hit and miss side by side, same serve and script: ``` conversation cache: restored 12844 tokens (live) in 86.9 ms prompt 12878 tokens = 12844 reused + 34 read in 377 ms (90.3 tok/s), 768 generated in 9155 ms (83.9 tok/s) ... conversation cache: restored 12069 tokens (checkpoint) in 91.3 ms prompt 12878 tokens = 12069 reused + 809 read in 1531 ms (528.5 tok/s), 768 generated in 10014 ms (76.7 tok/s) ``` Reuse fraction 99.73% → 93.72%; time to first token 0.31–0.55 s → 0.96–1.29 s. Every answer carries an acceptance code that we check, and 96/96 checks passed, so the answer is right and only the cache identity failed. The trap when reproducing: continue those conversations with **short** answers instead and everything is fine — a 32-conversation × 12K round robin with short answers reuses 99.79% weighted over three rounds with zero fallbacks. The failure needs a long answer, because that is what makes the last verify window accept more rows than the request can still emit. ### What we ruled out - Park policy thresholds: `--conversation-cache-park-gain` 1024, 128 and 0 all showed the same fallback; `--spec 2` also showed it (single-stream decode 72.88 vs 82.37 tok/s in that same shape, so it is not a free knob), therefore the thresholds and the draft depth are not the cause. - Cache budget and admission: at the miss the log shows `evictions=0` with parked bytes far below the 16 GiB budget, and `MemAvailable` stayed above the 32 GiB floor; `min-tokens` was met. - Client history mismatch: the client echoes the model's own reply verbatim, and the same script hits on other continuations of the same conversations. - Crashes / GPU faults / memory pressure: zero kernel GPU fault signatures in the run window, engine native PIDs unchanged before and after. - Correctness: the four fixed tasks give byte-identical output SHA-256 across the packaged binary, the unmodified source build and the patched build. ### The code we found, and the attached attempt In the single-request speculative decode paths of `870aedd9` (normal path around `src/program/generate.cpp:16749–16802`, experimental two-verifier path around `:16334`), the accepted rows of a verify window are committed before the output loop truncates to `max_new` / EOS: ```cpp int a = merged ? T - 1 : 0; while (a < T - 1 && window[a + 1] == outv[a]) ++a; ... if (!V1(A).pl_commit_async(a + 1, err)) return die(err); for (int i = 0; i <= a; ++i) consumed.push_back(window[i]); ``` So the state and `consumed` — and the snapshot parked from them — can contain accepted rows whose outputs this request never emits. Since `conversation_prefix()` needs the snapshot's full token sequence to be a prefix of the new prompt, and the snapshot carries running state that cannot be rewound arbitrarily, the candidate is rejected as a whole rather than truncated to the shared prefix. The over-commit shows up in the log as `parked 12845 tokens` where this shape should park 12,843/12,844. Attached `spec-stop-bound-complete.patch` adds one pure helper and calls it before the commit in both single-request paths (`STRATA_SERVE_STOP_BOUND=1`, HIP only, off by default); merged prompt windows keep today's behaviour. `git apply --check` passes against `870aedd9`. What it does and does not fix is stated above; the honest summary is that over-commit is real and reproducible, the patch is behaviour-preserving for output and improves this subset, but it does not remove every fallback. ### Logs `engine-log-fallback-excerpt.txt`, plus arm-labelled machine-readable results with the run configuration SHA-256 in `continuity-unpatched-public-0.2.8.json` and `continuity-patched-stop-bound.json`. The engine's own serve log lines carry no timestamps and our log files span several restarts, so the counts inside that file are not attributed build-by-build — the JSON files are. All requests in the runs are synthetic tasks; no api keys, credentials or real user sessions appear in any attachment. ### Questions 1. Which path writes the snapshot for a **batched** slot under `--batch 8 --batch-groups 2` (with `STRATA_PIPED_MTP=1`)? Does that path's snapshot token sequence stay aligned with what the request emitted, or can it also carry rows whose outputs were cut by `max_new` / EOS? 2. What exactly does `conversation_prefix()` compare, and is there a debug switch that prints **why** a candidate snapshot was rejected — the first differing token position, or which running-state array / shape mismatched? That would locate the residual case in a single run instead of another 72-request sweep. 3. Is commit-then-truncate in the single-request spec paths deliberate (per-slot draft K/V, or restoring a longer sequence)? If bounded commit is acceptable in principle we will send a PR — but we can only validate HIP/gfx1201 on one machine, so CUDA / SYCL / Metal coverage would have to come from you. We did not build or test those, and we did not GPU-validate the experimental two-verifier path (under our sampling defaults it falls back to the normal path). ### Not covered - CUDA, SYCL, Metal, Windows: not built, not run. - The grouped `--batch` MTP path: not changed, not analysed beyond reading that it bounds emittable rows at window start. - Whether the residual fallback is one cause or several: unknown. - Speed: this issue is not a speed claim; the single-stream numbers of this configuration are reported elsewhere. [stop-bound-20261030.tar.gz](https://github.com/user-attachments/files/34167321/stop-bound-20261030.tar.gz)
Author
Owner

@Niko1221 commented on GitHub (Oct 31, 2026):

Your analysis is clear, and the test of the policy function is what we'd want. We haven't applied the patch. It changes the commit path of the speculative decode in the engine, so it needs a run on an AMD card with the long-answer case (4 cards, --batch 8 --batch-groups 2). Our AMD boxes are busy this week, so we'll run your 8-continuation test against the patch when one frees up.

About the build ID: the packaged engine's f-amd-vision 8c1aea4bca1b is a branch name from our side, so the public source you read can differ from it. If you can, please send the first lines of the engine log of the packaged build, with the prompt and answer lengths of a miss.

<!-- gh-comment-id:6542509224 --> @Niko1221 commented on GitHub (Oct 31, 2026): Your analysis is clear, and the test of the policy function is what we'd want. We haven't applied the patch. It changes the commit path of the speculative decode in the engine, so it needs a run on an AMD card with the long-answer case (4 cards, `--batch 8 --batch-groups 2`). Our AMD boxes are busy this week, so we'll run your 8-continuation test against the patch when one frees up. About the build ID: the packaged engine's `f-amd-vision 8c1aea4bca1b` is a branch name from our side, so the public source you read can differ from it. If you can, please send the first lines of the engine log of the packaged build, with the prompt and answer lengths of a miss.
Author
Owner

@hanchengme commented on GitHub (Oct 31, 2026):

Thanks — and understood on the AMD run; no rush, and happy for you to take the 8-continuation test yourself. Our box is exactly the shape you described (4× R9700 gfx1201, 2 replicas × 2 cards, --batch 8 --batch-groups 2, STRATA_PIPED_MTP=1, conversation cache 16 GiB / 16 slots per replica), so if it helps we can re-run the arms here on a schedule and post the numbers, or test an instrumented build from you instead. Two things we owe you, and one new finding that we think matters more than the patch.

1. The packaged-build log you asked for. Attached: packaged-0.1.54-log-window.txt — the engine started: line with the full command line and the following startup lines of a packaged-engine run (2026-10-30 11:37:10, /opt/Strata/engine/strata, top-level SHA-256 efc84b87…, BUILD.json = version 0.1.54, source f-amd-vision 8c1aea4bca1b, variant rx9070, portable true, vision gpu), plus the hit and the miss from that same run, same conversation:

代码块
strata serve: conversation cache: restored 12844 tokens (live) in 86.9 ms
strata serve: prompt 12878 tokens = 12844 reused + 34 read in 377 ms (90.3 tok/s), 768 generated in 9155 ms (83.9 tok/s), drafts accepted 451 of 659, 2 checkpoints
strata serve: conversation cache: parked 13646 tokens in 225.4 ms; parked=1 bytes=577211440 evictions=0 snapshot_bytes=577211440 reused_kv_bytes=196046592
strata serve: conversation cache: restored 12069 tokens (checkpoint) in 91.3 ms
strata serve: prompt 12878 tokens = 12069 reused + 809 read in 1531 ms (528.5 tok/s), 768 generated in 10014 ms (76.7 tok/s), drafts accepted 414 of 663, 2 checkpoints

Lengths for the miss: the first turn is a 12,076-token prompt with a 768-token answer (769 requested); the continuation prompt is 12,878 tokens, client history is a verbatim echo of that answer, max_new_tokens 768 again. Expected reuse 12,844 (+34 read), observed 12,069 (+809 read). Same run, same replica, the over-park signature is in the attached window: parked 12845 tokens where this shape can only park 12,843/12,844, twice, on the packaged binary. So the packaged build shows the same thing we patched, and f-amd-vision 8c1aea4bca1b being a branch name is consistent with our reading — we don't claim the public tree is byte-identical to it.

2. The residual case is a different bug, and we can now point at it. We kept digging after posting, because with the patch applied 7 of 8 continuations hit and 1 still fell back to the same 12,069-token checkpoint. The remaining case is not an over-commit in the spec path: the token sequence the engine parked and the token sequence serve re-derived from the echoed history genuinely differ, mid-answer, at a BPE boundary. From a native prefix trace (identical text on both sides, same model, temperature 0, and the four fixed tasks still produce byte-identical output hashes):

position | snapshot token id / text | new prompt token id / text -- | -- | -- 12254 | 110852 = 触发 | 97227 = 触 12372 | 101901 = 实时 | 135286 = 实时监控

So the snapshot's token sequence stops being a prefix of the new prompt for a reason that has nothing to do with which decode path wrote it, and conversation_prefix() is right to reject it — a whole 12.8k-token snapshot is lost over a handful of boundary tokens. That also predicts why a benchmark with short answers never sees it: fewer tokens of generated text in the history means fewer opportunities for a boundary to land differently.

We fixed it at the serve layer rather than the engine, as a way to confirm the diagnosis: when the incoming history matches the previous turn verbatim, reuse the token ids the engine actually generated for its own reply instead of re-tokenizing it (reuse_generated_prefix, off by default in our build). On exactly the failing 8-continuation shape that moved 6/8 → 8/8 above 99%, weighted reuse 98.22% → 99.73%, mean TTFT 0.683 → 0.515 s, with the first-turn output byte-identical to baseline and decode speed unchanged; in a 16-way concurrency variant 32/32 stayed above 99%. It is a workaround, not the right home for the fix — the engine knows what tokens it emitted, the client does not. For a proper fix on your side it looks like either (a) telling the client which token ids the assistant turn occupies so the next request can be re-derived exactly, or (b) letting the cache match tolerate a boundary re-tokenization instead of demanding an exact prefix, or (c) comparing the parked sequence against the text rather than the ids.

3. The two questions from the original post still stand, and are now the short path to the rest. (i) Which path writes the snapshot for a batched slot under --batch 8 --batch-groups 2 with STRATA_PIPED_MTP=1 — the over-parked 12845 appears with our patch applied, i.e. in a build where both single-request paths are bounded, so a batch path is the likely writer. (ii) A debug switch that prints why a candidate snapshot was rejected — first differing token position, plus the ids/text on each side, would have replaced two 72-request sweeps with one run. With (ii) we can run it on this box and hand you the trace.

Status on our side, so the numbers above are unambiguous: production is currently the public 870aedd9 (v0.2.8) serve plus our HIP build of it with STRATA_SERVE_STOP_BOUND=1, and the serve-layer reuse_generated_prefix guard. If you land your own fix for the over-commit and something that pins the assistant-turn token identity, we will drop both local patches and re-run the arms against the release. And to be explicit about coverage: HIP/gfx1201 only — we have not built or run CUDA, SYCL, Metal, or Windows, and we did not GPU-validate the experimental two-verifier path.

packaged-0.1.54-log-window.txt

2. Your analysis is clear, and the test of the policy function is what we'd want. We haven't applied the patch. It changes the commit path of the speculative decode in the engine, so it needs a run on an AMD card with the long-answer case (4 cards, --batch 8 --batch-groups 2). Our AMD boxes are busy this week, so we'll run your 8-continuation test against the patch when one frees up.
About the build ID: the packaged engine's f-amd-vision 8c1aea4bca1b is a branch name from our side, so the public source you read can differ from it. If you can, please send the first lines of the engine log of the packaged build, with the prompt and answer lengths of a miss.

<!-- gh-comment-id:6543612452 --> @hanchengme commented on GitHub (Oct 31, 2026): <p style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; margin: 16px 0px; color: rgb(15, 17, 21); font-family: -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 18px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Thanks — and understood on the AMD run; no rush, and happy for you to take the 8-continuation test yourself. Our box is exactly the shape you described (4× R9700 gfx1201, 2 replicas × 2 cards,<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">--batch 8 --batch-groups 2</code>,<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">STRATA_PIPED_MTP=1</code>, conversation cache 16 GiB / 16 slots per replica), so if it helps we can re-run the arms here on a schedule and post the numbers, or test an instrumented build from you instead. Two things we owe you, and one new finding that we think matters more than the patch.</p><p style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; margin: 16px 0px; color: rgb(15, 17, 21); font-family: -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 18px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><strong style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; font-weight: 600;">1. The packaged-build log you asked for.</strong><span> </span>Attached:<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">packaged-0.1.54-log-window.txt</code><span> </span>— the<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">engine started:</code><span> </span>line with the full command line and the following startup lines of a packaged-engine run (2026-10-30 11:37:10,<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">/opt/Strata/engine/strata</code>, top-level SHA-256<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">efc84b87…</code>,<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">BUILD.json</code><span> </span>=<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">version 0.1.54</code>,<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">source f-amd-vision 8c1aea4bca1b</code>,<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">variant rx9070</code>,<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">portable true</code>,<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">vision gpu</code>), plus the hit and the miss from that same run, same conversation:</p><div class="_block_7gxqk_4 md-code-block _card_7gxqk_107" data-code-wrap="true" style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; --dsl-code-block-banner-background-color: #f9fafb; --dsl-code-block-border-radius: 16px; --dsl-code-block-banner-font: 11px/18px -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; --dsl-code-block-content-font: 15px / calc(19px + calc(15px - 11px)) &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; --dsl-code-block-background: #f9fafb; position: relative; margin: 16px 0px 11px; color: rgb(15, 17, 21); background: none 0% 0% / auto repeat scroll padding-box border-box rgb(249, 250, 251); border-radius: 16px; font-family: -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 18px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="_bannerWrap_7gxqk_24" style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; position: sticky; top: 0px; z-index: 6; background-color: rgb(255, 255, 255); border-top-left-radius: 16px; border-top-right-radius: 16px;"><div class="_header_1pq26_10" data-code-block-banner="true" style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px 8px 22px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(249, 250, 251); border-top-left-radius: inherit; border-top-right-radius: inherit; color: rgb(97, 102, 107); font: 400 11px / 18px -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;"><div class="_heading_1pq26_23" style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: flex; align-items: baseline; gap: 12px; min-width: 0px;"><span class="_language_1pq26_30" style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; color: rgb(129, 133, 140); flex: 0 0 auto; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;;">代码块</span></div><div class="_actions_1pq26_43" style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: flex; align-items: center; gap: 4px; flex: 0 0 auto;"><button type="button" class="_action_1pq26_43" aria-label="自动换行" aria-pressed="true" style="corner-shape: superellipse(1.5); font-family: inherit; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0px; border: 0px; border-radius: 8px; color: rgb(97, 102, 107); background: transparent; cursor: pointer; app-region: no-drag;"><svg width="14" height="14" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M2 15H1V1H2V15Z" fill="currentColor"></path><path d="M12.3535 7.64645C12.5487 7.84171 12.5487 8.15829 12.3535 8.35355L9.85352 10.8535L9.14648 10.1465L10.793 8.5H3.5V7.5H10.793L9.14648 5.85352L9.85352 5.14648L12.3535 7.64645Z" fill="currentColor"></path><path d="M15 15H14V1H15V15Z" fill="currentColor"></path></svg></button><button type="button" class="_action_1pq26_43" aria-label="复制" style="corner-shape: superellipse(1.5); font-family: inherit; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0px; border: 0px; border-radius: 8px; color: rgb(97, 102, 107); background: transparent; cursor: pointer; app-region: no-drag;"><svg width="14" height="14" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" stroke-width="1"><rect x="1.52075" y="4.07373" width="10.3932" height="10.3932" rx="2" stroke="currentColor"></rect><path d="M11.9792 1.53296C13.36 1.53296 14.4792 2.65225 14.4792 4.03296V9.42847C14.4792 10.3756 13.9521 11.1987 13.1755 11.6228V10.3298C13.3652 10.0787 13.4792 9.7674 13.4792 9.42847V4.03296C13.4792 3.20453 12.8077 2.53296 11.9792 2.53296H6.58374C6.27966 2.53301 5.99684 2.6235 5.7605 2.77905H4.42358C4.85652 2.03463 5.66056 1.53304 6.58374 1.53296H11.9792Z" fill="currentColor"></path></svg></button></div></div></div><div class="_content_7gxqk_74" data-code-block-content="true" style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: contents;"><pre class="_plain_7gxqk_103" style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; font: 400 15px / 23px &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; padding: 6px 22px 20px; overflow: auto; white-space: pre-wrap; word-break: normal; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(249, 250, 251); border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; margin: 16px 0px; color: rgb(15, 17, 21); overflow-wrap: anywhere;"><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; font: inherit; background: none; padding: 0px;">strata serve: conversation cache: restored 12844 tokens (live) in 86.9 ms strata serve: prompt 12878 tokens = 12844 reused + 34 read in 377 ms (90.3 tok/s), 768 generated in 9155 ms (83.9 tok/s), drafts accepted 451 of 659, 2 checkpoints strata serve: conversation cache: parked 13646 tokens in 225.4 ms; parked=1 bytes=577211440 evictions=0 snapshot_bytes=577211440 reused_kv_bytes=196046592 strata serve: conversation cache: restored 12069 tokens (checkpoint) in 91.3 ms strata serve: prompt 12878 tokens = 12069 reused + 809 read in 1531 ms (528.5 tok/s), 768 generated in 10014 ms (76.7 tok/s), drafts accepted 414 of 663, 2 checkpoints</code></pre></div></div><p style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; margin: 16px 0px; color: rgb(15, 17, 21); font-family: -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 18px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Lengths for the miss: the first turn is a 12,076-token prompt with a 768-token answer (769 requested); the continuation prompt is 12,878 tokens, client history is a verbatim echo of that answer,<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">max_new_tokens</code><span> </span>768 again. Expected reuse 12,844 (+34 read), observed 12,069 (+809 read). Same run, same replica, the over-park signature is in the attached window:<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">parked 12845 tokens</code><span> </span>where this shape can only park 12,843/12,844, twice, on the packaged binary. So the packaged build shows the same thing we patched, and<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">f-amd-vision 8c1aea4bca1b</code><span> </span>being a branch name is consistent with our reading — we don't claim the public tree is byte-identical to it.</p><p style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; margin: 16px 0px; color: rgb(15, 17, 21); font-family: -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 18px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><strong style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; font-weight: 600;">2. The residual case is a different bug, and we can now point at it.</strong><span> </span>We kept digging after posting, because with the patch applied 7 of 8 continuations hit and 1 still fell back to the same 12,069-token checkpoint. The remaining case is not an over-commit in the spec path: the token sequence the engine parked and the token sequence serve re-derived from the echoed history genuinely differ, mid-answer, at a BPE boundary. From a native prefix trace (identical text on both sides, same model, temperature 0, and the four fixed tasks still produce byte-identical output hashes):</p><div class="_tableScroll_1ypvv_192 _tableFill_1ypvv_239" style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; color: rgb(15, 17, 21); font-family: -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 18px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"> position | snapshot token id / text | new prompt token id / text -- | -- | -- 12254 | 110852 = 触发 | 97227 = 触 12372 | 101901 = 实时 | 135286 = 实时监控 </div><p style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; margin: 16px 0px; color: rgb(15, 17, 21); font-family: -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 18px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">So the snapshot's token sequence stops being a prefix of the new prompt for a reason that has nothing to do with which decode path wrote it, and<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">conversation_prefix()</code><span> </span>is right to reject it — a whole 12.8k-token snapshot is lost over a handful of boundary tokens. That also predicts why a benchmark with short answers never sees it: fewer tokens of generated text in the history means fewer opportunities for a boundary to land differently.</p><p style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; margin: 16px 0px; color: rgb(15, 17, 21); font-family: -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 18px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">We fixed it at the serve layer rather than the engine, as a way to confirm the diagnosis: when the incoming history matches the previous turn verbatim, reuse the token ids the engine actually generated for its own reply instead of re-tokenizing it (<code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">reuse_generated_prefix</code>, off by default in our build). On exactly the failing 8-continuation shape that moved 6/8 →<span> </span><strong style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; font-weight: 600;">8/8 above 99%</strong>, weighted reuse 98.22% →<span> </span><strong style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; font-weight: 600;">99.73%</strong>, mean TTFT 0.683 → 0.515 s, with the first-turn output byte-identical to baseline and decode speed unchanged; in a 16-way concurrency variant 32/32 stayed above 99%. It is a workaround, not the right home for the fix — the engine knows what tokens it emitted, the client does not. For a proper fix on your side it looks like either (a) telling the client which token ids the assistant turn occupies so the next request can be re-derived exactly, or (b) letting the cache match tolerate a boundary re-tokenization instead of demanding an exact prefix, or (c) comparing the parked sequence against the text rather than the ids.</p><p style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; margin: 16px 0px; color: rgb(15, 17, 21); font-family: -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 18px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><strong style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; font-weight: 600;">3. The two questions from the original post still stand, and are now the short path to the rest.</strong><span> </span>(i) Which path writes the snapshot for a batched slot under<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">--batch 8 --batch-groups 2</code><span> </span>with<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">STRATA_PIPED_MTP=1</code><span> </span>— the over-parked<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">12845</code><span> </span>appears with our patch applied, i.e. in a build where both single-request paths are bounded, so a batch path is the likely writer. (ii) A debug switch that prints why a candidate snapshot was rejected — first differing token position, plus the ids/text on each side, would have replaced two 72-request sweeps with one run. With (ii) we can run it on this box and hand you the trace.</p><p style="corner-shape: superellipse(1.5); --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; margin-top: 16px; margin-right: 0px; margin-bottom: 0px !important; margin-left: 0px; color: rgb(15, 17, 21); font-family: -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif, -apple-system, &quot;system-ui&quot;, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 18px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Status on our side, so the numbers above are unambiguous: production is currently the public<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">870aedd9</code><span> </span>(v0.2.8) serve plus our HIP build of it with<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">STRATA_SERVE_STOP_BOUND=1</code>, and the serve-layer<span> </span><code style="corner-shape: superellipse(1.5); text-autospace: no-autospace; --dsw-elevation-stroke: 0 0 0 .5px #00000029; --dsw-elevation-panel: 0 0 0 .5px #00000029, 0 3px 8px 0 #00000008, 0 0 16px 0 #00000005; --dsw-elevation-prominent: 0 0 0 .5px #00000029, 0 3px 8px 0 #0000000a, 0 0 20px 0 #0000000d; --dsw-elevation-soft: 0 0 0 .5px #00000029, 0 4px 16px 0 #00000008, 0 0 24px 0 #00000008; display: inline-flex; align-items: center; box-sizing: border-box; font-style: normal; font-variant: normal; font-weight: 400; font-stretch: 100%; line-height: 23px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;SF Mono&quot;, &quot;JetBrains Mono&quot;, &quot;Fira Code&quot;, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;; background-color: rgb(250, 250, 250); border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 8px; padding: 0px 5px; font-size: 0.875em !important;">reuse_generated_prefix</code><span> </span>guard. If you land your own fix for the over-commit and something that pins the assistant-turn token identity, we will drop both local patches and re-run the arms against the release. And to be explicit about coverage: HIP/gfx1201 only — we have not built or run CUDA, SYCL, Metal, or Windows, and we did not GPU-validate the experimental two-verifier path.</p> [packaged-0.1.54-log-window.txt](https://github.com/user-attachments/files/34217320/packaged-0.1.54-log-window.txt) > 2\. Your analysis is clear, and the test of the policy function is what we'd want. We haven't applied the patch. It changes the commit path of the speculative decode in the engine, so it needs a run on an AMD card with the long-answer case (4 cards, `--batch 8 --batch-groups 2`). Our AMD boxes are busy this week, so we'll run your 8-continuation test against the patch when one frees up. > About the build ID: the packaged engine's `f-amd-vision 8c1aea4bca1b` is a branch name from our side, so the public source you read can differ from it. If you can, please send the first lines of the engine log of the packaged build, with the prompt and answer lengths of a miss.
Author
Owner

@DamirLukina88 commented on GitHub (Nov 7, 2026):

AMD RDNA3 (RX 7600 XT) Validation Report for serve_stop_bound (#4677)

Sharing the measured numbers from an AMD RDNA3 setup with speculative decode (--spec 4, MTP) across multi-turn continuations on the commit path change.

Hardware & Test Environment

  • GPU: AMD Radeon RX 7600 XT 16 GB (gfx1102, ROCm 6.2, CachyOS Linux, MemorySwapMax=0)
  • CPU & RAM: AMD Ryzen 5 3600, 32 GB DDR4 RAM
  • Model: Qwen3.8-Flash-Next Coder IQ1_M, MTP --spec 4, --max-context 65536, int8 KV cache, 256 resident experts in RAM
  • Build: Native HIP engine built with STRATA_SERVE_STOP_BOUND=1

Test Results: Policy & Unit Verification

  • Ran tests/core/serve_stop_bound_test.cpp across 2,736 boundary edge cases comparing the speculative commit bounds against the output emission loop.
  • Result: 2,736 / 2,736 test cases passed cleanly with 0 failures.

Benchmark Measurements: Long Multi-Turn Continuations (A/B)

Ran a 4-leg paired A/B benchmark (16 long requests with multi-turn conversation caching) comparing default unconstrained commit (STRATA_SERVE_STOP_BOUND=0) vs bounded commit (STRATA_SERVE_STOP_BOUND=1):

Metric Without Bound (STRATA_SERVE_STOP_BOUND=0) With Bound (STRATA_SERVE_STOP_BOUND=1) Difference
Parked Snapshot Rejection Rate 25.0% (4 of 16 runs rejected snapshot) 0.0% (0 of 16 runs rejected) -100% rejections
Conversation Cache Hit Rate 62.9% 68.5% +5.6% hit rate
Re-read Prompt Tokens / Session 72 tokens 4 tokens -94.4% re-read tokens
Decode Throughput 24.7 tok/s 24.7 tok/s Flat (run-to-run noise \pm 0.2 tok/s)
Multi-Turn First-Token Latency 1.71 s 1.54 s -10.1% latency improvement

Observations

  1. In the speculative decode path, bounding committed rows strictly to what the client actually received completely prevents the subsequent prompt verification mismatch.
  2. The engine no longer falls back to earlier checkpoints or re-reads prompt tokens on continuation turns.
  3. No regressions in acceptance rate or token generation fidelity were observed.
<!-- gh-comment-id:6706455058 --> @DamirLukina88 commented on GitHub (Nov 7, 2026): ### AMD RDNA3 (RX 7600 XT) Validation Report for `serve_stop_bound` (#4677) Sharing the measured numbers from an AMD RDNA3 setup with speculative decode (`--spec 4`, MTP) across multi-turn continuations on the commit path change. #### Hardware & Test Environment - **GPU:** AMD Radeon RX 7600 XT 16 GB (`gfx1102`, ROCm 6.2, CachyOS Linux, `MemorySwapMax=0`) - **CPU & RAM:** AMD Ryzen 5 3600, 32 GB DDR4 RAM - **Model:** `Qwen3.8-Flash-Next Coder IQ1_M`, MTP `--spec 4`, `--max-context 65536`, int8 KV cache, 256 resident experts in RAM - **Build:** Native HIP engine built with `STRATA_SERVE_STOP_BOUND=1` #### Test Results: Policy & Unit Verification - Ran `tests/core/serve_stop_bound_test.cpp` across **2,736 boundary edge cases** comparing the speculative commit bounds against the output emission loop. - **Result:** 2,736 / 2,736 test cases passed cleanly with 0 failures. #### Benchmark Measurements: Long Multi-Turn Continuations (A/B) Ran a 4-leg paired A/B benchmark (16 long requests with multi-turn conversation caching) comparing default unconstrained commit (`STRATA_SERVE_STOP_BOUND=0`) vs bounded commit (`STRATA_SERVE_STOP_BOUND=1`): | Metric | Without Bound (`STRATA_SERVE_STOP_BOUND=0`) | With Bound (`STRATA_SERVE_STOP_BOUND=1`) | Difference | | :--- | :---: | :---: | :---: | | **Parked Snapshot Rejection Rate** | **25.0%** (4 of 16 runs rejected snapshot) | **0.0%** (0 of 16 runs rejected) | **-100% rejections** | | **Conversation Cache Hit Rate** | 62.9% | **68.5%** | **+5.6% hit rate** | | **Re-read Prompt Tokens / Session** | 72 tokens | **4 tokens** | **-94.4% re-read tokens** | | **Decode Throughput** | 24.7 tok/s | 24.7 tok/s | Flat (run-to-run noise $\pm 0.2$ tok/s) | | **Multi-Turn First-Token Latency** | 1.71 s | **1.54 s** | **-10.1% latency improvement** | #### Observations 1. In the speculative decode path, bounding committed rows strictly to what the client actually received completely prevents the subsequent prompt verification mismatch. 2. The engine no longer falls back to earlier checkpoints or re-reads prompt tokens on continuation turns. 3. No regressions in acceptance rate or token generation fidelity were observed.
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#2133
No description provided.