mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3245] [Engine] log which batch-row switches are on at start-up #4523
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#4523
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/3245
Author: @yi-sudo
Created: 10/19/2026
Status: 🔄 Open
Base:
main← Head:batch-switches-log📝 Commits (1)
0f31ba6Batch decode: log which batch-row switches are on at start-up📊 Changes
2 files changed (+27 additions, -15 deletions)
View changed files
📝
docs/BATCHING.md(+6 -0)📝
src/core/verify.cpp(+21 -15)📄 Description
Problem and result
STRATA_BATCH_ATTN_ROWSandSTRATA_BATCH_GDN_GROUPS(merged from #2234 inf629fb0) are silent: nothing in the engine log says whether they were picked up, and attention quietly keeps its per-row launches when a slot's KV streams. In #2234 you mentioned a start-up line showing which switches are on and when they fall back would be welcome; this adds it.Off (the default), nothing is printed and the engine runs exactly as before. With either switch on, the verifier prints one line after its existing
batch windows of up to N sequencesline (once per stage of a layer split):The last clause appears only when attention is on and a slot streams its KV (
kv_mode == 1).Related discussion
https://github.com/Niko1221/Strata/pull/2234#issuecomment-6231123506
Approach
src/core/verify.cppto two file-scope constants next to the other batch switches (g_batch_self_commit,g_qsa_slots). The parsing is the same as before: set andatoi != 0.Verifier::init_slotsprints the line, so it sits with the existing batch-window line and can check each slot's QSAkv_mode.docs/BATCHING.md: one paragraph with the example line.verify.cppwithout these switches, so it is untouched.Validation
Passed:
cmake --build buildat0f31ba6e(on upstreame88ee39d), Ubuntu, CUDA 13.0, sm_120. 462/462 targets, no errors and no new warnings inverify.cpp../build/batch_rows_parity: all bitwise.ctestinbuild: everything passed exceptexpert_parity, which needspack/full/experts.bin, a pack I don't have locally.stratatarget: ROCm 7.10 pip SDK (rocm[libraries,devel]==7.10.0a20251120),-DCMAKE_HIP_ARCHITECTURES=gfx1201. 157/157 targets with no errors. Compile only; I have no AMD GPU.--parallel 4): the log shows only the existingbatch windows of up to 4 sequencesline and no new line.Failed:
Not run:
Limits
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.