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 from 125fd31 to d5a5d61 Compare October 27, 2025 13:20
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