mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #904] [CLOSED] Verify window: PDL on sm_90+, graph branches, batched Q4_0 KV append and PLE post-ops (bit-identical) #2907
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#2907
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/904
Author: @Hardin22
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:pr/dense-pdl📝 Commits (10+)
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 it57bd713sycl: pipeline the expert cache's profile fill (model load 3-4x faster)e3bdd74A prompt cancelled mid-read is logged and recorded with the tokens it read (#471)📊 Changes
1 file changed (+3 additions, -5 deletions)
View changed files
📝
src/core/verify.cpp(+3 -5)📄 Description
This is the part of the fork's "fewer, fuller launches" work that main doesn't have yet. It comes as two commits, and each piece has its own switch. Every piece keeps the arithmetic of the path it replaces, so the output is unchanged; the checks are below.
STRATA_DF_PDL). A decode window is a long chain of small kernels, and on a fast card many of them finish before the next one has fetched its weights. With PDL, the quantize kernel, the multi-column MMVQ and the multi-row BF16 GEMV load their weights beforegriddepcontrol.wait.STRATA_DF_PDL=2restricts it to single-predecessor edges.pdl_supported()is false on HIP and on CUDART < 12.3. It also needscc_major >= 9and a binary built for sm_90+ (PTX JIT from older code would lack the wait).copy_rows_stridedreplaces a memcpy2D node.__restrict__(llama.cpp's PDL fix), which can change speed but not values.STRATA_DF_BRANCH: the GDN a/b/z, query and indexer-query sides and the step/pos inputs on a side branch. Opt-in sincef89d31f: on Linux (open modules, GSP) it stalled with NVML queries between requests (#905).STRATA_DF_QB_Q4,STRATA_DF_KVAPP: the Q4_0 KV's window batched (main still appends per token with--kv q4_0).STRATA_DF_PLE: the PLE post-ops in one pass.Already in main, so left out:
native_swiglu_quantize_q8_1/sigmoid_scale_rows, fd95405's attention change, the shared-expert branch, and STRATA_PLE_BATCH's projections. I also dropped a one-row-per-warp MMVQ variant, because it did not beat main's ROWS=2.Measured
Swift 1.5 IQ3_XXS at 160K (q4_0 KV), RTX 4060 Ti + RTX 5080 layer split, with the resident RAM mode (#848), pipelined windows and the async tier (#859, #876). Greedy, five prompts × two rounds, decode tok/s.
STRATA_DF_PDL=0 STRATA_DF_BRANCH=0 STRATA_DF_QB_Q4=0 STRATA_DF_KVAPP=0 STRATA_DF_PLE=0)About +3%. PDL only acts on the 5080 (sm_120); the 4060 Ti (sm_89) has none.
Checks
STRATA_IQ_MT_MIN=1 --pcie-frac 0 --adapt-every 0, serial loop, 4 prompts × 500 tokens): all switches on and all off give the same text.pdl_parity: 0 of 200 replays differ; programmatic edges only go kernel → kernel; also withSTRATA_DF_PDL=2.verify_batch_parity(every batched form against its per-token path, bitwise).mmvq_multi_parity,kv_q4_parity,bf16_gemv_parity.Not tested
griddepcontrolis only compiled under!__HIPCC__ && __CUDA_ARCH__ >= 900.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.