mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #561] [CLOSED] fix: --dump-logits must not promise rows it will never write #2691
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#2691
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/561
Author: @constantindjonkam
Created: 10/2/2026
Status: ❌ Closed
Base:
main← Head:pr/4-dump-logits-header📝 Commits (1)
be84deffix: --dump-logits must not promise rows it will never write📊 Changes
1 file changed (+16 additions, -6 deletions)
View changed files
📝
src/program/generate.cpp(+16 -6)📄 Description
What
--dump-logitspromised rows it never wrote.A native pack leaves the per-token loop at
before the site that dumps a row per position, but the header was written at open. The file claimed
64 or 66 rows and contained none - and a reader that trusted it reported "0 differing
positions" from a file with no positions in it, which is the one answer that looks like a pass.
The header is now written with the first row. A run that dumps nothing leaves an empty file,
which is what actually happened, and a reader can treat size zero as "this mode never dumps" rather
than as agreement.
Verified
On the native pack the file is now 0 bytes where it was 8. The non-native path is unchanged apart from
when the header lands, and was not exercised here - no non-native model is set up on the machine
this was measured on.
Split out of
#463, which had grown two unrelated fixes. This one is
self-contained and independent of it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.