Re:Llama: Add Grammar-Based Sampling
by swyx on Saturday July 22, 2023 @04:53AM
(#36824581)
you could also always specify the logit bias parameter in openai apis
[ Parent
| on HN ]
That's true, and one can bias logits in llama.cpp and friends too, but those are global biases that affect the entire output rather than being specified per-token. Uploading a grammar or a wasm binary to the inference engine does seem more expressive.