[PR #379] [CLOSED] gr_parity: compare the split read (STRATA_GR_V3=1) within float rounding (the test fails with it on) #2608

Closed
opened 2026-11-04 02:01:43 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/379
Author: @sergqwer
Created: 10/1/2026
Status: ❌ Closed

Base: main ← Head: pr/gr-parity-v3


📝 Commits (1)

  • 684a6d9 gr_parity: compare the split read (STRATA_GR_V3=1) within float rounding

📊 Changes

1 file changed (+17 additions, -1 deletions)

View changed files

📝 src/kernels/gr_parity.cpp (+17 -1)

📄 Description

With STRATA_GR_V3=1, gr_parity fails on 0.1.31 main:

fused GR multi max-T=8 LDS launch and changing graph replay FAIL

The test compares the multi-token hyper-connection read with the single-token kernel bit for bit. That breaks under v3 for two reasons:

  • Summation order. v3 splits down over (row group, stream) blocks and sums in another order, so it is equal to the reference only within float rounding.
  • lo. The test also compares lo, the default kernels' workspace between down and up. v3 keeps that in shared memory and never writes it.

Under v3 the test now checks R_out, rs, inject and mixed within 2e-6 of the largest reference value, and leaves lo out. It prints the worst difference when that fails. Without v3 it compares bit for bit, as before.

Passes with and without STRATA_GR_V3=1 (RTX 5090). Test-only: no engine code changes.

We run v3 on by default in our NVFP4 fork (decode rounds 3-5% shorter there). This PR only makes the test usable for anyone who turns it on.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VZy1yKaDDiA8a7svdwaHio


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/379 **Author:** [@sergqwer](https://github.com/sergqwer) **Created:** 10/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/gr-parity-v3` --- ### 📝 Commits (1) - [`684a6d9`](https://github.com/Niko1221/Strata/commit/684a6d9c672f7bbe5460d1467431dcd4de0f1b28) gr_parity: compare the split read (STRATA_GR_V3=1) within float rounding ### 📊 Changes **1 file changed** (+17 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/kernels/gr_parity.cpp` (+17 -1) </details> ### 📄 Description With `STRATA_GR_V3=1`, `gr_parity` fails on 0.1.31 main: ``` fused GR multi max-T=8 LDS launch and changing graph replay FAIL ``` The test compares the multi-token hyper-connection read with the single-token kernel bit for bit. That breaks under v3 for two reasons: - **Summation order.** v3 splits `down` over (row group, stream) blocks and sums in another order, so it is equal to the reference only within float rounding. - **`lo`.** The test also compares `lo`, the default kernels' workspace between down and up. v3 keeps that in shared memory and never writes it. Under v3 the test now checks `R_out`, `rs`, `inject` and `mixed` within 2e-6 of the largest reference value, and leaves `lo` out. It prints the worst difference when that fails. Without v3 it compares bit for bit, as before. Passes with and without `STRATA_GR_V3=1` (RTX 5090). Test-only: no engine code changes. We run v3 on by default in our NVFP4 fork (decode rounds 3-5% shorter there). This PR only makes the test usable for anyone who turns it on. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VZy1yKaDDiA8a7svdwaHio --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:01:43 +07:00
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#2608
No description provided.