PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Constrained Decoding Python Packages

Python packages with the GitHub topic constrained-decoding. Sorted by monthly downloads, with stars and forks.
dhanavanthesh
oc-sidememory

Exact semantic memory for schema-constrained token generation - enforces uniqueItems, contains and cross-field constraints during LLM decoding.

4K 2 0
dhanavanthesh
oc-earley

Let JSON nest as deeply as its schema allows. The backend (DFA, LALR(1), Earley) is chosen to match, never approximated.

2K 1 0
dhanavanthesh
maskforge

Schema-guided token masking for reliable structured generation in Rust and Python, with JSON Schema, Pydantic, and Hugging Face support.

397 2 0
parkervg
grammar-guide

Speculative grammar backtracking algorithm for LLM decoding conforming to some lark context-free grammar (CFG)

107 7 1
EdoardoBotta
rectokens

[Pytorch] Efficient tokenization for recommendations and generative retrieval. Inspired by STATIC decoding from "Vectorizing the Trie"

102 9 2
rpo19
refactx

ReFactX: Scalable Reasoning with Reliable Facts via Constrained Generation

98 0 1
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology