by J_Shelby_J · 3y ago · 0 comments
After each token generated by the LLM you update the logit bias “mask” to only allow the next token to be a valid json token?
Very slick!
Not sure how this can really guarantee 100%
It's not great but after some timeout you can just set the mask to only include closing brackets.
edit: They describe this more carefully in the paper.