[PR #2527] [Engine] Keep conversations in pipelined batch slots (1/3): active-row windows, park=, cache-aware placement behind a policy interface #4095

Open
opened 2026-11-07 15:33:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2527
Author: @andyhrc
Created: 10/15/2026
Status: 🔄 Open

Base: main ← Head: pr/slot-mechanism


📝 Commits (10+)

  • 8d634bc batch: STRATA_PIPELINE_ACTIVE_ROWS=1 - a pipelined group's window runs its active slots only, so an idle slot keeps its conversation (opt-in)
  • da5a462 batch: park=B keeps the main session's conversation in an idle slot before a different request replaces it (with STRATA_PIPELINE_ACTIVE_ROWS=1)
  • 2b64831 serve: STRATA_SLOT_CACHE_AFFINITY=1 - place batch requests by what the slots hold, with the placement policy as an interface (serve/slot_policy.py)
  • 82ba0f4 serve: the allocation event and a slot's live row show this request's own placement plan
  • 023edc2 serve: /metrics live.solo_* clear when the solo request ends
  • d926b13 serve: no protection wait - place() always answers a free slot
  • 2d9b685 serve: no PARK_MIN_TOKENS - a park is not cut off by length
  • f89de46 batch, serve: park=B tells another conversation by the main session's last turn, not by half of it
  • 17fad48 serve: a continued request's record keeps its first read's cache source and placement hint
  • c7edf14 serve: test_cache_trace imports serve.* by name, so it also loads when serve/ is discovered on its own

📊 Changes

16 files changed (+931 additions, -38 deletions)

View changed files

📝 CMakeLists.txt (+3 -0)
📝 docs/BATCHING.md (+82 -1)
📝 include/strata/core/verify.hpp (+2 -0)
➕ include/strata/program/pipeline_rows.hpp (+16 -0)
➕ serve/cache_trace.py (+18 -0)
📝 serve/server.py (+321 -18)
➕ serve/slot_policy.py (+76 -0)
➕ serve/test_cache_trace.py (+29 -0)
📝 serve/test_parallel.py (+30 -2)
📝 serve/test_parallel_yield.py (+28 -0)
📝 serve/test_slot_alloc.py (+164 -1)
📝 src/core/verify.cpp (+7 -2)
📝 src/program/generate.cpp (+86 -10)
📝 sycl/include/strata/core/verify.hpp (+2 -0)
📝 sycl/src/core/verify.cpp (+8 -4)
➕ tests/core/pipeline_rows_test.cpp (+59 -0)

📄 Description

Problem and result

On a layer split with --batch, conversations are lost between turns in two ways. First, a pipelined group's window runs
every slot up to its last active one, so an idle slot below an active one becomes a pad row and loses its state. Second, a
long conversation on the solo path is overwritten by the next, unrelated request. Agent clients (Claude Code, Codex) send
long conversations in many short turns, with short side requests in between. On our server that meant re-reading tens of
thousands of tokens on a large share of turns.

The engine log of 2026-10-09 to 2026-10-14 (3 x RTX A4000 16 GB layer split, --batch 3-6 in 3 groups, two people
using Claude Code and Codex) had 3,027 prompts of 8K tokens or more. 538 of them reused less than half of their previous
turn, and 40.7M prompt tokens were read again. The causes below are classified by prompt lengths; the log has no content,
so this is a heuristic:

Why the previous turn was gone Prompts Tokens read again
it was in a batch slot that another conversation took 170 16.4M
it ran on the solo path, and the next request (often a short side request) replaced the main session 244 15.0M
the client changed the history (not addressed here) 63 6.1M
no earlier turn (a first turn, or a restart) 66 3.1M

At about 2,900 tok/s for long prompts on this machine, the first two rows are about three hours of prompt reading.

With this PR and the policy of #2528, the next turn of a 37,359-token conversation after a side request reused 37,352
tokens and took about 1 s, instead of 0 tokens and 14 s. The greedy output after the restore was the same.

Everything is opt-in. With every variable unset, the engine's output and the generation path are unchanged.

There is no issue. This PR was opened on 2026-10-14 and closed in the 0.2.0-beta tracker reset; it is rebased on current
main here. This is part 1 of 3:

  • This PR contains the engine changes and the server side of cache-aware placement. serve/slot_policy.py is an
    interface only: its policy functions raise NotImplementedError.
  • #2528 (part 2) is our placement policy, the real serve/slot_policy.py.
  • #2843 (part 3) adds slot checkpoints for clients that rewrite the end of their history.

Each later branch contains the earlier ones' commits. Merge in that order. With all three merged, the code is what we run
in production (plus a few local-only diagnostics we do not propose). If you prefer other rules than ours, merge this PR
and write your own serve/slot_policy.py against the interface; the server side does not change.

I can open an issue for the scope first if you prefer.

Approach

  1. engine: STRATA_PIPELINE_ACTIVE_ROWS=1. A pipelined group's window lists only its active slots
    (include/strata/program/pipeline_rows.hpp, Verifier::batch_launch_rows for CUDA and SYCL). There is no pad row, so
    an idle slot keeps its conversation; the engine prints INFO slot_padding_safe=1. After a prompt's restore it prints
    CACHE_SOURCE <slot or -1> <tokens>. The test is tests/core/pipeline_rows_test.cpp, registered in CMake.
  2. engine: park=B (INFO slot_park=1 turn_token=<id>, with the variable above). A prompt counts as another
    conversation when it does not share what the main session holds up to its last turn, the last <|im_start|>. (Two
    chats of one client share a long system prompt; a next turn without the reply's thinking shares the history.) For such
    a prompt, the engine first copies the main session's conversation into idle slot B and says PARKED B <tokens>. The
    server's claim uses the same test.
  3. server: STRATA_SLOT_CACHE_AFFINITY=1.
    • With pipelined groups, pick_slot asks slot_policy.place(), which always answers a free slot. A request waits
      only when every slot is busy, as before.
    • The server tracks the main session and asks slot_policy.park_destination() before sending park=.
    • Without slot_padding_safe=1, the server tracks from BADM / BT / BDONE which idle slot a later window has
      padded over.
    • /metrics gains:
      • live.cache_events, the last 96 placement events
      • request keys and client addresses (the socket's, not X-Forwarded-For)
      • live.solo_* and per-slot cache fields
    • STRATA_CACHE_TRACE=1 adds a per-request snapshot of what each slot shared with the prompt (serve/cache_trace.py,
      lengths only).
    • A request that moves between the solo path and a slot keeps its first read's figures in its record: reuse (#1869),
      cache source and placement hint. This last part is new since the previous review: before it, a 207K prompt's
      record could show a 214K placement hint.

The interface in serve/slot_policy.py has place, park_destination, cache_state, superseded_slots,
reliable_flags and configure / settings; the docstrings state the contract. Without a policy,
STRATA_SLOT_CACHE_AFFINITY=1 and STRATA_CACHE_TRACE=1 raise NotImplementedError. The new /metrics fields are
present with the variables unset too (additive only). If you prefer them behind a variable, say so.

Rebase on main (5e8a4cca, v0.2.7). One hand merge: v0.2.7 adds STRATA_PIPED_MTP (#4121, --batch-mtp), which packs a group's rows too (each active slot's token, then its drafts). The two share PGroup::rows: a window is built as #4121's when that is on, else from the active rows, else as the old span, and launched in the same order. Verifier::batch_launch_rows now has two overloads (#4121's deferred-commit one takes (rows, S, hbase, ...), this PR's (base, S, rows, ...)). /metrics live.cache_events and live.slot_policy sit beside the new live.split_serve. The rest stays where earlier rebases placed it:

  • The active-row window sits beside the new batch telemetry. PGroup::active counts the packed rows, and
    stage_in_flight is recorded before either launch.
  • The slot admission keeps the new queue deadline. The deadline is checked before a park claim, and the live slot row
    carries request_id and prompt_read as well as the client address.
  • The new tests go to whichever of serve/test_parallel.py / serve/test_parallel_yield.py now holds their neighbours.

Validation

Passed:

  • Revision. Branch pr/slot-mechanism at c7edf14a, on main 5e8a4cca (v0.2.7). The serve tests were run on this head; the GPU runs name their own revision. Ubuntu, AMD EPYC 7543,
    3 x RTX A4000 16 GB, CUDA 13.3. python3 is the repository's .venv.
  • Serve suite. python -m unittest discover -s serve -t . on this branch: 1229 tests OK (38 skipped).
  • The CI job's form ("Minimal serving runtime": a venv with only requirements.txt, then tools/minimal_server_smoke.py and python -m unittest discover -s serve -p 'test_*.py'): smoke OK, 1229 tests OK (38 skipped). The previous head failed there on serve/test_cache_trace.py's relative imports (fine with -t .); this PR's last commit fixes them.
  • Engine build and test. A native CUDA build passed (cmake -DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=86 -DSTRATA_BUILD_TESTS=ON, Release), and pipeline_rows_test passed. On v0.2.7: this head's native CUDA build
    passed (sm_86, Release), and pipeline_rows_test passed (built from our production tree: this stack + local-only diagnostics).
  • GPU run. Run on the tip of the stack (#2843's branch at 58eef307 on v0.2.1.1, which contains this PR, with its own engine and serve/server.py; repeated with our v0.2.7 production build, below).
    Setup: Qwen3.8-Flash-Next IQ3_S, 200K context, int8 K/V, --batch 6 in 3 groups,
    STRATA_PIPELINE_ACTIVE_ROWS=1 STRATA_SLOT_CACHE_AFFINITY=1 STRATA_CACHE_TRACE=1. Results: an agent conversation (27,348 tokens) took the main session between classifier queries. Each time, the classifier transcript it displaced was parked into an idle slot first (PARKED, 43-44K tokens in 167-231 ms). Each of its next five turns found it in the slot that kept it: 27,341 tokens reused in 0.73-0.76 s, where the first read took 10.4 s. With a thinking chat and four other conversations on the 6 slots, the reuse was the same, token for token, as on 0.1.45.
  • On v0.2.7. Our production build of this stack (plus a few local-only diagnostics, on 5e8a4cca, its own engine and serve/server.py) with the deployed switches repeated the run on 2026-10-28. S: 13.8, 14.5, 1.21, 1.40, 1.65, 1.80 s; B: 0.54, 0.97, 1.09, 1.30, 1.61, 1.75 s; the thinking chat's next turn reused 19,176 tokens in 0.58 s, and the other conversations reused the same tokens as on v0.2.1.3. Throughput (tools/serve_load.py, temperature 0, one run each on two fresh engines, on the build before #2843's last commit, which changes only a give-back): 67.6 / 63.0 tok/s with one client (1,024 tokens), 190.7 / 191.5 tok/s total with 6 clients x 2,048 tokens (v0.2.2: 64.3 / 193.7).
  • Production. This code (with #2528 and #2843) runs on that machine on 0.2.7 since 2026-10-27 (0.2.1.1 to 0.2.2 from 2026-10-20), and on 0.1.44-0.1.45
    since 2026-10-15.

Failed:

None observed. (The previous revision's note about serve.test_responses.NoLeakedSampler failing on main here no longer applies: the whole suite passes.)

Not run:

  • SYCL and HIP builds: there is no oneAPI or ROCm here. The SYCL change mirrors the CUDA one.
  • An A/B of STRATA_PIPELINE_ACTIVE_ROWS on 0.2.x. On 0.1.44.1 (the same binary off / on, tools/serve_load.py,
    6 clients x 2048 tokens, one run each) it measured 177.4 / 173.5 tok/s, inside the run-to-run spread (173.9-178.2).
  • This switch together with #4121's STRATA_PIPED_MTP (the latter builds the window then). We do not run
    --batch-mtp: on this machine it was slower (6 clients: 88.6 against 170.9 tok/s on 0.1.45).

Limits

  • A client that rewrites history (for example one that drops the reasoning of earlier turns) cannot match a cached
    prefix, whatever the placement does. #2843 handles the case where only the end is rewritten.
  • The placement is for pipelined groups. --batch without them (one GPU, or --batch-groups 1) keeps its current
    slot choice.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2527 **Author:** [@andyhrc](https://github.com/andyhrc) **Created:** 10/15/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `pr/slot-mechanism` --- ### 📝 Commits (10+) - [`8d634bc`](https://github.com/Niko1221/Strata/commit/8d634bc5de3729b0c61bdcbb2c6a00fb0dc2346c) batch: STRATA_PIPELINE_ACTIVE_ROWS=1 - a pipelined group's window runs its active slots only, so an idle slot keeps its conversation (opt-in) - [`da5a462`](https://github.com/Niko1221/Strata/commit/da5a46295f767ca582ad27220ce4057085c78af3) batch: park=B keeps the main session's conversation in an idle slot before a different request replaces it (with STRATA_PIPELINE_ACTIVE_ROWS=1) - [`2b64831`](https://github.com/Niko1221/Strata/commit/2b64831ff2790acee8400044735d058eeabe7839) serve: STRATA_SLOT_CACHE_AFFINITY=1 - place batch requests by what the slots hold, with the placement policy as an interface (serve/slot_policy.py) - [`82ba0f4`](https://github.com/Niko1221/Strata/commit/82ba0f4bbf53a5ad8affa66a009118ccd09cc703) serve: the allocation event and a slot's live row show this request's own placement plan - [`023edc2`](https://github.com/Niko1221/Strata/commit/023edc2e43426ce0926bed58361efb3523ea36f0) serve: /metrics live.solo_* clear when the solo request ends - [`d926b13`](https://github.com/Niko1221/Strata/commit/d926b132975fa51495dc4a3e9f9035cb8395cb1a) serve: no protection wait - place() always answers a free slot - [`2d9b685`](https://github.com/Niko1221/Strata/commit/2d9b68508bae85bfc43fa08fd8cd803e2bea10d9) serve: no PARK_MIN_TOKENS - a park is not cut off by length - [`f89de46`](https://github.com/Niko1221/Strata/commit/f89de4636cbc5b526bf2442018bcb00a6f99beba) batch, serve: park=B tells another conversation by the main session's last turn, not by half of it - [`17fad48`](https://github.com/Niko1221/Strata/commit/17fad4863656f2f66314c096787da70de8cd0201) serve: a continued request's record keeps its first read's cache source and placement hint - [`c7edf14`](https://github.com/Niko1221/Strata/commit/c7edf14a2263a4a787c53392df6d4e1420a25d06) serve: test_cache_trace imports serve.* by name, so it also loads when serve/ is discovered on its own ### 📊 Changes **16 files changed** (+931 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+3 -0) 📝 `docs/BATCHING.md` (+82 -1) 📝 `include/strata/core/verify.hpp` (+2 -0) ➕ `include/strata/program/pipeline_rows.hpp` (+16 -0) ➕ `serve/cache_trace.py` (+18 -0) 📝 `serve/server.py` (+321 -18) ➕ `serve/slot_policy.py` (+76 -0) ➕ `serve/test_cache_trace.py` (+29 -0) 📝 `serve/test_parallel.py` (+30 -2) 📝 `serve/test_parallel_yield.py` (+28 -0) 📝 `serve/test_slot_alloc.py` (+164 -1) 📝 `src/core/verify.cpp` (+7 -2) 📝 `src/program/generate.cpp` (+86 -10) 📝 `sycl/include/strata/core/verify.hpp` (+2 -0) 📝 `sycl/src/core/verify.cpp` (+8 -4) ➕ `tests/core/pipeline_rows_test.cpp` (+59 -0) </details> ### 📄 Description ## Problem and result On a layer split with `--batch`, conversations are lost between turns in two ways. First, a pipelined group's window runs every slot up to its last active one, so an idle slot below an active one becomes a pad row and loses its state. Second, a long conversation on the solo path is overwritten by the next, unrelated request. Agent clients (Claude Code, Codex) send long conversations in many short turns, with short side requests in between. On our server that meant re-reading tens of thousands of tokens on a large share of turns. The engine log of 2026-10-09 to 2026-10-14 (3 x RTX A4000 16 GB layer split, `--batch` 3-6 in 3 groups, two people using Claude Code and Codex) had 3,027 prompts of 8K tokens or more. 538 of them reused less than half of their previous turn, and 40.7M prompt tokens were read again. The causes below are classified by prompt lengths; the log has no content, so this is a heuristic: | Why the previous turn was gone | Prompts | Tokens read again | | --- | ---: | ---: | | it was in a batch slot that another conversation took | 170 | 16.4M | | it ran on the solo path, and the next request (often a short side request) replaced the main session | 244 | 15.0M | | the client changed the history (not addressed here) | 63 | 6.1M | | no earlier turn (a first turn, or a restart) | 66 | 3.1M | At about 2,900 tok/s for long prompts on this machine, the first two rows are about three hours of prompt reading. With this PR and the policy of #2528, the next turn of a 37,359-token conversation after a side request reused 37,352 tokens and took about 1 s, instead of 0 tokens and 14 s. The greedy output after the restore was the same. Everything is opt-in. With every variable unset, the engine's output and the generation path are unchanged. ## Related discussion There is no issue. This PR was opened on 2026-10-14 and closed in the 0.2.0-beta tracker reset; it is rebased on current `main` here. This is **part 1 of 3**: - **This PR** contains the engine changes and the server side of cache-aware placement. `serve/slot_policy.py` is an **interface only**: its policy functions raise `NotImplementedError`. - **#2528 (part 2)** is our placement policy, the real `serve/slot_policy.py`. - **#2843 (part 3)** adds slot checkpoints for clients that rewrite the end of their history. Each later branch contains the earlier ones' commits. Merge in that order. With all three merged, the code is what we run in production (plus a few local-only diagnostics we do not propose). If you prefer other rules than ours, merge this PR and write your own `serve/slot_policy.py` against the interface; the server side does not change. I can open an issue for the scope first if you prefer. ## Approach 1. **engine: `STRATA_PIPELINE_ACTIVE_ROWS=1`.** A pipelined group's window lists only its active slots (`include/strata/program/pipeline_rows.hpp`, `Verifier::batch_launch_rows` for CUDA and SYCL). There is no pad row, so an idle slot keeps its conversation; the engine prints `INFO slot_padding_safe=1`. After a prompt's restore it prints `CACHE_SOURCE <slot or -1> <tokens>`. The test is `tests/core/pipeline_rows_test.cpp`, registered in CMake. 2. **engine: `park=B`** (`INFO slot_park=1 turn_token=<id>`, with the variable above). A prompt counts as another conversation when it does not share what the main session holds up to its last turn, the last `<|im_start|>`. (Two chats of one client share a long system prompt; a next turn without the reply's thinking shares the history.) For such a prompt, the engine first copies the main session's conversation into idle slot B and says `PARKED B <tokens>`. The server's claim uses the same test. 3. **server: `STRATA_SLOT_CACHE_AFFINITY=1`.** - With pipelined groups, `pick_slot` asks `slot_policy.place()`, which always answers a free slot. A request waits only when every slot is busy, as before. - The server tracks the main session and asks `slot_policy.park_destination()` before sending `park=`. - Without `slot_padding_safe=1`, the server tracks from `BADM` / `BT` / `BDONE` which idle slot a later window has padded over. - `/metrics` gains: - `live.cache_events`, the last 96 placement events - request keys and client addresses (the socket's, not `X-Forwarded-For`) - `live.solo_*` and per-slot cache fields - `STRATA_CACHE_TRACE=1` adds a per-request snapshot of what each slot shared with the prompt (`serve/cache_trace.py`, lengths only). - A request that moves between the solo path and a slot keeps its first read's figures in its record: reuse (#1869), cache source and placement hint. This last part is new since the previous review: before it, a 207K prompt's record could show a 214K placement hint. The interface in `serve/slot_policy.py` has `place`, `park_destination`, `cache_state`, `superseded_slots`, `reliable_flags` and `configure` / `settings`; the docstrings state the contract. Without a policy, `STRATA_SLOT_CACHE_AFFINITY=1` and `STRATA_CACHE_TRACE=1` raise `NotImplementedError`. The new `/metrics` fields are present with the variables unset too (additive only). If you prefer them behind a variable, say so. **Rebase on `main` (`5e8a4cca`, v0.2.7).** One hand merge: v0.2.7 adds `STRATA_PIPED_MTP` (#4121, `--batch-mtp`), which packs a group's rows too (each active slot's token, then its drafts). The two share `PGroup::rows`: a window is built as #4121's when that is on, else from the active rows, else as the old span, and launched in the same order. `Verifier::batch_launch_rows` now has two overloads (#4121's deferred-commit one takes `(rows, S, hbase, ...)`, this PR's `(base, S, rows, ...)`). `/metrics` `live.cache_events` and `live.slot_policy` sit beside the new `live.split_serve`. The rest stays where earlier rebases placed it: - The active-row window sits beside the new batch telemetry. `PGroup::active` counts the packed rows, and `stage_in_flight` is recorded before either launch. - The slot admission keeps the new queue deadline. The deadline is checked before a park claim, and the live slot row carries `request_id` and `prompt_read` as well as the client address. - The new tests go to whichever of `serve/test_parallel.py` / `serve/test_parallel_yield.py` now holds their neighbours. ## Validation **Passed:** - **Revision.** Branch `pr/slot-mechanism` at `c7edf14a`, on `main` `5e8a4cca` (v0.2.7). The serve tests were run on this head; the GPU runs name their own revision. Ubuntu, AMD EPYC 7543, 3 x RTX A4000 16 GB, CUDA 13.3. `python3` is the repository's `.venv`. - **Serve suite.** `python -m unittest discover -s serve -t .` on this branch: 1229 tests OK (38 skipped). - **The CI job's form** ("Minimal serving runtime": a venv with only `requirements.txt`, then `tools/minimal_server_smoke.py` and `python -m unittest discover -s serve -p 'test_*.py'`): smoke OK, 1229 tests OK (38 skipped). The previous head failed there on `serve/test_cache_trace.py`'s relative imports (fine with `-t .`); this PR's last commit fixes them. - **Engine build and test.** A native CUDA build passed (`cmake -DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=86 -DSTRATA_BUILD_TESTS=ON`, Release), and `pipeline_rows_test` passed. On v0.2.7: this head's native CUDA build passed (sm_86, Release), and `pipeline_rows_test` passed (built from our production tree: this stack + local-only diagnostics). - **GPU run.** Run on the tip of the stack (#2843's branch at `58eef307` on v0.2.1.1, which contains this PR, with its own engine and `serve/server.py`; repeated with our v0.2.7 production build, below). Setup: Qwen3.8-Flash-Next IQ3_S, 200K context, int8 K/V, `--batch 6` in 3 groups, `STRATA_PIPELINE_ACTIVE_ROWS=1 STRATA_SLOT_CACHE_AFFINITY=1 STRATA_CACHE_TRACE=1`. Results: an agent conversation (27,348 tokens) took the main session between classifier queries. Each time, the classifier transcript it displaced was parked into an idle slot first (`PARKED`, 43-44K tokens in 167-231 ms). Each of its next five turns found it in the slot that kept it: 27,341 tokens reused in 0.73-0.76 s, where the first read took 10.4 s. With a thinking chat and four other conversations on the 6 slots, the reuse was the same, token for token, as on 0.1.45. - **On v0.2.7.** Our production build of this stack (plus a few local-only diagnostics, on `5e8a4cca`, its own engine and `serve/server.py`) with the deployed switches repeated the run on 2026-10-28. S: 13.8, 14.5, 1.21, 1.40, 1.65, 1.80 s; B: 0.54, 0.97, 1.09, 1.30, 1.61, 1.75 s; the thinking chat's next turn reused 19,176 tokens in 0.58 s, and the other conversations reused the same tokens as on v0.2.1.3. Throughput (`tools/serve_load.py`, temperature 0, one run each on two fresh engines, on the build before #2843's last commit, which changes only a give-back): 67.6 / 63.0 tok/s with one client (1,024 tokens), 190.7 / 191.5 tok/s total with 6 clients x 2,048 tokens (v0.2.2: 64.3 / 193.7). - **Production.** This code (with #2528 and #2843) runs on that machine on 0.2.7 since 2026-10-27 (0.2.1.1 to 0.2.2 from 2026-10-20), and on 0.1.44-0.1.45 since 2026-10-15. **Failed:** None observed. (The previous revision's note about `serve.test_responses.NoLeakedSampler` failing on main here no longer applies: the whole suite passes.) **Not run:** - SYCL and HIP builds: there is no oneAPI or ROCm here. The SYCL change mirrors the CUDA one. - An A/B of `STRATA_PIPELINE_ACTIVE_ROWS` on 0.2.x. On 0.1.44.1 (the same binary off / on, `tools/serve_load.py`, 6 clients x 2048 tokens, one run each) it measured 177.4 / 173.5 tok/s, inside the run-to-run spread (173.9-178.2). - This switch together with #4121's `STRATA_PIPED_MTP` (the latter builds the window then). We do not run `--batch-mtp`: on this machine it was slower (6 clients: 88.6 against 170.9 tok/s on 0.1.45). ## Limits - A client that rewrites history (for example one that drops the reasoning of earlier turns) cannot match a cached prefix, whatever the placement does. #2843 handles the case where only the end is rewritten. - The placement is for pipelined groups. `--batch` without them (one GPU, or `--batch-groups 1`) keeps its current slot choice. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#4095
No description provided.