LLM & Foundation Models

Outlines

dottxt-ai/outlines

A library for generating structured, constrained outputs from language models.

★ 15.9KStars
⑂ 901Forks
101Open issues
PythonLanguage
Apache-2.0License
Q84Editorial score

Overview

Outlines helps developers constrain model generation to formats such as valid JSON, regular expressions, or schema-guided structures. It integrates with several model runtimes so applications can validate and consume outputs more reliably.

Key features

  • Structured and constrained generation
  • Schema-aware output patterns
  • Multiple model-runtime integrations
  • Composable generation APIs

Requirements, installation and quick start

Install the Python package with `pip install outlines`; check the official docs for runtime-specific extras.

Usage

Define an output format or schema, configure a supported model backend, and generate values that follow the requested constraints.

Model compatibility and use cases

Supports multiple model backends; exact constraints and capabilities vary by runtime.

License and risk notes

The repository declares Apache-2.0. Model weights and external runtime dependencies may have separate licenses.

Release and maintenance

See the official repository for current releases and changes.

ClearML

clearml/clearml

★ 6.8KPython

PaddleNLP

PaddlePaddle/PaddleNLP

★ 13KPython

GLM-5

zai-org/GLM-5

★ 6.8K—

minimind

jingyaogong/minimind

★ 58.6KPython