Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

outlines-core

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

outlines-core

Structured Text Generation in Rust

  • 0.1.26
  • PyPI
  • Socket score

Maintainers
2

Outlines-core Logo

Contributors

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:

  • Rust (Original implementation)
  • Python

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 git@github.com/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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc