Skip to content

Conversation

@joelpaulkoch
Copy link
Member

This is an implementation of a stateful logits processor.
It constrains the generated output according to a DFA.
It is stateful because it remembers the last chosen state.
For each sampling step, it determines the current state by combining the last state with the last chosen token_id.

@joelpaulkoch joelpaulkoch force-pushed the task/sample-9-stateful-dfa-processor branch 2 times, most recently from 125fd31 to d5a5d61 Compare October 27, 2025 13:20
@joelpaulkoch joelpaulkoch force-pushed the task/sample-9-stateful-dfa-processor branch from 376e04a to b79eeff Compare November 7, 2025 14:11
@joelpaulkoch joelpaulkoch force-pushed the task/sample-9-stateful-dfa-processor branch from b79eeff to 7e80d46 Compare November 7, 2025 14:22
@xhr15 xhr15 force-pushed the task/sample-6-add-state-to-logits-processing branch from 572b748 to ce92584 Compare November 14, 2025 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants