model-optimization icon indicating copy to clipboard operation
model-optimization copied to clipboard

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

Results 228 model-optimization issues
Sort by recently updated
recently updated
newest added

### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04 - TensorFlow installation (pip package or built from source): from pip package tf-nightly -...

**System information** - TensorFlow version (you are using): 2.6, nightly - Are you willing to contribute it (Yes/No): Yes **Describe the feature and the current behavior/state.** Currently `tf.quantization.fake_quant_*` ops do...

Hello, I have tried to make my model comaptible with QAT, according to your guideline. I started with defining a QuantizeConfig class: ``` LastValueQuantizer = tfmot.quantization.keras.quantizers.LastValueQuantizer MovingAverageQuantizer = tfmot.quantization.keras.quantizers.MovingAverageQuantizer class...

Hello, I would like to train my model in a QAT scenario. But from what I understand, during QAT, only the Forward pass calculations are done in quantized mode, whereas...

**System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04 - TensorFlow installed from (source or binary): Source - TensorFlow version (or github SHA if from...

**Describe the bug** Problem with custom layer weights clustering. When layer implements `ClusterableLayer` it should override `get_clusterable_weights` but later call of `get_weights_from_layer` causes `AttributeError` **System information** ```bash MMMMMMMMMMMMMMMMMMMMMMMMMmds+. dellboy@thunderstruck MMm----::-://////////////oymNMd+`...

bug
technique:clustering

I wrote my code with tensorflow 2.0, some of my code used tf.compat.v1, I'm trying to do quantization aware training for my model, however, I cannot find any functions except...

### 1. System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Linux Ubuntu 18.04 - TensorFlow installation (pip package or built from source):docker pull - TensorFlow library (version, if...

### 1. System information Ubuntu 18.04 pip3 install tensorflow-gpu==2.2.0 pip3 install tensorflow-addons==0.10.0 onnx == 1.7.0 onnx model link (https://github.com/onnx/models/blob/master/vision/classification/resnet/model/resnet50-v1-7.onnx) Conversion works well, but errors occur when performing. ### 2. Code...

Add 2x4 structured sparsity model to Model Garden

cla: yes
technique:pruning