{"library":"transformers-cfg","type":"library","category":null,"description":"Extension of the Hugging Face Transformers library for context-free grammar constrained decoding using EBNF grammars. Current version is 0.2.7, released in 2025. Active development with frequent releases.","language":"python","status":"active","version":"0.2.7","tags":["transformers","constrained-decoding","context-free-grammar","ebnf","llm"],"last_verified":"Sat May 09","install":[{"cmd":"pip install transformers-cfg","imports":["from transformers_cfg.grammar_utils import GrammarConstraint","from transformers_cfg.grammar_utils import IncrementalGrammarConstraint","from transformers_cfg.generation.logits_process import GrammarLogitsProcessor"]}],"homepage":null,"github":"https://github.com/epfl-dlab/transformers-CFG","docs":null,"changelog":null,"pypi":"https://pypi.org/project/transformers-cfg/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}