tensorflow/model-optimization

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

Python

1,579

839 commits

updated Oct 14, 2026

See the code

README

TensorFlow Model Optimization Toolkit

The TensorFlow Model Optimization Toolkit is a suite of tools that users, both novice and advanced, can use to optimize machine learning models for deployment and execution.

Supported techniques include quantization and pruning for sparse weights. There are APIs built specifically for Keras.

For an overview of this project and individual tools, the optimization gains, and our roadmap refer to tensorflow.org/model_optimization. The website also provides various tutorials and API docs.

The toolkit provides stable Python APIs.

Installation

For installation instructions, see tensorflow.org/model_optimization/guide/install.

Contribution guidelines

If you want to contribute to TensorFlow Model Optimization, be sure to review the contribution guidelines. This project adheres to TensorFlow's code of conduct. By participating, you are expected to uphold this code.

We use GitHub issues for tracking requests and bugs.

Maintainers

SubpackageMaintainers
tfmot.clusteringArm ML Tooling
tfmot.quantizationTensorFlow Model Optimization
tfmot.sparsityTensorFlow Model Optimization

Community

As part of TensorFlow, we're committed to fostering an open and welcoming environment.

  • TensorFlow Blog: Stay up to date on content from the TensorFlow team and best articles from the community.
compression
deep-learning
keras
machine-learning
ml
model-compression
optimization
pruning
quantization
quantized-networks
quantized-neural-networks
quantized-training
sparsity
tensorflow

tensorflow/model-optimization

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

Python

1,579

839 commits

updated Oct 14, 2026

See the code

README

TensorFlow Model Optimization Toolkit

The TensorFlow Model Optimization Toolkit is a suite of tools that users, both novice and advanced, can use to optimize machine learning models for deployment and execution.

Supported techniques include quantization and pruning for sparse weights. There are APIs built specifically for Keras.

For an overview of this project and individual tools, the optimization gains, and our roadmap refer to tensorflow.org/model_optimization. The website also provides various tutorials and API docs.

The toolkit provides stable Python APIs.

Installation

For installation instructions, see tensorflow.org/model_optimization/guide/install.

Contribution guidelines

If you want to contribute to TensorFlow Model Optimization, be sure to review the contribution guidelines. This project adheres to TensorFlow's code of conduct. By participating, you are expected to uphold this code.

We use GitHub issues for tracking requests and bugs.

Maintainers

SubpackageMaintainers
tfmot.clusteringArm ML Tooling
tfmot.quantizationTensorFlow Model Optimization
tfmot.sparsityTensorFlow Model Optimization

Community

As part of TensorFlow, we're committed to fostering an open and welcoming environment.

  • TensorFlow Blog: Stay up to date on content from the TensorFlow team and best articles from the community.
compression
deep-learning
keras
machine-learning
ml
model-compression
optimization
pruning
quantization
quantized-networks
quantized-neural-networks
quantized-training
sparsity
tensorflow

Project health

Overall

4.7/10

Maintained

1/10

Code review

2/10
OpenSSF Scorecard

Latest release

0.8.1 · May 12, 2026

Releases this year

1

Significant stargazers

Su Yang

2,523 followers · starred Aug 2023

fxmarty

181 followers · starred Jan 2023

ZHANG Dapeng

139 followers · starred Feb 2025

Leonid Ganeline

87 followers · starred May 2024