logoalt Hacker News

imtringued12/09/20241 replyview on HN

Depends on the way you do constrained generation. If all you do is reject tokens using a grammar, then yeah it is bad. If your software inserts things like field names and braces instead of forcing the model to produce them token by token and then afterwards rejecting the wrong tokens, then you should be good to go.


Replies

potatoman2212/10/2024

Why is it bad to reject tokens using a grammar?