eth-sri/constrained-diffusion

Constrained Decoding of Diffusion LLMs with Context-Free Grammars.

39
/ 100
Emerging

This tool helps developers generate text, code, or chemical structures using diffusion Large Language Models (LLMs) like LLaDA or DiffuCoder. It takes a prompt and a formal grammar (like JSON Schema, C++, or SMILES) and produces output that strictly adheres to the specified grammar. This is useful for developers who need to ensure the generated content is syntactically correct and functionally robust.

Use this if you are a developer generating code, structured data (like JSON), or chemical notations and need to guarantee the output from a diffusion LLM follows specific syntactic rules.

Not ideal if you are not a developer and do not work directly with Large Language Models or formal grammars.

code-generation structured-data-generation chemical-notation LLM-development developer-tooling
No Package No Dependents
Maintenance 6 / 25
Adoption 7 / 25
Maturity 15 / 25
Community 11 / 25

How are scores calculated?

Stars

41

Forks

5

Language

Rust

License

MIT

Last pushed

Dec 17, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/diffusion/eth-sri/constrained-diffusion"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.