mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1242] [CLOSED] Isolate concurrent image positions and batch-MTP draft paths #3331
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#3331
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/1242
Author: @ilumn
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:fix/multimodal-slot-isolation-current-main📝 Commits (6)
8fc9490Isolate concurrent multimodal positions and batch-MTP draft paths4a0557fMerge upstream main into multimodal slot recovery96118a1Add token-gated staggered batch and solo promotion regression08b39baRequire overlap after each staggered admission92d60a8Cover sparse pipeline slot IDs and leading pad rows79dd3a3Stop advertising invalidated pipeline slot caches to HTTP requests📊 Changes
13 files changed (+848 additions, -120 deletions)
View changed files
📝
CMakeLists.txt(+26 -0)📝
docs/BATCHING.md(+48 -1)📝
include/strata/core/session.hpp(+4 -0)📝
include/strata/kernels/mrope.hpp(+10 -0)➕
include/strata/program/vision_records.hpp(+49 -0)📝
src/core/mtp.cpp(+7 -1)📝
src/core/verify.cpp(+37 -11)📝
src/program/generate.cpp(+48 -28)➕
tests/core/vision_records_test.cpp(+36 -0)➕
tests/cuda/mrope_slot_graph_test.cpp(+90 -0)➕
tools/batch_http_test.py(+189 -0)📝
tools/batch_test.py(+229 -79)➕
tools/test_batch_test.py(+75 -0)📄 Description
With
--visionand concurrent batching, admitting another image or a text request could overwrite the image-position table still used by an active slot's captured decode graph. This PR gives each slot its own table so another admission or slot reuse cannot change that slot's rotary positions. It applies the same isolation to batch-MTP drafting and rejects malformed vision records before they can affect a later valid request.This is the replacement for #994, which GitHub automatically closed after the upstream history rewrite. The recreation of the PR was requested here. It ports original commit 10114f8 onto the rewritten
mainat82f46a8c8f475f001ad76d92f58f4a4f8ffb0253.Changes
-1, so the first batch-MTP admission failed withunsupported native MMVQ GGML type. Copying that metadata fixes admission with the original subset head and the optional Q4 draft head.Validation on Talos
All 13 model-backed runs passed, with each checked batch token stream matching its solo reference:
--batch-mtpMixed tests admit a different-grid image and text after the first image starts decoding. Greedy and seeded sampling, malformed-record rejection followed by valid recovery, cancellation, image-slot reuse, and image-to-text reuse all match their solo token references. Exactness controls include
STRATA_IQ_MT_MIN=1,--pcie-frac 0,--adapt-every 1000000, and--no-prefill-borrow.sm_120) succeeded; the rebuild after the draft-head metadata correction also succeeded.vision_records_test,mrope_slot_graph_test, andrope_parity, with both GPUs visible.detect_leaks=0; leak checking was not run).ple_parity,expert_parity, andpool_testlack their required development fixtures;iq_parity_fixturesandiq_parityskipped for unavailable fixtures. This inventory was run before the metadata correction; focused CUDA checks and affected model checks were rerun afterward.Scope and coverage limits
--batch-mtpwhen a layer split or helper GPU is configured; its current slot drafter setup uses the first stage's sessions and head. That guard is unchanged by this PR.BYIELD/resume was not validated. In the upstream interleave harness, the idle split-stage prompt path bypassed the chunk-boundary yield handling. The supported staggered-admission and next-turn sections passed in a scoped derivative of that harness; the later yield/resume and checkpoint sections were not counted as passing on two GPUs.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.