mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4017
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2384
Author: @davidbhoward
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:fix-1906-slot-checkpoints📝 Commits (2)
7917a62Batch slots keep a conversation's turn checkpoints across slot -> solo -> slot moves (#1906)12b35a9pick_slot: the turn-boundary match only where the slot and the prompt part ways; tests📊 Changes
3 files changed (+60 additions, -4 deletions)
View changed files
📝
serve/server.py(+25 -4)📝
serve/test_parallel.py(+22 -0)📝
src/program/generate.cpp(+13 -0)📄 Description
Issue: Resolves #1906
Summary
With
"parallel": 2on a layer split (pipelined groups of one slot) and thinking on, most turns of a two-agent session read their whole history again. Two causes, both small:pick_slotskips the held-prefix choice whenever groups are pipelined (if gs:), so the returning request can be admitted over the other conversation's slot. Groups of one slot have no pad rows and keep their conversation, so this now only applies togs > 1, and a slot that matches up to its last turn boundary counts as holding the conversation.What changed
src/program/generate.cpp: when a slot gives back all it holds, its checkpoints move into the main session's chain with the conversation (they stay valid, the main session holds the same tokens).serve/server.py:if gs:->if gs > 1:, andheld_prefixalso counts a common start that covers at least half of what the slot holds.Nothing else. Output is unchanged: this only decides which cached state a turn continues from.
Extra Notes
This PR was written and posted by Claude (an AI assistant), at the request of the fork's owner, @davidbhoward.
Measured on 2x RTX 3090, layer split 25, IQ3_S, 262144,
"parallel": 2, on296b59d2with and without this change. Two clients withreasoning_effort: low, 6 turns each on a ~31K history, history sent back without the thinking, two runs each:At 235-245K histories the same miss costs about 57 s per turn. Built and tested on CUDA only; the change is host code, but I did not build HIP or SYCL. The reproduction script is small and I can attach it if useful.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.