π€ A specialized library for integrating context-free grammars (CFG) in EBNF with the Hugging Face Transformers
β138Jan 13, 2026Updated 4 months ago
Alternatives and similar repositories for transformers-CFG
Users that are interested in transformers-CFG are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- β54Mar 7, 2025Updated last year
- A curated list of papers related to constrained decoding of LLM, along with their relevant code and resources.β348Jan 22, 2026Updated 4 months ago
- Efficient and general syntactical decoding for Large Language Modelsβ334Jan 19, 2026Updated 4 months ago
- Structured Generation Evalsβ14Sep 25, 2024Updated last year
- A guide to structured generation using constrained decodingβ18Jun 9, 2024Updated last year
- Deploy on Railway without the complexity - Free Credits Offer β’ AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Use context-free grammars with an LLMβ174Mar 21, 2024Updated 2 years ago
- Generate interleaved text and image content in a structured format you can directly pass to downstream APIs.β29Oct 18, 2024Updated last year
- ISLearn is a tool for mining constraints on string inputs based on context-free grammars and the ISLa specification language.β16Mar 2, 2026Updated 2 months ago
- Incremental Python parser for constrained generation of code by LLMs.β18Sep 18, 2024Updated last year
- Benchmark structured generation librariesβ31Oct 25, 2024Updated last year
- Formatron empowers everyone to control the format of language models' output with minimal overhead.β236Jun 7, 2025Updated 11 months ago
- Grammar Prompting for Domain-Specific Language Generation with Large Language Modelsβ78Nov 13, 2023Updated 2 years ago
- Experiments with reasoning models, training techniques, papersβ30Updated this week
- Programming Language designed for Program Synthesis with SMT-validation.β32May 19, 2026Updated last week
- Deploy on Railway without the complexity - Free Credits Offer β’ AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- The CodeInsight dataset is designed for code generation tasks, providing developers with expert-curated examples that bridge the gap betwβ¦β15Oct 22, 2024Updated last year
- Code to reproduce experiments in the paper "Constrained Language Models Yield Few-Shot Semantic Parsers" (EMNLP 2021).β67May 31, 2024Updated last year
- β21Nov 19, 2023Updated 2 years ago
- Reproduction Package for the paper "Type-Constrained Code Generation with Language Models" [PLDI 2025]β93Mar 11, 2026Updated 2 months ago
- f-PO: Generalizing Preference Optimization with f-divergence Minimizationβ14Apr 2, 2025Updated last year
- Syntax Error-Free and Generalizable Tool Use for LLMs via Finite-State Decodingβ30Jan 28, 2024Updated 2 years ago
- PICARD - Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models. PICARD is a ServiceNow Research project thaβ¦β377Oct 18, 2023Updated 2 years ago
- β16Mar 14, 2024Updated 2 years ago
- LLM sampling method for enforcing syntax adherence in generated outputβ25May 31, 2023Updated 2 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer β’ AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- [ICLR 2025] Permute-and-Flip: An optimally robust and watermarkable decoder for LLMsβ19Mar 20, 2025Updated last year
- Allows to check regexes for overlaps. Based on greenery by @qntm.β57Jun 5, 2024Updated last year
- A flat container abstraction for Rustβ16Nov 24, 2025Updated 6 months ago
- [ICML'24] Official PyTorch Implementation of TimeX++β31Nov 6, 2024Updated last year
- A Parallel Framework for Bayesian Learningβ14Aug 2, 2021Updated 4 years ago
- This repository contains a Python implementation that allows you to use gorilla-llm/gorilla-openfunctions-v2 LLM to perform function callβ¦β17Apr 7, 2024Updated 2 years ago
- A formal specification of the Yul IR semantics in the Lean proof assistant.β14Jun 20, 2025Updated 11 months ago
- Super-fast Structured Outputsβ765May 18, 2026Updated last week
- Context free grammar to pushdown automaton convertor, along with string parser - Theory of Languages and Machines project, spring 2020β13Jan 18, 2022Updated 4 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer β’ AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- A python library to manipulate formal languages and various automataβ60Sep 4, 2025Updated 8 months ago
- Lean course materials for Brown CS 22, Spring 2023β20Nov 20, 2023Updated 2 years ago
- Utilities for efficient fine-tuning, inference and evaluation of code generation modelsβ21Oct 3, 2023Updated 2 years ago
- [ICLR 2025] Linear Combination of Saved Checkpoints Makes Consistency and Diffusion Models Betterβ16Feb 15, 2025Updated last year
- PC-miner tool for program chairsβ29Dec 18, 2025Updated 5 months ago
- Code for "The Whole Truth and Nothing But the Truth: Faithful and Controllable Dialogue Response Generation with Dataflow Transduction anβ¦β10Apr 30, 2024Updated 2 years ago
- GisPy: A Tool for Measuring Gist Inference Score in Text https://aclanthology.org/2022.wnu-1.5/β13Jul 1, 2024Updated last year