SIGN IN SIGN UP

grammar : check the full vocab only if necessary (opt) (#4306)

* Check the full vocab for grammar only if necessary

* Fix missing logit restoration step (?)

Does this matter, actually?

* Fix whitespace / formatting

* Adjust comment

* Didn't mean to push test gbnf

* Split sampling into the helper function (?)

And also revert the changes made to the header

* common : fix final newline

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
K
kalomaze committed
b9ec82d262cb20d7f0a8a1157bfa9aace40e2625
Parent: e0a4002
Committed by GitHub <noreply@github.com> on 12/23/2023, 9:27:07 AM