π€ A specialized library for integrating context-free grammars (CFG) in EBNF with the Hugging Face Transformers
β140Jan 13, 2026Updated 9 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:
- β59Mar 7, 2025Updated last year
- [NeurIPS'24] Grammar-Aligned Decoding: An algorithm to constrain LLMs' outputs without distorting its original distributionβ29Feb 10, 2025Updated last year
- Efficient and general syntactical decoding for Large Language Modelsβ341Jan 19, 2026Updated 9 months ago
- β10Mar 1, 2025Updated last year
- A curated list of papers related to constrained decoding of LLM, along with their relevant code and resources.β377Jul 27, 2026Updated 3 months ago
- Wordpress hosting with auto-scaling - Free Trial Offer β’ AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Structured Generation Evalsβ14Sep 25, 2024Updated 2 years ago
- Incremental Python parser for constrained generation of code by LLMs.β19Sep 18, 2024Updated 2 years ago
- Reproduction Package for the paper "Type-Constrained Code Generation with Language Models" [PLDI 2025]β106Mar 11, 2026Updated 7 months ago
- Use context-free grammars with an LLMβ175Mar 21, 2024Updated 2 years ago
- Benchmark structured generation librariesβ31Oct 25, 2024Updated 2 years ago
- β14Oct 30, 2023Updated 3 years ago
- Formatron empowers everyone to control the format of language models' output with minimal overhead.β237Jun 7, 2025Updated last year
- Qute: a dependency learning QBF solver.β18Mar 31, 2026Updated 7 months ago
- β20Oct 2, 2026Updated last month
- Wordpress hosting with auto-scaling - Free Trial Offer β’ AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Welcoming contributions from practitioners building AI/data systems - share your real-world problems, document where current tools fail, β¦β14Sep 4, 2025Updated last year
- Generate sentences from a probabilistic context-free grammar.β17Nov 8, 2024Updated last year
- β102Sep 28, 2026Updated last month
- A guide to structured generation using constrained decodingβ19Jun 9, 2024Updated 2 years ago
- Grammar Prompting for Domain-Specific Language Generation with Large Language Modelsβ78Nov 13, 2023Updated 2 years ago
- Implementation of the Louvain and Leiden community detection algorithms.β21Dec 10, 2023Updated 2 years ago
- β22Nov 23, 2023Updated 2 years ago
- β14May 16, 2024Updated 2 years ago
- π³ Clingo grammar for tree-sitterβ16Oct 24, 2026Updated last week
- 1-Click AI Models by DigitalOcean Gradient β’ AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- Web page with political compass quiz results for open LLMsβ37Jan 31, 2024Updated 2 years ago
- Super-fast Structured Outputsβ907Oct 29, 2026Updated last week
- PICARD - Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models. PICARD is a ServiceNow Research project thaβ¦β377Oct 18, 2023Updated 3 years ago
- source code of NAACL2021 "PCFGs Can Do Better: Inducing Probabilistic Context-Free Grammars with Many Symbolsβ and ACL2021 main conferencβ¦β52Mar 28, 2025Updated last year
- Controlled text generation with programmable constraintsβ192Oct 8, 2026Updated 3 weeks ago
- β16Mar 14, 2024Updated 2 years ago
- Syntax Error-Free and Generalizable Tool Use for LLMs via Finite-State Decodingβ31Jan 28, 2024Updated 2 years ago
- A Parallel Framework for Bayesian Learningβ14Aug 2, 2021Updated 5 years ago
- A fork of sqlite-utils with CLI etc removedβ17Sep 21, 2026Updated last month
- Wordpress hosting with auto-scaling - Free Trial Offer β’ AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- The robot who refactors: /[^_^]\β11Jun 6, 2026Updated 4 months ago
- A flat container abstraction for Rustβ17Nov 24, 2025Updated 11 months ago
- LLM sampling method for enforcing syntax adherence in generated outputβ25May 31, 2023Updated 3 years ago
- β22Nov 19, 2023Updated 2 years ago
- Property-based testing library for Pythonβ18Dec 26, 2022Updated 3 years ago
- Liquid Types implementation for Rustβ31Sep 30, 2022Updated 4 years ago
- A python library to manipulate formal languages and various automataβ64Aug 7, 2026Updated 2 months ago