MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / llama_grammar.py

File llama_grammar.py

llama_cpp/llama_grammar.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""Python implementation of llama grammar parser directly translated from C++ source file in vendor/llama.cpp/common/grammar-parser.cpp."""
2
3# flake8: noqa
4from pathlib import Path

Callers

nothing calls this directly

Calls 2

_build_repetitionFunction · 0.85
BuiltinRuleClass · 0.70

Tested by

no test coverage detected