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#2807
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/752
Author: @zengyishou
Created: 10/4/2026
Status: ❌ Closed
Base:
main← Head:fix/checkpoint-split-exception-safety📝 Commits (10+)
ba707d8Several conversations at once: batch slots, pipelined layer split, per-stage dense weightsc67052cserver: a client that stops reading early keeps the engine in stepe11166bConversation parking with --layer-split220ccbbTests and docs: parking with a layer split, tools/parking_test.py, a Testing sectionf67bf51Parking with a layer split: the draft ring once, every stage's K/V reused, checkpoints moved not copied537588fParking with a layer split: the draft ring with the last stage, on its GPU; guards; trim logbd400f7Layer split comment: KV streaming and images do run across a splitf0c61d3Speculative batch, step 1: rows per slot in batch windows and commits (set_batch_rows; 1 = unchanged)6840647Speculative batch, step 2: MtpDrafter::clone_from (a drafter per slot sharing the weights) and copy_kv_from72774f2Speculative batch, step 3: --batch-spec N (MTP drafts in batch windows, a drafter per slot)📊 Changes
24 files changed (+3195 additions, -133 deletions)
View changed files
📝
CMakeLists.txt(+3 -0)➕
docs/BATCHING.md(+148 -0)📝
docs/DETAILS.md(+23 -3)📝
docs/MULTI_GPU.md(+5 -0)📝
include/strata/core/conversation_cache.hpp(+91 -3)📝
include/strata/core/conversation_snapshot.hpp(+17 -0)📝
include/strata/core/mtp.hpp(+15 -0)📝
include/strata/core/native_dense.hpp(+3 -1)📝
include/strata/core/verify.hpp(+88 -0)➕
serve/prometheus.py(+153 -0)📝
serve/server.py(+295 -9)➕
serve/test_prometheus.py(+181 -0)📝
src/core/conversation_cache_test.cpp(+92 -0)📝
src/core/conversation_snapshot_test.cpp(+41 -0)➕
src/core/conversation_split_failure_test.cpp(+46 -0)📝
src/core/conversation_state.cpp(+45 -18)📝
src/core/mtp.cpp(+75 -10)📝
src/core/native_dense.cpp(+8 -2)📝
src/core/verify.cpp(+559 -52)📝
src/program/generate.cpp(+714 -35)...and 4 more files
📄 Description
Dependency and review scope
Draft: blocked on #559. Do not merge before #559. This branch is based on #559 head
f65301b3bfc621229c7d5ddb1e268f652be43a59. Because GitHub can only target an existing branch in this repository, the current comparison againstmainalso includes #559's unmerged changes. The contribution from this PR is the final single commit only; after #559 lands this branch must be rebased and the diff rechecked before marking ready.Review the isolated increment here: incremental diff. The same increment is also proposed directly to #559's author in the focused companion PR. These are alternative review routes for the same change, not patches to apply twice.
Summary
Follow-up to Niko1221/Strata#559, prepared on its
multi-sequence-batchingbranch. The checkpoint split currently moves running state before copying identity metadata. If a later allocation throws, the input checkpoints are partially moved and cannot be restored safely.Reserve output storage and prepare identity copies before moving any state. Catch allocation failure at the parking call site and skip parking while retaining the live checkpoints. Add a deterministic allocation-failure regression and register it with the standalone conversation tests. This does not repeat the branch's existing KV reuse, draft ownership, or all-stage compatibility changes.
Validation
conversation_cache_test: 4,191 checks passed.git diff --checkpasses.Tests use synthetic checkpoints and require neither model data nor a GPU. This PR makes no throughput claim.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.