Efficient Guided Generation for Large Language Models

07/19/2023
by   Brandon T. Willard, et al.
0

In this article we describe an efficient approach to guiding language model text generation with regular expressions and context-free grammars. Our approach adds little to no overhead to the token sequence generation process, and makes guided generation feasible in practice. An implementation is provided in the open source Python library Outlines.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset