mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #610] RTX A3000 / 0.1.38: a native IQ3_XXS decode window decomposes via STRATA_VERIFY_PROFILE, and its GPU side is memory-bandwidth-bound #288
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#288
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 @yannickloth on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/610
Context
Follow-up to #494 (the CPU-pool decode profile on this host). That issue sized the host side and left the GPU
side open: on the native IQ pack
--gpu-stages,--gpu-only-fulland--no-pool+--specall fail, so thewindow could not be decomposed. Engine 0.1.38, host RTX A3000 12 GB (GA104, sm_86, 32 SMs, 3 MB L2, 192-bit
GDDR6 at 7 GHz = 336 GB/s), i7-12850HX, Swift 1.5 IQ3_XXS native pack (48 layers, 36 GDN + 12 QSA), serve stopped,
fixed
bench/e2e.shprompt.1. The native window can be decomposed - through the serve path
--gpu-stagesstill refuses on a native pack (session_replay_stages: not captured with the split, becauseper-layer graphs are skipped for native packs), but the serve path already prints the same information:
prints, per window,
strata decode GPU stages (ms/window): GDN layers: ... | QSA layers: ... | total ...plus theverify (GPU-reach wait + per-layer host + stage)split. This needed no code change. Suggest either documentingthis on the
--gpu-stagespath or making--gpu-stagesfall back to theVerifierstamps for native packs - theprof_on_timer is already there.Fresh (mean of 3 runs) / warm (8th request of one session):
Warm does not fall below fresh even though the pool does: at the higher hit rate more experts are computed on
the GPU, so the GPU term is roughly flat (the Amdahl correction to #494's "GPU 34% fresh / 62% warm").
2. The GDN projections are at the DRAM roofline
Ranked GPU compute (wait* excluded), ms/window fresh -> warm:
VRAM hits(grouped int8 dp4a expert GEMV) 5.3 -> 6.9;hc-read1+router5.1 -> 5.2; GDNq8+qkv gemv3.0 -> 3.2;out-proj2.5 -> 2.7;head2.5 -> 2.3; GDNz2.0 -> 1.7;
shared+quant1.8 -> 2.0; QSAq+q-idx1.7 -> 1.5,attentionproper only ~0.4-0.6.The GDN projection GEMVs (
attn_qkv,attn_gate,ssm_out, all Q8_0 in this pack, 36 layers) read2.21 GB of weights per window and measure 6.4 ms/window = ~345 GB/s against the card's 336 GB/s peak -
saturated. The native window is one captured CUDA graph, so the old "~13 tiny latency-bound launches per GDN
layer" no longer applies; what is left is execution at the bandwidth wall.
Things tried, both negative:
g_multi_exact = false) is not a free win here: it changes the fixedprompt's tokens (it is equal to ncols=1 only to float rounding) and leaves every GDN stage unchanged
(
q8+qkv3.15 -> 3.20,z1.69 -> 1.73,out-proj1.74 -> 1.83 ms/window). The exact default looks right forthis GEMV class.
STRATA_GR_DOWN_MAX4=1(0.1.38, bit-exact, +2.1% on RTX PRO 6000) is token-identical but -0.43% e2e onthis host (5 x 6 warm requests/arm, interleaved), so it is a no-op here.
Ask
that a direction you would take for the pack, or is GDN numerically sensitive enough to rule it out? Happy to
measure a pack built that way.
Raw stage lines and the A/B output can be attached.
@Niko1221 commented on GitHub (Oct 4, 2026):
Thank you for this decomposition. In 0.1.39 DETAILS.md documents the serve-path profiler (
STRATA_DECODE_TIMING=1, withSTRATA_VERIFY_PROFILE=1for the GPU stages) and how to read its two lines.--gpu-stageson a native pack now points to it instead of only saying "not captured with the split". Lower-precision GDN projections (Q8_0 to Q5_K or an i-quant) would change every answer and need a quality study first, so they are not planned now.