Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Llama.cpp recently added grammar based sampling, which constraints token selection to follow a rigid format like you describe.

https://github.com/ggerganov/llama.cpp/pull/1773



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: