outlines-core0.1.14
outlines-core0.1.14
Published
Structured Text Generation in Rust
pip install outlines-core
Package Downloads
Authors
Project URLs
Requires Python
>=3.8
Dependencies
- interegular
- jsonschema
- pre-commit
; extra == "test"
- pydantic
; extra == "test"
- pytest
; extra == "test"
- pytest-benchmark
; extra == "test"
- pytest-cov
; extra == "test"
- pytest-mock
; extra == "test"
- coverage
[toml]>=5.1; extra == "test"
- diff-cover
; extra == "test"
- accelerate
; extra == "test"
- beartype
<0.16.0; extra == "test"
- huggingface-hub
; extra == "test"
- torch
; extra == "test"
- transformers
; extra == "test"
- datasets
; extra == "test"
- pillow
; extra == "test"
- asv
; extra == "test"
- setuptools-rust
; extra == "test"
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
:
pip install outlines-core
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:
cargo add outlines-core
How to contribute?
Setup
First, fork the repository on GitHub and clone the fork locally:
git clone [email protected]/YourUserName/outlines-core.git
cd outlines-core
Create a new virtual environment:
python -m venv .venv
source .venv/bin/activate
Then install the dependencies in editable mode, and install the pre-commit hooks:
pip install -e ".[test]"
pre-commit install
Before pushing your code
Run the tests:
pytest
And run the code style checks:
pre-commit run --all-files