[GH-ISSUE #375] STRATA_GR_V3=1 fails gr_parity self-consistency checks on Turing (sm_75) — likely the S=2 column-half split path #179

Closed
opened 2026-11-04 01:40:41 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @kenh0u on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/375

STRATA_GR_V3=1 fails gr_parity self-consistency checks on Turing (sm_75) — likely the S=2 column-half split path

Hi — reporting a reproducible failure of the opt-in STRATA_GR_V3=1 decode path on an all-Turing machine. The default path is completely fine, so this is informational rather than urgent; Turing is also the one architecture where the V3 path can be safely avoided, which is why I'm reporting instead of digging in myself.

Environment

  • Engine: 0.1.31 (9259cad), built from source for CMAKE_CUDA_ARCHITECTURES=75
  • GPU: 3× Turing (Quadro RTX 8000 + 2× RTX 6000), sm_75
  • Model: Qwen3.8-Flash-Next IQ3_S

Reproduction

$ ./build/gr_parity              # default path
... FAILURES: 0

$ STRATA_GR_V3=1 ./build/gr_parity
FAIL: fused GR multi max-T differs from single-token calls
FAIL: captured graph differs from direct max-T call
FAIL: max-T=8 LDS launch and changing graph replay FAIL
... 3 failures

All three failures are self-consistency checks of the multi-token path (multi-token vs. per-token, graph replay vs. direct call), not comparisons against a reference oracle — so the V3 path disagrees with itself depending on how it is invoked.

Suspected cause

In src/kernels/cuda/fused_gr.cu, the per-device split3[] decision picks the number of column halves S from cudaDevAttrMaxSharedMemoryPerBlockOptin. Ampere (99 KB) selects S=1, which I believe is the configuration actually validated upstream. Turing tops out at 64 KB opt-in, which selects the S=2 branch — so on this rig the failure is landing on a path that has probably never run anywhere. I searched the issues and didn't find a prior report. A reduction-order / late-scale issue in the gr_down_v3_kernel<2> split, or a missing branch in the graph-capture setup for S=2, would both fit the symptom pattern (the graph-vs-direct failure in particular suggests something beyond a plain numeric bug).

For completeness: the sm_75 TILE=1280 down-kernel specialization that landed in 0.1.31 (#258) is not implicated — it instantiates the default gr_down_multi_kernel, and the default path (which uses it on this machine) passes with 0 failures.

Why I'm not sending a fix

Turing is the only hardware class that hits the S=2 path, and the workaround on this hardware is simply not setting STRATA_GR_V3=1 — the default kernels are correct and fast enough. Debugging the S=2 branch means iterating entirely on sm_75 hardware that won't benefit from the result, so the practical value of fixing it seems concentrated on whichever architecture eventually lands at 64 KB. I figured the maintainers would rather know the branch is untested-and-broken than have it stay silent, and a Turing user who cares about V3 performance has the motivation (and the hardware) to take it from here.

Happy to run any specific experiment on this machine if that would help narrow it down.

Originally created by @kenh0u on GitHub (Oct 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/375 ### `STRATA_GR_V3=1` fails `gr_parity` self-consistency checks on Turing (sm_75) — likely the S=2 column-half split path Hi — reporting a reproducible failure of the opt-in `STRATA_GR_V3=1` decode path on an all-Turing machine. The default path is completely fine, so this is informational rather than urgent; Turing is also the one architecture where the V3 path can be safely avoided, which is why I'm reporting instead of digging in myself. **Environment** - Engine: 0.1.31 (`9259cad`), built from source for `CMAKE_CUDA_ARCHITECTURES=75` - GPU: 3× Turing (Quadro RTX 8000 + 2× RTX 6000), sm_75 - Model: Qwen3.8-Flash-Next IQ3_S **Reproduction** ``` $ ./build/gr_parity # default path ... FAILURES: 0 $ STRATA_GR_V3=1 ./build/gr_parity FAIL: fused GR multi max-T differs from single-token calls FAIL: captured graph differs from direct max-T call FAIL: max-T=8 LDS launch and changing graph replay FAIL ... 3 failures ``` All three failures are self-consistency checks of the multi-token path (multi-token vs. per-token, graph replay vs. direct call), not comparisons against a reference oracle — so the V3 path disagrees with itself depending on how it is invoked. **Suspected cause** In `src/kernels/cuda/fused_gr.cu`, the per-device `split3[]` decision picks the number of column halves `S` from `cudaDevAttrMaxSharedMemoryPerBlockOptin`. Ampere (99 KB) selects **S=1**, which I believe is the configuration actually validated upstream. Turing tops out at **64 KB opt-in**, which selects the **S=2** branch — so on this rig the failure is landing on a path that has probably never run anywhere. I searched the issues and didn't find a prior report. A reduction-order / late-scale issue in the `gr_down_v3_kernel<2>` split, or a missing branch in the graph-capture setup for S=2, would both fit the symptom pattern (the graph-vs-direct failure in particular suggests something beyond a plain numeric bug). For completeness: the sm_75 TILE=1280 down-kernel specialization that landed in 0.1.31 (#258) is not implicated — it instantiates the *default* `gr_down_multi_kernel`, and the default path (which uses it on this machine) passes with 0 failures. **Why I'm not sending a fix** Turing is the only hardware class that hits the S=2 path, and the workaround on this hardware is simply not setting `STRATA_GR_V3=1` — the default kernels are correct and fast enough. Debugging the S=2 branch means iterating entirely on sm_75 hardware that won't benefit from the result, so the practical value of fixing it seems concentrated on whichever architecture eventually lands at 64 KB. I figured the maintainers would rather know the branch is untested-and-broken than have it stay silent, and a Turing user who cares about V3 performance has the motivation (and the hardware) to take it from here. Happy to run any specific experiment on this machine if that would help narrow it down.
Author
Owner

@Niko1221 commented on GitHub (Oct 1, 2026):

Thanks for the clear report and the diagnosis. The first failure (multi-token vs single-token) is expected under V3, since it sums in another order; PR #379, taken for the next release, compares that within float rounding. The graph-vs-direct disagreement on the S=2 split is real, and we can't reproduce it on Turing here. So in the next release STRATA_GR_V3=1 on a card that needs the two-half split keeps the default read and says so, until that split is fixed. The default path was never affected. This issue closes with the release.

<!-- gh-comment-id:5938541970 --> @Niko1221 commented on GitHub (Oct 1, 2026): Thanks for the clear report and the diagnosis. The first failure (multi-token vs single-token) is expected under V3, since it sums in another order; PR #379, taken for the next release, compares that within float rounding. The graph-vs-direct disagreement on the S=2 split is real, and we can't reproduce it on Turing here. So in the next release `STRATA_GR_V3=1` on a card that needs the two-half split keeps the default read and says so, until that split is fixed. The default path was never affected. This issue closes with the release.
Author
Owner

@Niko1221 commented on GitHub (Oct 1, 2026):

Released in 0.1.33: STRATA_GR_V3=1 keeps the default read on a card that needs the two-half split, and gr_parity compares V3 within rounding (#379). Thanks!

<!-- gh-comment-id:5940770530 --> @Niko1221 commented on GitHub (Oct 1, 2026): Released in [0.1.33](https://github.com/Niko1221/Strata/releases/tag/v0.1.33): `STRATA_GR_V3=1` keeps the default read on a card that needs the two-half split, and gr_parity compares V3 within rounding (#379). Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#179
No description provided.