Skip to content

Conversation

webitube
Copy link
Contributor

  • Fixes constrained output (Grammar) support in BatchedExecutorGuidance.
    • Accept the token after Sample().
    • Remove the do-nothing GuidanceSampler.Accept() override so that Accept() actually works.

(cherry picked from commit aa72479)

…ce. 1. Accept the token after Sample(). 2. Remove the do-nothing GuidanceSampler.Accept() override so that Accept() actually works.

(cherry picked from commit aa72479)
@martindevans
Copy link
Member

Thanks for this! I'll merge it once the CI passes :)

@martindevans martindevans merged commit 4df040a into SciSharp:master Aug 22, 2024
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