tensorflow/model-optimization
A toolkit to optimize ML models for deployment for Keras and TensorFlow, including quantization and pruning. observed · 2026-08-28
Health v2 · maintenance only
82/100
- Activity 99
- Release rhythm 51
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2863
- days_rel: 113
- days_push: 9
- n_releases_24m: 1
Adoption not part of the score
1578 stars · 346 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
The TensorFlow Model Optimization Toolkit (tfmot) is a Python library providing tools to optimize machine learning models for deployment, including quantization, pruning for sparsity, and weight clustering, with APIs built for Keras. It helps reduce model latency, size, and power consumption for cloud and edge inference.
Use cases
- quantize a trained Keras model for TensorFlow Lite deployment
- prune neural network weights to increase sparsity and shrink model size
- reduce model latency and memory footprint on mobile and IoT devices
- cluster model weights to improve compression for deployment
- compress a deep learning model to fit edge device storage limits
- speed up inference cost for models served in the cloud
When to choose
- you deploy TensorFlow or Keras models to mobile, IoT, or other edge devices with tight memory, power, or latency budgets
- you want post-training or quantization-aware training with stable Keras APIs
- you need smaller model files for download or on-device storage
- you target hardware accelerators that benefit from quantized or sparse weights
When to avoid
- your models are built with PyTorch, JAX, or other non-TensorFlow frameworks
- you need general-purpose model compression outside the TensorFlow ecosystem
- you require cutting-edge optimization techniques not covered by quantization, pruning, or clustering
- your models run only on servers with no resource constraints
Facets
library · maturity stable
machine-learning deep-learning llm-training machine-learning deep-learning mobile-development iot performance python cross-platform quantization pruning sparsity model-compression keras tensorflow edge-deployment model-optimization
9 sources
- readme: https://github.com/tensorflow/model-optimization · fetched 2026-08-28 · f9e42594ef32
- homepage: https://www.tensorflow.org/model_optimization · fetched 2026-08-29 · 11f099771809
- site_page: https://www.tensorflow.org/install · fetched 2026-08-29 · 584a762da891
- site_page: https://www.tensorflow.org/tfx/api_docs · fetched 2026-08-29 · 6977825696fe
- site_page: https://www.tensorflow.org/about · fetched 2026-08-29 · 817250744d91
- site_page: https://www.tensorflow.org/about/case-studies · fetched 2026-08-29 · e6701029eec0
- site_page: https://www.tensorflow.org/model_optimization/api_docs/python/tfmot · fetched 2026-08-29 · 94d910a9b017
- site_page: https://www.tensorflow.org/about/bib · fetched 2026-08-29 · 5ca8943386b9
- site_page: https://www.tensorflow.org/community/contribute · fetched 2026-08-29 · 77d394fa76e7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| tensorflow/model-optimization | main | 82 |
For agents
markdown · JSON · MCP: product_card(name="tensorflow/model-optimization")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem