Home

Awesome

<p align="center"> <img src="assets/whittle-logo.png" width="100" height="100" alt="Whittle Logo"> </p> <h1 align="center">Whittle 🪒🧠</h1> <p align="center"> <img src="assets/library-visualization.svg" height="400" alt="Whittle Visualization"> </p>

PyPI - Python Version unit-tests license

Whittle is a Python library for compressing large language models (LLMs) by extracting sub-networks to balance performance and efficiency. It is based on LitGPT and allows to compress many state-of-the-art models.

Installation

Whittle supports and is tested for python 3.9 to 3.12.

You can install whittle with:

pip install whittle

Install from source

Install whittle from source to get the most recent version:

git clone git@github.com:whittle-org/whittle.git
cd whittle
pip install -e .

Getting started with whittle

To explore and understand different functionalities of whittle checkout this colab notebook and examples/

Projects that use whittle

How to get involved

We more than happy for any code contribution. If you are interested in contribution to whittle, please read our contribution guide.