[PR #276] [CLOSED] diagnostics: STRATA_DUMP_FIRST_LOGITS writes the first generated token's logits #2542

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/276
Author: @sergqwer
Created: 9/30/2026
Status: ❌ Closed

Base: main ← Head: pr/diag-first-logits


📝 Commits (1)

  • 5bfa438 diagnostics: STRATA_DUMP_FIRST_LOGITS writes the first generated token's logits

📊 Changes

3 files changed (+20 additions, -0 deletions)

View changed files

📝 include/strata/core/verify.hpp (+3 -0)
📝 src/core/verify.cpp (+7 -0)
📝 src/program/generate.cpp (+10 -0)

📄 Description

Summary

STRATA_DUMP_FIRST_LOGITS=<file> writes the logits of the token the prompt predicts (n_vocab float32, once per run).
Two variants of the engine run on the same prompt then give a first-token KL divergence: how far a change moves the
model's distribution, not only whether its top token changed. On a layer split the last stage's verifier writes it.

This is the measurement behind the precision numbers in the PRs that follow it (#280, #283,
#293, ...). These changes come from an NVFP4 fork of Strata (sergqwer/strata-nvfp4), ported onto current main one topic per PR.

Correctness

Off unless the variable is set; nothing else changes.

🤖 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/276 **Author:** [@sergqwer](https://github.com/sergqwer) **Created:** 9/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/diag-first-logits` --- ### 📝 Commits (1) - [`5bfa438`](https://github.com/Niko1221/Strata/commit/5bfa438eeaadfde27e48907100ba8ab186cad328) diagnostics: STRATA_DUMP_FIRST_LOGITS writes the first generated token's logits ### 📊 Changes **3 files changed** (+20 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `include/strata/core/verify.hpp` (+3 -0) 📝 `src/core/verify.cpp` (+7 -0) 📝 `src/program/generate.cpp` (+10 -0) </details> ### 📄 Description ## Summary `STRATA_DUMP_FIRST_LOGITS=<file>` writes the logits of the token the prompt predicts (n_vocab float32, once per run). Two variants of the engine run on the same prompt then give a first-token KL divergence: how far a change moves the model's distribution, not only whether its top token changed. On a layer split the last stage's verifier writes it. This is the measurement behind the precision numbers in the PRs that follow it (#280, #283, #293, ...). These changes come from an NVFP4 fork of Strata (sergqwer/strata-nvfp4), ported onto current main one topic per PR. ## Correctness Off unless the variable is set; nothing else changes. 🤖 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:09 +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#2542
No description provided.