b9754

ggml-org/llama.cppb9754Jun 21, 2026by github-actions[bot]same day as b9753

What changed since b9753

medium risk

b9754 adds an Aho-Corasick parser to the PEG grammar module for stricter, more correct grammar generation.

New features

  • Introduced an Aho-Corasick (AC) parser inside the common/peg module to drive stricter grammar generation.

Improvements

  • Refactored the common/peg module, extracting helper functions and relocating the ac() definition for cleaner structure.
  • Grammar generation is now stricter, reducing acceptance of malformed grammar constructs.

Upgrade notes

This is a single-commit bump over b9753 focused on the internal PEG grammar module; no config or API changes are documented. Because grammar generation is now stricter, validate any custom GBNF grammars after upgrading in case previously tolerated constructs are rejected. One test was removed as part of the refactor, so expect minor differences in grammar-related test coverage.

Analyzed Oct 31, 2026

Upgrading?

Release notes summary

Implemented an AC (Aho-Corasick) parser for the PEG grammar generation module to enforce stricter grammar rules.

Key Highlights

  • Implement AC parser for PEG
  • Stricter grammar generation
  • Refactor common/peg module

Release Notes (excerpt)

<details open> common/peg : implement ac parser for stricter grammar generation (#24869) * common/peg : implement ac parser * cont : extract functions * cont : tidy up * cont : remove a test * cont : move ac() def </details> **macOS/iOS:** - macOS Apple Silicon (arm64) - macOS Apple Silicon (arm64, KleidiAI enabled) DISABLED - macOS Intel (x64) - iOS XCFramework **Linux:** - Ubuntu x64 (CPU) - Ubuntu arm64 (CPU) - Ubuntu s390x (CPU) - Ubuntu x64 (Vulkan) - Ubuntu arm64 (Vulkan)…

Published by ggml-org on GitHub.

Read the full release notes

Related Repositories