VainF/Torch-Pruning

[CVPR 2023] DepGraph: Towards Any Structural Pruning; LLMs, Vision Foundation Models, etc.

69
/ 100
Established

Leverages DepGraph, a dependency-aware algorithm that automatically identifies and groups coupled parameters across layers to enable true structural pruning—removing entire channels/filters rather than masking individual weights. Supports diverse architectures including LLMs (Llama, Qwen, DeepSeek), vision transformers, diffusion models, and detection frameworks, with examples from Huggingface, Timm, and Torchvision. Provides both high-level pruning APIs for common strategies (global, isomorphic, sparse training) and low-level functions for custom pruning workflows on PyTorch 1.x and 2.x.

3,267 stars and 21,337 monthly downloads. Used by 1 other package. No commits in the last 6 months. Available on PyPI.

Stale 6m
Maintenance 2 / 25
Adoption 21 / 25
Maturity 25 / 25
Community 21 / 25

How are scores calculated?

Stars

3,267

Forks

374

Language

Python

License

MIT

Last pushed

Sep 07, 2025

Monthly downloads

21,337

Commits (30d)

0

Dependencies

2

Reverse dependents

1

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/VainF/Torch-Pruning"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.