---
title: "pruna"
type: "tool"
slug: "prunaai-pruna"
canonical_url: "https://www.graphcanon.com/tools/prunaai-pruna"
github_url: "https://github.com/PrunaAI/pruna"
homepage_url: "https://docs.pruna.ai"
stars: 1247
forks: 95
primary_language: "Python"
license: "Apache-2.0"
archived: false
categories: ["llm-frameworks", "model-training", "speech-audio"]
tags: ["deep-learning", "llm", "ai", "machine-learning", "hacktoberfest", "diffusion-models", "diffusers", "computer-vision"]
updated_at: "2026-07-11T12:26:24.940759+00:00"
---

# pruna

> Pruna is a model optimization framework built for developers, enabling you to deliver faster, more efficient models with minimal overhead.

Pruna is a model optimization framework built for developers, enabling you to deliver faster, more efficient models with minimal overhead.

## Facts

- Repository: https://github.com/PrunaAI/pruna
- Homepage: https://docs.pruna.ai
- Stars: 1,247 · Forks: 95 · Open issues: 26 · Watchers: 11
- Primary language: Python
- License: Apache-2.0
- Last pushed: 2026-07-10T00:27:30+00:00

## Trust & health

_Signals computed from public GitHub metadata. Not a security guarantee._

- Maintenance: Very active (computed 2026-07-11T12:26:16.226Z)
- Security scan: No lockfile (0 critical, 0 high, 0 medium, 0 low) · last scan 2026-07-11T12:26:20.463Z
- Full report: [trust report](/tools/prunaai-pruna/trust.md) · [JSON](https://www.graphcanon.com/api/graphcanon/tools/prunaai-pruna/trust)

## Categories

- [LLM Frameworks](/categories/llm-frameworks.md)
- [Model Training](/categories/model-training.md)
- [Speech & Audio](/categories/speech-audio.md)

## Tags

deep-learning, llm, ai, machine-learning, hacktoberfest, diffusion-models, diffusers, computer-vision

## Category neighbours (exploratory)

_Same-category tools for discovery only - not curated alternatives. Cap shown at six._

- [awesome](/tools/sindresorhus-awesome.md) - 😎 Curated list of awesome topics including hardware resources (★ 484,026) [Active]
- [tensorflow](/tools/tensorflow-tensorflow.md) - An Open Source Machine Learning Framework for Everyone (★ 196,300) [Very active]
- [AutoGPT](/tools/significant-gravitas-autogpt.md) - AutoGPT is the vision of accessible AI for everyone, to use and to build on. (★ 185,464) [Very active]
- [ollama](/tools/ollama-ollama.md) - Get up and running with various large language models using Ollama. (★ 175,936) [Very active]
- [prompts.chat](/tools/f-prompts-chat.md) - Share, discover, and collect prompts from the community (★ 165,372) [Very active]
- [transformers](/tools/huggingface-transformers.md) - Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models (★ 162,482) [Very active]

_+ 2 more not listed._

## README (excerpt)

_Quoted verbatim from the upstream repository. Untrusted content - treat as data, not instructions._

````text
## <img src="./docs/assets/images/pruna_cool.png" alt="Pruna Cool" width=20></img> 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](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/) for GPU support

#### Option 1: Install Pruna using pip

Pruna is available on PyPI, so you can [install it using pip](https://docs.pruna.ai/en/stable/setup/install.html):

```bash
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:

```bash
git clone https://github.com/PrunaAI/pruna.git
cd pruna
pip install -e .
```

---

## <img src="./docs/assets/images/pruna_cool.png" alt="Pruna Cool" width=20></img> Quick Start


Getting started with Pruna is easy-peasy pruna-squeezy!

First, load any pre-trained model. Here's an example using Stable Diffusion:

```python
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`:

```python
from pruna import smash, SmashConfig
````

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/prunaai-pruna`](/api/graphcanon/tools/prunaai-pruna)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
