[PR #169] [CLOSED] generate/verify: make diagnostic dumps work under --spec for native packs #2488

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/169
Author: @samuelishida
Created: 9/29/2026
Status: ❌ Closed

Base: main ← Head: pr-hip-diagnostics


📝 Commits (1)

  • 362c9ce generate/verify: make --dump-logits/--dump-layers/--dump-final-r work under --spec

📊 Changes

6 files changed (+298 additions, -22 deletions)

View changed files

📝 docs/AMD_HIP.md (+40 -0)
📝 include/strata/core/verify.hpp (+19 -0)
📝 src/core/verify.cpp (+43 -1)
📝 src/kernels/ple_parity.cpp (+1 -1)
📝 src/program/generate.cpp (+144 -20)
➕ tests/python/README.md (+51 -0)

📄 Description

A native (IQ) pack decodes through verify windows only, so --dump-logits, --dump-layers, and --dump-final-r must emit rows from those windows rather than from the ordinary token loop.

What this PR does:

  • Captures the residual ladder inside the verify-window graph when --dump-layers is set. Rows are the fused-layout residual (layer l's write stays pending inside layer l+1's fused read), which is what the engine actually holds.
  • Writes --dump-logits and --dump-final-r rows for accepted window rows only; rejected drafts are conditioned on tokens the ordinary path never feeds.
  • Rewrites the logits header at close with the real row count so readers see the size the file actually holds.
  • Refuses --dump-halves under --spec cleanly.
  • Decouples the expert-tier residency-table staging from the dump-gate so the table is available both to the token graph and to verify windows, while preserving the original gate for --no-capture / --no-token-graph paths.
  • Provision-gates ple_parity in CMake because its >100 MB fixtures and per-artifact oracle include were never committed; the missing supply chain is documented in tests/python/README.md.

Also documents the native-pack dump semantics in docs/AMD_HIP.md.


🔄 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/169 **Author:** [@samuelishida](https://github.com/samuelishida) **Created:** 9/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr-hip-diagnostics` --- ### 📝 Commits (1) - [`362c9ce`](https://github.com/Niko1221/Strata/commit/362c9ce691b4e6090817da63cfa7a23f34159056) generate/verify: make --dump-logits/--dump-layers/--dump-final-r work under --spec ### 📊 Changes **6 files changed** (+298 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `docs/AMD_HIP.md` (+40 -0) 📝 `include/strata/core/verify.hpp` (+19 -0) 📝 `src/core/verify.cpp` (+43 -1) 📝 `src/kernels/ple_parity.cpp` (+1 -1) 📝 `src/program/generate.cpp` (+144 -20) ➕ `tests/python/README.md` (+51 -0) </details> ### 📄 Description A native (IQ) pack decodes through verify windows only, so `--dump-logits`, `--dump-layers`, and `--dump-final-r` must emit rows from those windows rather than from the ordinary token loop. What this PR does: - Captures the residual ladder inside the verify-window graph when `--dump-layers` is set. Rows are the fused-layout residual (layer l's write stays pending inside layer l+1's fused read), which is what the engine actually holds. - Writes `--dump-logits` and `--dump-final-r` rows for accepted window rows only; rejected drafts are conditioned on tokens the ordinary path never feeds. - Rewrites the logits header at close with the real row count so readers see the size the file actually holds. - Refuses `--dump-halves` under `--spec` cleanly. - Decouples the expert-tier residency-table staging from the dump-gate so the table is available both to the token graph and to verify windows, while preserving the original gate for `--no-capture` / `--no-token-graph` paths. - Provision-gates `ple_parity` in CMake because its >100 MB fixtures and per-artifact oracle include were never committed; the missing supply chain is documented in `tests/python/README.md`. Also documents the native-pack dump semantics in `docs/AMD_HIP.md`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:38 +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#2488
No description provided.