mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #276] [CLOSED] diagnostics: STRATA_DUMP_FIRST_LOGITS writes the first generated token's logits #2542
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#2542
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?
📋 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)
5bfa438diagnostics: 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.