π€ A specialized library for integrating context-free grammars (CFG) in EBNF with the Hugging Face Transformers
β134Jan 13, 2026Updated 2 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:
- β50Mar 7, 2025Updated last year
- β10Mar 1, 2025Updated last year
- A curated list of papers related to constrained decoding of LLM, along with their relevant code and resources.β331Jan 22, 2026Updated 2 months ago
- Efficient and general syntactical decoding for Large Language Modelsβ330Jan 19, 2026Updated 2 months ago
- [NeurIPS'24] Grammar-Aligned Decoding: An algorithm to constrain LLMs' outputs without distorting its original distributionβ26Feb 10, 2025Updated last year
- GPU virtual machines on DigitalOcean Gradient AI β’ AdGet to production fast with high-performance AMD and NVIDIA GPUs you can spin up in seconds. The definition of operational simplicity.
- Structured Generation Evalsβ14Sep 25, 2024Updated last year
- β13Oct 30, 2023Updated 2 years ago
- 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
- Incremental Python parser for constrained generation of code by LLMs.β18Sep 18, 2024Updated last year
- Generate sentences from a probabilistic context-free grammar.β17Nov 8, 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.β234Jun 7, 2025Updated 9 months ago
- Grammar Prompting for Domain-Specific Language Generation with Large Language Modelsβ75Nov 13, 2023Updated 2 years ago
- DigitalOcean Gradient AI Platform β’ AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- The CodeInsight dataset is designed for code generation tasks, providing developers with expert-curated examples that bridge the gap betwβ¦β14Oct 22, 2024Updated last year
- Web page with political compass quiz results for open LLMsβ38Jan 31, 2024Updated 2 years ago
- List of papers and other resources at the intersection of Category Theory and NLP.β56Feb 22, 2023Updated 3 years ago
- β19Dec 4, 2025Updated 3 months ago
- Reproduction Package for the paper "Type-Constrained Code Generation with Language Models" [PLDI 2025]β85Mar 11, 2026Updated 2 weeks ago
- β20Nov 19, 2023Updated 2 years ago
- f-PO: Generalizing Preference Optimization with f-divergence Minimizationβ14Apr 2, 2025Updated 11 months ago
- PICARD - Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models. PICARD is a ServiceNow Research project thaβ¦β378Oct 18, 2023Updated 2 years ago
- LLM sampling method for enforcing syntax adherence in generated outputβ25May 31, 2023Updated 2 years ago
- Managed Kubernetes at scale on DigitalOcean β’ AdDigitalOcean Kubernetes includes the control plane, bandwidth allowance, container registry, automatic updates, and more for free.
- β22Nov 23, 2023Updated 2 years ago
- [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 4 months ago
- A unified interface for computing surprisal (log probabilities) from language models! Supports neural, symbolic, and black-box API modelsβ¦β51Updated this week
- An enchanced useState hook which keeps track of the states history, allowing you to undo and redo states.β15Apr 20, 2022Updated 3 years ago
- Fast and memory-efficient exact attention - Windows wheelsβ33Mar 3, 2024Updated 2 years ago
- A python library to manipulate formal languages and various automataβ59Sep 4, 2025Updated 6 months ago
- Lean course materials for Brown CS 22, Spring 2023β20Nov 20, 2023Updated 2 years ago
- NordVPN Special Discount Offer β’ AdSave on top-rated NordVPN 1 or 2-year plans with secure browsing, privacy protection, and support for for all major platforms.
- PC-miner tool for program chairsβ29Dec 18, 2025Updated 3 months ago
- β19Dec 12, 2023Updated 2 years ago
- Code for "The Whole Truth and Nothing But the Truth: Faithful and Controllable Dialogue Response Generation with Dataflow Transduction anβ¦β11Apr 30, 2024Updated last year
- GisPy: A Tool for Measuring Gist Inference Score in Text https://aclanthology.org/2022.wnu-1.5/β13Jul 1, 2024Updated last year
- [ICLR'24] Official PyTorch Implementation of ContraLSPβ33Apr 12, 2024Updated last year
- [ICLR 2025] TidalDecode: A Fast and Accurate LLM Decoding with Position Persistent Sparse Attentionβ52Aug 6, 2025Updated 7 months ago
- This is the official code implementation of Bongard-OpenWorld (ICLR 2024).β14Jan 6, 2025Updated last year