This package provides the core functionality for structured generation, formerly implemented in Outlines, with a focus on performance and portability.
We provide bindings to the following languages:
The latest release of the Python bindings is available on PyPi using pip:
pip install outlines-coreThe current development branch of outlines-core can be installed from GitHub, also using pip:
pip install git+https://github.com/outlines-dev/outlines-coreOr install in a rust project with cargo:
cargo add outlines-coreFirst, fork the repository on GitHub and clone the fork locally:
git clone git@github.com/YourUserName/outlines-core.git
cd outlines-coreCreate a new virtual environment:
python -m venv .venv
source .venv/bin/activateThen install the dependencies in editable mode, and install the pre-commit hooks:
pip install -e ".[test]"
pre-commit installRun the tests:
pytestAnd run the code style checks:
pre-commit run --all-files