mct-nightly 2.2.0.20241021.524__py3-none-any.whl → 2.2.0.20241022.507__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mct-nightly
3
- Version: 2.2.0.20241021.524
3
+ Version: 2.2.0.20241022.507
4
4
  Summary: A Model Compression Toolkit for neural networks
5
5
  Home-page: UNKNOWN
6
6
  License: UNKNOWN
@@ -1,4 +1,4 @@
1
- model_compression_toolkit/__init__.py,sha256=DXPfegWmjsRWWyiAFGqK2V1Kkalf5qN4JzDh55N7Lmk,1573
1
+ model_compression_toolkit/__init__.py,sha256=0HVjlkuiw1WkOHhfE-m3X9oF9OXrUyMhp0klnmfPEDM,1573
2
2
  model_compression_toolkit/constants.py,sha256=i4wYheBkIdQmsQA-axIpcT3YiSO1USNc-jaNiNE8w6E,3920
3
3
  model_compression_toolkit/defaultdict.py,sha256=LSc-sbZYXENMCw3U9F4GiXuv67IKpdn0Qm7Fr11jy-4,2277
4
4
  model_compression_toolkit/logger.py,sha256=3DByV41XHRR3kLTJNbpaMmikL8icd9e1N-nkQAY9oDk,4567
@@ -199,7 +199,6 @@ model_compression_toolkit/core/keras/mixed_precision/configurable_weights_quanti
199
199
  model_compression_toolkit/core/keras/pruning/__init__.py,sha256=3Lkr37Exk9u8811hw8hVqkGcbTQGcLjd3LLuLC3fa_E,698
200
200
  model_compression_toolkit/core/keras/pruning/pruning_keras_implementation.py,sha256=EJkblZ4OAjI5l29GKsUraam5Jn58Sogld47_rFFyr3k,12777
201
201
  model_compression_toolkit/core/keras/quantizer/__init__.py,sha256=mjbqLD-KcG3eNeCYpu1GBS7VclGVOQ63x2p6mAAuba4,698
202
- model_compression_toolkit/core/keras/quantizer/base_quantizer.py,sha256=eMRjAUU189-AVwNGMlV0M-ZlL48ZYmILzutheUT00xU,1628
203
202
  model_compression_toolkit/core/keras/quantizer/fake_quant_builder.py,sha256=vfKwU0AfRH2KztmMF5bxcaBlGdnTePPGZsUqOHzED-U,6854
204
203
  model_compression_toolkit/core/keras/quantizer/lut_fake_quant.py,sha256=Up3-sbuAcaJ6kfe7Sz3XN6iiJ9hlxzOMncLCFEXJFjk,4475
205
204
  model_compression_toolkit/core/keras/reader/__init__.py,sha256=mjbqLD-KcG3eNeCYpu1GBS7VclGVOQ63x2p6mAAuba4,698
@@ -559,8 +558,8 @@ tests_pytest/pytorch/gptq/test_annealing_cfg.py,sha256=hGC7L6mp3N1ygcJ3OctgS_Fz2
559
558
  tests_pytest/pytorch/gptq/test_gradual_act_quantization.py,sha256=tI01aFIUaiCILL5Qn--p1E_rLBUelxLdSY3k52lwcx0,4594
560
559
  tests_pytest/pytorch/trainable_infrastructure/__init__.py,sha256=RAe8mgIr1V8dRIQtLf_dSG5zTUCKuQzxyybYx1dzEAs,697
561
560
  tests_pytest/pytorch/trainable_infrastructure/test_linear_annealing.py,sha256=eNOpSp0GoLxtEdiRypBp8jaujXfdNxBwKh5Rd-P7WLs,1786
562
- mct_nightly-2.2.0.20241021.524.dist-info/LICENSE.md,sha256=aYSSIb-5AFPeITTvXm1UAoe0uYBiMmSS8flvXaaFUks,10174
563
- mct_nightly-2.2.0.20241021.524.dist-info/METADATA,sha256=Q9HDqdvW1FH6tvln8SlAWBpcPXt4YlRGvIPm6-Ig9Kg,20830
564
- mct_nightly-2.2.0.20241021.524.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
565
- mct_nightly-2.2.0.20241021.524.dist-info/top_level.txt,sha256=csdfSXhtRnpWYRzjZ-dRLIhOmM2TEdVXUxG05A5fgb8,39
566
- mct_nightly-2.2.0.20241021.524.dist-info/RECORD,,
561
+ mct_nightly-2.2.0.20241022.507.dist-info/LICENSE.md,sha256=aYSSIb-5AFPeITTvXm1UAoe0uYBiMmSS8flvXaaFUks,10174
562
+ mct_nightly-2.2.0.20241022.507.dist-info/METADATA,sha256=HYlWsJmgchcFkR7Hxd7QgyThGdYJouwoYJnnetjMfv8,20830
563
+ mct_nightly-2.2.0.20241022.507.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
564
+ mct_nightly-2.2.0.20241022.507.dist-info/top_level.txt,sha256=csdfSXhtRnpWYRzjZ-dRLIhOmM2TEdVXUxG05A5fgb8,39
565
+ mct_nightly-2.2.0.20241022.507.dist-info/RECORD,,
@@ -27,4 +27,4 @@ from model_compression_toolkit import data_generation
27
27
  from model_compression_toolkit import pruning
28
28
  from model_compression_toolkit.trainable_infrastructure.keras.load_model import keras_load_quantized_model
29
29
 
30
- __version__ = "2.2.0.20241021.000524"
30
+ __version__ = "2.2.0.20241022.000507"
@@ -1,50 +0,0 @@
1
- # Copyright 2021 Sony Semiconductor Israel, Inc. All rights reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
- # ==============================================================================
15
-
16
- from typing import List, Any, Dict
17
- from tensorflow import Tensor
18
- import six, abc
19
-
20
-
21
- @six.add_metaclass(abc.ABCMeta)
22
- class BaseTrainableQuantizer:
23
- """
24
- Base trainable quantizer to define extra methods needed by the GPTQ post-processing.
25
- """
26
-
27
- @abc.abstractmethod
28
- def get_quant_config(self, layer) -> Dict[str, Any]:
29
- """
30
- Returns the config used to edit NodeQuantizationConfig after GPTQ retraining
31
-
32
- Args:
33
- layer: quantized layer
34
-
35
- Returns:
36
- A dictionary of attributes the quantize_config retraining has changed during GPTQ retraining.
37
- Keys must match NodeQuantizationConfig attributes
38
-
39
- """
40
-
41
- @abc.abstractmethod
42
- def get_trainable_parameters(self) -> List[Tensor]:
43
- """
44
- A function to get a list trainable of trainable parameters for GPTQ retraining
45
-
46
- Returns:
47
- A list of trainable Tensors
48
-
49
- """
50
-