eth-sri/lmql
A language for constraint-guided and efficient LLM programming.
LMQL helps developers build advanced applications using large language models (LLMs) by letting them combine traditional Python code with LLM queries. It allows for precise control over the LLM's output by providing constraints and custom logic, leading to more reliable and structured results. Developers, machine learning engineers, and data scientists who are building LLM-powered products or features would use this.
4,161 stars. No commits in the last 6 months.
Use this if you need fine-grained control over how an LLM generates text and want to integrate its capabilities seamlessly into your Python programs with specific rules and logic.
Not ideal if you're looking for a simple, no-code solution for basic LLM prompting or if your application doesn't require complex conditional logic or output constraints.
Stars
4,161
Forks
219
Language
Python
License
Apache-2.0
Category
Last pushed
May 22, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/eth-sri/lmql"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
thu-pacman/chitu
High-performance inference framework for large language models, focusing on efficiency,...
NotPunchnox/rkllama
Ollama alternative for Rockchip NPU: An efficient solution for running AI and Deep learning...
sophgo/LLM-TPU
Run generative AI models in sophgo BM1684X/BM1688
Deep-Spark/DeepSparkHub
DeepSparkHub selects hundreds of application algorithms and models, covering various fields of...
howard-hou/VisualRWKV
VisualRWKV is the visual-enhanced version of the RWKV language model, enabling RWKV to handle...