mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1413] --batch-groups G>1 + --batch-mtp is silently inert: the pipelined path never calls batch_step, but still builds per-slot drafters #571
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#571
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?
Originally created by @shahrokhzargarpour on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1413
Summary
With
--batch-groups G>1(the pipelined multi-slot path) and--batch-mtpset together:batch_step, so the window is assembled with 1 row per slot andthe per-slot MTP draft is not used.
verifier_max_tis raised to 8 andset_batch_graph_limit(64)is called), so VRAM is spent on drafters that never run — ≈0.9 GB per slot.build (v0.1.40.1) does not.
Environment
82f46a8c), Windows 11 (WDDM).--batch 4 --batch-mtp --spec 4.--batch 4 --batch-groups 2 --batch-mtp.Code (references)
pipedis true whenbatch > 0 && batch_groups > 1 && n_pipe > 1src/program/generate.cpp:8062batch_stepsrc/program/generate.cpp:8062vs:8186src/program/generate.cpp:8065-8070,:8143-8158--batch-groupsgate / divisibilitysrc/program/generate.cpp:3687verifier_max_traised to 8,set_batch_graph_limit(64)src/program/generate.cpp:6250-6253src/core/verify.cpp:2227-2231,:2245-2247batch_launchrowssrc/core/verify.cpp:2504-2509The exact line numbers above are those cited in our analysis against v0.1.40.1. Re-confirm them against HEAD
before posting — line references drift between revisions.
Evidence
strata batch (pipelined…).MTP drafts accepted …clause only on the non-pipelined path; under--batch-groups 2that clause is absent.verifier_max_t8, graph limit 64) → ≈0.9 GB/slot of VRAM held fordrafters that never draft.
The
return 1holeSeparately from the silent case: with
--batch N>8+--batch-mtpandN/G>8, the window reachesand the engine exits with
return 1— a hard stop, not a degradation. This path is unreachable without--batch-mtp; the flag is what turns a configuration error into a fatal exit.Proposed fix (three parts)
piped && batch_mtp: print one line saying the pipelined path is 1 row/slot and the per-slotMTP draft will not run — matching what upstream does in #1253.
verifier_max_t/ graph-limit raise),so no VRAM is spent on drafters that never run.
return 1hole: replace the hard exit onbatch rows out of rangewith adegrade-and-continue (disable
--batch-mtpwith a reason, keep serving), consistent with a"a flag must not end the engine" contract.
Repro (exact)
Watch (a) the startup line
strata batch (pipelined…), and (b) the period summary: the absence of theMTP drafts acceptedclause.Not tested / open
--batch-mtpwas run.@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.