What is GBNF?
llama.cpp's grammar format for constraining output to a formal grammar (such as JSON).
Learn it properly in the lesson →
Where it comes up
Lessons that use this term, most mentions first.
- Structured output: JSON schemas and grammars · 12 min · Pro
- Grammar-constrained decoding inside an engine · 15 min · Pro
- MLX on Apple Silicon · 11 min · Pro