🤗 A specialized library for integrating context-free grammars (CFG) in EBNF with the Hugging Face Transformers
☆132Jan 13, 2026Updated last month
Alternatives and similar repositories for transformers-CFG
Users that are interested in transformers-CFG are comparing it to the libraries listed below
Sorting:
- Efficient and general syntactical decoding for Large Language Models☆326Jan 19, 2026Updated last month
- A curated list of papers related to constrained decoding of LLM, along with their relevant code and resources.☆325Jan 22, 2026Updated last month
- Generate interleaved text and image content in a structured format you can directly pass to downstream APIs.☆29Oct 18, 2024Updated last year
- Structured Generation Evals☆14Sep 25, 2024Updated last year
- ☆13Oct 30, 2023Updated 2 years ago
- oobabooga extension - Experimental sampler to make LLMs more creative☆23Aug 2, 2023Updated 2 years ago
- Use context-free grammars with an LLM☆174Mar 21, 2024Updated last year
- Benchmark structured generation libraries☆31Oct 25, 2024Updated last year
- Label shift estimation for transfer difficulty with Familiarity.☆10Feb 4, 2025Updated last year
- Exploiting Inter-sample and Inter-feature Relations in Dataset Distillation (CVPR24)☆11Jun 16, 2024Updated last year
- f-PO: Generalizing Preference Optimization with f-divergence Minimization☆13Apr 2, 2025Updated 11 months ago
- Syntax Error-Free and Generalizable Tool Use for LLMs via Finite-State Decoding☆28Jan 28, 2024Updated 2 years ago
- 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
- A flat container abstraction for Rust☆16Nov 24, 2025Updated 3 months ago
- [ICLR 2025] Linear Combination of Saved Checkpoints Makes Consistency and Diffusion Models Better☆16Feb 15, 2025Updated last year
- LLM Agent that performs sentiment analysis of drawings and natural language using a combination of Google Gemini Vision model and GPT-4 T…☆13Dec 22, 2023Updated 2 years ago
- Web page with political compass quiz results for open LLMs☆38Jan 31, 2024Updated 2 years ago
- Reproduction Package for the paper "Type-Constrained Code Generation with Language Models" [PLDI 2025]☆82Jun 11, 2025Updated 8 months ago
- A python library to manipulate formal languages and various automata☆59Sep 4, 2025Updated 6 months ago
- Tools and Utils for Experiments (TUX)☆15Jan 28, 2025Updated last year
- ☆15Apr 2, 2025Updated 11 months ago
- Proofs written in Lean4 for the core katydid validation algorithm☆18Sep 17, 2025Updated 5 months ago
- ☆16Mar 14, 2024Updated last year
- create timer videos at any speed.☆15Sep 25, 2023Updated 2 years ago
- A Parallel Framework for Bayesian Learning☆14Aug 2, 2021Updated 4 years ago
- Generate sentences from a probabilistic context-free grammar.☆17Nov 8, 2024Updated last year
- Decorators for maximizing memory utilization with PyTorch & CUDA☆17Sep 29, 2025Updated 5 months ago
- ☆18Aug 19, 2024Updated last year
- SMT-LIB benchmarks for shape computations from deep learning models in PyTorch☆18Dec 21, 2022Updated 3 years ago
- Grammar Prompting for Domain-Specific Language Generation with Large Language Models☆75Nov 13, 2023Updated 2 years ago
- Code to reproduce experiments in the paper "Constrained Language Models Yield Few-Shot Semantic Parsers" (EMNLP 2021).☆67May 31, 2024Updated last year
- Simple, boilerplate-free operations on tree shaped data types. Port of the Uniplate Haskell library into Rust.☆23Dec 7, 2025Updated 2 months ago
- [ICLR 2025] Permute-and-Flip: An optimally robust and watermarkable decoder for LLMs☆19Mar 20, 2025Updated 11 months ago
- [ICLR 2025] TidalDecode: A Fast and Accurate LLM Decoding with Position Persistent Sparse Attention☆53Aug 6, 2025Updated 6 months ago
- Code for the EMNLP24 paper "A simple and effective L2 norm based method for KV Cache compression."☆18Dec 13, 2024Updated last year
- Large object allocator for Rust☆21Feb 17, 2026Updated 2 weeks ago
- Audio-visual diarization pipeline used for creating VoxConverse dataset☆21Jun 6, 2025Updated 9 months ago
- ☆22Feb 29, 2024Updated 2 years ago
- ☆25Dec 12, 2025Updated 2 months ago