Hugging Face model-definition framework for text, vision, audio and multimodal models, for inference and training.
Opening the entry
Opening the entry
Outlines is a Python library for structured generation with large language models. Instead of parsing or regex-fixing model output after the fact, it constrains generation so the result matches a declared type, such as a Literal, an int, or a Pydantic model. The same code is meant to run across providers including OpenAI, Ollama and vLLM, so models can be swapped without rewriting code.
pip install outlines
# open dottxt-ai/outlines and follow its README
dottxt-ai/outlines is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.