mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #853] [CLOSED] cuda: specialize hyper-connection up for short verify windows #2873
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#2873
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/853
Author: @InB4DevOps
Created: 10/4/2026
Status: ❌ Closed
Base:
main← Head:perf/gr-up-max4📝 Commits (10+)
fa16567setup: an earlier config that does not parse is skipped, not a crash; configs are written atomically (#459)749d957setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446)5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)eb8da1d/metrics: each request's speculative draft counts, and their sums in the totals (#457)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it📊 Changes
2 files changed (+21 additions, -10 deletions)
View changed files
📝
src/kernels/cuda/fused_gr.cu(+14 -5)📝
src/kernels/gr_parity.cpp(+7 -5)📄 Description
Summary
Specialize the multi-token hyper-connection up kernel for verify windows with four or fewer tokens.
The existing kernel always reserved shared memory and unrolled work for the maximum eight tokens. This change templates the token capacity and dispatches a four-token specialization for
T <= 4. Larger windows continue to use the existing eight-token kernel.STRATA_GR_UP_MAX4=0restores the previous behavior for regression testing.Correctness
The specialization preserves launch geometry, arithmetic, and accumulation order.
gr_paritynow checks direct execution and graph replay atT=2,T=4, andT=8. The optimized kernel was bit-identical to the existing path, and end-to-end greedy responses were identical in all A/B runs.Measurements
Measured on an RTX 3060 12 GB with the Coder IQ1_M native pack,
--spec 4, and--spec-min-p 0.70.First A/B:
Repeat:
After enabling the specialization by default, a final default-versus-legacy run measured:
STRATA_GR_UP_MAX4=0): 41.89 ms/window, 38.4 tok/sThe savings appeared in both hyper-connection reads, while unrelated stages remained effectively unchanged.
Validation
strataandgr_paritygr_parity --selftest🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.