procedure
Large Language Models (LLMs) can be constrained to specific output formats by combining the Finite State Machine's (FSM) list of valid tokens with the model's probability distribution and setting the logprob or logit of invalid tokens to negative infinity.

Authors

Sources

Referenced by nodes (2)