pruna
Enrichment pendingPruna is a model optimization framework built for developers, enabling you to deliver faster, more efficient models with minimal overhead.
GraphCanon updated today · GitHub synced today
Trust & integrity
Full report- Maintenance
- Very active (1d since push)
- As of today · Source: github_public_v1
- Provenance
- Not a fork · Organization account
- As of today · Source: github_public_v1
- Security (OSV)
- No lockfile
- As of today · Source: none
Public GitHub metadata and optional OSV dependency scans. Signals, not a guarantee. Trust methodology.
Overview
Pruna is a model optimization framework built for developers, enabling you to deliver faster, more efficient models with minimal overhead.
Capability facts
- Languages
- python
Source: github.language+pyproject.toml · Jul 11, 2026
Categories
Compatibility
Sourced claims from the README excerpt - not unsourced marketing copy.
Source: README excerpt (regex_v1, Jul 11, 2026)
- Python 3.9 or higherSource link
Tags
README
Installation
Pruna is currently available for installation on Linux, MacOS and Windows. However, some algorithms impose restrictions on the operating system and might not be available on all platforms.
Before installing, ensure you have:
- Python 3.9 or higher
- Optional: CUDA toolkit for GPU support
Option 1: Install Pruna using pip
Pruna is available on PyPI, so you can install it using pip:
pip install pruna
Option 2: Install Pruna from source
You can also install Pruna directly from source by cloning the repository and installing the package in editable mode:
git clone https://github.com/PrunaAI/pruna.git
cd pruna
pip install -e .
Quick Start
Getting started with Pruna is easy-peasy pruna-squeezy!
First, load any pre-trained model. Here's an example using Stable Diffusion:
from diffusers import StableDiffusionPipeline
base_model = StableDiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5")
Then, use Pruna's smash function to optimize your model. Pruna provides a variety of different optimization algorithms, allowing you to combine different algorithms to get the best possible results. You can customize the optimization process using SmashConfig:
from pruna import smash, SmashConfig