$npx skillfedfor your agent

tensorflow-model-optimization

A suite of tools that users, both novice and advanced can use to optimize machine learning models for deployment and execution.

Worth itPyPI Scientific/EngineeringReleased May 202692.7K downloads / moApache 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — tensorflow_model_optimization-0.8.1-py2.py3-none-any.whl
v0.8.1 · released 2026-05-12 · Python >=3 · 8 runtime deps: absl-py, numpy, six, scipy, enum34, dm-tree, mock, tf-keras

Yes. Active maintenance, low install friction, permissive Apache 2.0 license, and no known vulnerabilities make this a solid choice for anyone optimizing TensorFlow or Keras models for deployment. Install if you need to reduce model size or improve inference performance; skip if you are not working with TensorFlow models or do not have deployment constraints.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires TensorFlow and tf-keras to be installed separately; model optimization techniques are most effective when applied to trained models.
  • Low friction installation with a pure-Python wheel.
  • Active maintenance with recent commits and stable Python API support.

License · maintenance · safety

Apache 2.0 (permissive) — Apache 2.0 permissive license allows commercial and private use with minimal restrictions; attribution required but no copyleft obligations.

last release 2026-05-12 (94 days) · last repo commit 2026-07-27 · 1,578 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 92,693 downloads/mo, #13,432 on PyPI

Verify before relying

pip install tensorflow-model-optimization

import tensorflow_model_optimization as tfmot

# Apply quantization to a Keras model
quantize_model = tfmot.quantization.keras.quantize_model(model)
  • Specific quantization bit-depths and compression ratios achievable with different techniques
  • Performance benchmarks on different hardware targets (mobile, edge, server)
  • Compatibility matrix with specific TensorFlow and Keras versions beyond 'current support'
Same gist for agents: .md · .json

What it is and what it does

TensorFlow Model Optimization Toolkit is a collection of techniques for reducing model size and improving inference speed. It provides APIs for quantization (reducing numerical precision), pruning (removing sparse weights), and clustering to make models smaller and faster for deployment. The toolkit is designed for both novice and advanced users, with Keras-specific APIs that integrate directly into the model training and conversion workflow.

The package depends on standard scientific libraries (numpy, scipy, absl-py) and TensorFlow's ecosystem (tf-keras, dm-tree). It maintains active development with recent commits and targets current Python versions. Most optimization techniques are applied post-training or during training, making it suitable for preparing models for edge devices, mobile platforms, or resource-constrained environments.

Use it for

  • Reduce trained Keras model size for mobile or embedded deployment using quantization
  • Improve inference latency by pruning sparse weights from neural networks
  • Compress large models for on-device inference on resource-constrained hardware
  • Prepare TensorFlow models for conversion to TensorFlow Lite for mobile apps
  • Cluster model weights to reduce memory footprint while maintaining accuracy

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Active maintenance, low install friction, permissive Apache 2.0 license, and no known vulnerabilities make this a solid choice for anyone optimizing TensorFlow or Keras models for deployment. Install if you need to reduce model size or improve inference performance; skip if you are not working with TensorFlow models or do not have deployment constraints.

Install

tensorflow-model-optimization on PyPI

Before you install

Low friction installation with a pure-Python wheel. Active maintenance with recent commits and stable Python API support. Depends on common scientific libraries (numpy, scipy) and TensorFlow ecosystem packages (tf-keras, absl-py).

Requires TensorFlow and tf-keras to be installed separately; model optimization techniques are most effective when applied to trained models.

License in practice

Apache 2.0 permissive license allows commercial and private use with minimal restrictions; attribution required but no copyleft obligations.

Quickstart

pip install tensorflow-model-optimization

import tensorflow_model_optimization as tfmot

# Apply quantization to a Keras model
quantize_model = tfmot.quantization.keras.quantize_model(model)

Verify before relying

  • Specific quantization bit-depths and compression ratios achievable with different techniques
  • Performance benchmarks on different hardware targets (mobile, edge, server)
  • Compatibility matrix with specific TensorFlow and Keras versions beyond 'current support'

Package facts

LicenseApache 2.0 permissive
Python supportSupports the current Python release >=3
Install frictionLow. Pure-Python wheel
Runtime dependencies
8 packages
absl-pynumpysixscipyenum34dm-treemocktf-keras
MaintenanceActively maintained 94 days since the last release
Last repo commit
First released
Downloads92,693 / month, #13,432 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseTopic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Artificial Intelligence

Evidence: tensorflow_model_optimization-0.8.1-py2.py3-none-any.whl

Tags

Capabilities
tensorflow model quantizationneural network pruningmodel compressionkeras model optimizationinference performance tuningsparse weight optimizationmodel size reduction
Topics
model-compressiontensorflow-ecosysteminference-optimization
PyPI keywords
tensorflowmodeloptimizationmachinelearning

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “tensorflow model quantization”

  • tensorflow-model-optimizationProvides quantization, pruning, and clustering techniques to reduce…
  • openvino-devProvides command-line tools and Python APIs to convert deep learning…
  • openvinoOpenVINO converts and optimizes deep learning models from various…

Give your agent the search over MCP, or paste the wish link into any chat.

More Scientific/Engineering packages

numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.

Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.

Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.

BSD-3-Clausepure Python · 3.9+
202.7Mdownloads / mo

See also model-compression-toolkit · nvidia-modelopt · tensorflow-recommenders · tensorflow-hub · keras-tuner · tensorflow-estimator · nncf · onnx-tool · tf-estimator-nightly · openvino

Further reading