mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #167] [CLOSED] generate: zero session state for native packs before the prompt path #2484
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#2484
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/167
Author: @samuelishida
Created: 9/29/2026
Status: ❌ Closed
Base:
main← Head:pr-session-zero📝 Commits (1)
9d332c0generate: zero session state for a native pack before the prompt path📊 Changes
2 files changed (+18 additions, -0 deletions)
View changed files
📝
.gitignore(+3 -0)📝
src/program/generate.cpp(+15 -0)📄 Description
A native (IQ) pack breaks out of the canonical
put_inputloop before position 0 and runs verify windows instead, sogeneratemode never reached thesession_zerocall that the canonical path uses. On a reusedcudaMallocallocation that left GDN, QSA KV/indexer, PLE history, andRuninitialized, producing NaN/overflow and degenerate identical-token output.Zero the session state explicitly when
native_packis set.Also removes an unused
argmax()helper that emitted a compiler warning, and ignores the local.pi/harness directory.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.