Skip to content

Reuse the same GrammarConstrainedLogitsProcessor across generations#100

Merged
Saibo-creator merged 1 commit into
epfl-dlab:mainfrom
nathanrchn:feature/add-support-for-logits_precessor-reuse
Oct 3, 2024
Merged

Reuse the same GrammarConstrainedLogitsProcessor across generations#100
Saibo-creator merged 1 commit into
epfl-dlab:mainfrom
nathanrchn:feature/add-support-for-logits_precessor-reuse

Conversation

@nathanrchn

@nathanrchn nathanrchn commented Sep 29, 2024

Copy link
Copy Markdown
Contributor

This PR adds support for reusing a single instance of GrammarConstrainedLogitsProcessor as requested in #49.
This is possible with the simple addition of a reset method.

@nathanrchn nathanrchn changed the title Reuse the same GrammarConstrainedLogitsProcessor accros generations Reuse the same GrammarConstrainedLogitsProcessor across generations Sep 29, 2024
@Saibo-creator
Saibo-creator merged commit 36e61ce into epfl-dlab:main Oct 3, 2024
@nathanrchn
nathanrchn deleted the feature/add-support-for-logits_precessor-reuse branch October 3, 2024 09:14
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