Fast JSON Decoding for Local LLMs with Compressed Finite State Machine
Constraining an LLM to consistently generate valid JSON or YAML that adheres to a specific schema is a critical feature for many applications. In this blog post, we introduce an optimization that significantly accelerates this type of constrained decoding.
lmsys.org