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.

52K 2K 348
rajveer43
veloxquant-mlx

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

44K 27 8
raws-labs
tigris-ml

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

30K 7 0
Microsoft
nni

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

25K 14K 2K
horseee
deepcache

[CVPR 2024] DeepCache: Accelerating Diffusion Models for Free

24K 968 51
VainF
torch-pruning

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

14K 3K 387
kxytechnologies
kxy

A toolkit to boost the productivity of machine learning engineers.

3K 49 12
defai-digital
axquant

Not another flat 4-bit quantizer. AXQuant mixes precision layer by layer for Apple Silicon—smaller MLX models, protected quality-critical layers, production-ready plans.

2K 2 0
tensorflow
tf-model-optimization-nightly

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

2K 2K 348
FasterAI-Labs
fasterai

FasterAI: Prune and Distill your models with FastAI and PyTorch

1K 269 20
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
ZaberKo
torch-kirigami

Structured pruning and sparse training for PyTorch models.

1K 0 0
pedrovergueiro
dnaty

Compress PyTorch models for edge devices — CPU-only, no GPU, no retraining. One function call.

1K 1 0
Picovoice
picollm

On-device LLM Inference Powered by X-Bit Quantization

720 318 27
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

666 2K 469
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

603 1 0
Picovoice
picollmdemo

On-device LLM Inference Powered by X-Bit Quantization

530 318 27
KanakMalpani
bnn-lab

Extreme low-bit inference lab: pack weights to 1–1.58 bits and run real XNOR/popcount kernels on CPU/edge — honest STE training, not fake GPU 32× from sign().

505 1 0
ztxtech
fracast

Fracast-0 is an 85K-parameter pretrained Time Series Foundation Model, small enough to load directly in a web page.

462 2 1
Microsoft
nni-daily

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

437 14K 2K
silverspoon-dev
silverspoon-kd

A general-purpose toolkit for knowledge distillation of transformer models

388 0 0
gershonc
octopus-ml

A collection of handy ML and data visualization and validation tools. Go ahead and train, evaluate and validate your ML models and data with minimal effort.

319 23 5
FanxinSun
lmzip

Fast lossless compression for large model weights: 34% off BF16 checkpoints, byte-for-byte identical, with a CUDA decoder at 111 GB/s

316 0 0
SforAiDL
kd-lib

A Pytorch Knowledge Distillation library for benchmarking and extending works in the domains of Knowledge Distillation, Pruning, and Quantization.

310 652 60
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology