News for hackers. Stuff that matters.
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
Re:Llama: Add Grammar-Based Sampling by pshc on Saturday July 22, 2023 @07:23AM (#36825307)
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.