Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Model Compression Python Packages

Python packages with the GitHub topic model-compression. Sorted by monthly downloads, with stars and forks.
tensorflow
tensorflow-model-optimization

A toolkit to optimize ML models for deployment for Keras and TensorFlow, including quantization and pruning.

50K 2K 350
horseee
deepcache

[CVPR 2024] DeepCache: Accelerating Diffusion Models for Free

49K 967 51
VainF
torch-pruning

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

28K 3K 392
Microsoft
nni

An open source AutoML toolkit for automate machine learning lifecycle, including feature engineering, neural architecture search, model compression and hyper-parameter tuning.

21K 14K 2K
rajveer43
veloxquant-mlx

Fast KV-cache quantization for Apple Silicon (MLX) — 43 research-adapted compression methods with Metal kernels

19K 37 11
raws-labs
tigris-ml

Ahead-of-time compiler that fits ML models on embedded devices with hard memory budgets.

9K 7 0
tensorflow
tf-model-optimization-nightly

A toolkit to optimize ML models for deployment for Keras and TensorFlow, including quantization and pruning.

6K 2K 350
Andreas-Hum
tinydistill

Distil an LLM classification prompt into a small, fast model that runs on a CPU

5K 0 0
kxytechnologies
kxy

A Powerful Serverless Pre-Learning and Post-Learning Analysis Toolkit

4K 49 11
ZaberKo
torch-kirigami

Structured pruning and sparse training for PyTorch models.

3K 0 2
Thiggel
economize

Composable efficiency techniques (speculative decoding, early exit, quantization, sparsity, KV compression) for Hugging Face models

3K 3 0
defai-digital
axquant

Reproducible quantization and verifiable AXQ model packs for MLX and CUDA

2K 2 0
666DZY666
micronet

micronet, a model compression and deploy lib. compression: 1、quantization: quantization-aware-training(QAT), High-Bit(>2b)(DoReFa/Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference)、Low-Bit(≤2b)/Ternary and Binary(TWN/BNN/XNOR-Net); post-training-quantization(PTQ), 8-bit(tensorrt); 2、 pruning: normal、regular and group convolutional channel pruning; 3、 group convolution structure; 4、batch-normalization fuse for quantization. deploy: tensorrt, fp32/fp16/int8(ptq-calibration)、op-adapt(upsample)、dynamic_shape

1K 2K 469
wpferrell
bigsmall

Lossless AI model compression — ~34% smaller with bit-identical weights; the autopilot profiles your machine, picks the highest fidelity that runs, and streams models bigger than your RAM

1K 2 0
Picovoice
picollm

On-device LLM Inference Powered by X-Bit Quantization

887 319 26
Picovoice
picollmdemo

On-device LLM Inference Powered by X-Bit Quantization

864 319 26
IonDen
mlx-dfloat

Run DFloat11 losslessly compressed BF16 checkpoints on Apple Silicon with MLX and a Metal decode kernel; today that runs FLUX.1 on a 32 GB Mac with weights about 30% smaller

825 2 0
FasterAI-Labs
fasterai

FasterAI: Prune and Distill your models with FastAI and PyTorch

822 269 20
Microsoft
nni-daily

Neural Network Intelligence package

775 14K 2K
angelolamonaca
pytorch-precision-converter

Convert PyTorch checkpoints, safetensors files and whole Hugging Face model folders to fp16, bf16, fp8 or ComfyUI fp8_scaled, int8_convrot and int8, turn FP8 models (DeepSeek, Qwen) back into BF16 on a CPU, merge or split sharded safetensors, and extract EMA weights, with one command and without loading the model into RAM.

760 15 0
WalWal1977
hypercache-ai

Unified LLM KV-Cache (-58.2% VRAM) & Vector DB / RAG Embedding (-57.3% RAM) Acceleration SDK for PyTorch & Hugging Face.

529 1 0
pedrovergueiroo
dnaty

Evolutionary Neural Architecture Search — compress any PyTorch model with one function call

516 1 1
its-not-rocket-science
atropos-llm

ROI estimation and automation tool for LLM pruning - quantifies accuracy-efficiency trade-offs before and after pruning.

495 0 0
tianyic
only-train-once

OTOv1-v3, NeurIPS, ICLR, TMLR, DNN Training, Compression, Structured Pruning, Erasing Operators, CNN, Diffusion, LLM

421 312 47
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology