Structured generation (in Rust).
This package provides the core functionality for structured generation, formerly implemented in Outlines, with a focus on performance and portability.
Install
We provide bindings to the following languages:
The latest release of the Python bindings is available on PyPi using pip:
-
The current development branch of outlines-core can be installed from GitHub, also using pip:
pip install git+https://github.com/outlines-dev/outlines-core
Or install in a rust project with cargo:
How to contribute?
Setup
First, fork the repository on GitHub and clone the fork locally:
Create a new virtual environment:
Then install the dependencies in editable mode, and install the pre-commit hooks:
Before pushing your code
Run the tests:
And run the code style checks: