mct-nightly 2.1.0.20240813.141729__py3-none-any.whl → 2.1.0.20240814.458__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.
- {mct_nightly-2.1.0.20240813.141729.dist-info → mct_nightly-2.1.0.20240814.458.dist-info}/METADATA +1 -1
- {mct_nightly-2.1.0.20240813.141729.dist-info → mct_nightly-2.1.0.20240814.458.dist-info}/RECORD +9 -9
- model_compression_toolkit/__init__.py +1 -1
- model_compression_toolkit/xquant/common/tensorboard_utils.py +4 -6
- model_compression_toolkit/xquant/keras/tensorboard_utils.py +1 -2
- model_compression_toolkit/xquant/pytorch/tensorboard_utils.py +1 -2
- {mct_nightly-2.1.0.20240813.141729.dist-info → mct_nightly-2.1.0.20240814.458.dist-info}/LICENSE.md +0 -0
- {mct_nightly-2.1.0.20240813.141729.dist-info → mct_nightly-2.1.0.20240814.458.dist-info}/WHEEL +0 -0
- {mct_nightly-2.1.0.20240813.141729.dist-info → mct_nightly-2.1.0.20240814.458.dist-info}/top_level.txt +0 -0
{mct_nightly-2.1.0.20240813.141729.dist-info → mct_nightly-2.1.0.20240814.458.dist-info}/RECORD
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
model_compression_toolkit/__init__.py,sha256=
|
1
|
+
model_compression_toolkit/__init__.py,sha256=WyPxXcKaW46nQvYBPlUL88sOcIaEsroJZFknjS4UCok,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
|
@@ -512,7 +512,7 @@ model_compression_toolkit/xquant/common/model_analyzer.py,sha256=T_8OetIQNqR0nkf
|
|
512
512
|
model_compression_toolkit/xquant/common/model_folding_utils.py,sha256=7XMNmsngJgCPVjsuMNt6g4hzhkviB45qUmNRe9jQE7g,4815
|
513
513
|
model_compression_toolkit/xquant/common/similarity_calculator.py,sha256=yCs_vlOThLzq7z-u2PkcEErLj7N7qCBPpRa6_5h34J8,10460
|
514
514
|
model_compression_toolkit/xquant/common/similarity_functions.py,sha256=Atah1otdX9oUUch2JK-p-e291QHtkP_c4DfLG9WWo1Y,2935
|
515
|
-
model_compression_toolkit/xquant/common/tensorboard_utils.py,sha256=
|
515
|
+
model_compression_toolkit/xquant/common/tensorboard_utils.py,sha256=85ABGQGKPZzctyZCHLazK0GxZ2ZUtQA3hZ_9fPiuMs0,6533
|
516
516
|
model_compression_toolkit/xquant/common/xquant_config.py,sha256=Qt56cra2tU1PeHlLx_Cqztf5q-ED8MPelhb8coSumFw,1675
|
517
517
|
model_compression_toolkit/xquant/keras/__init__.py,sha256=zbtceCVRsi-Gvl_pOmq5laqVqu55vAU1ie2FR2RK1Po,709
|
518
518
|
model_compression_toolkit/xquant/keras/dataset_utils.py,sha256=quvVymhvpcPIOneCu5J6K_QAqBHOCIj8IxZxSN2fItA,2258
|
@@ -520,16 +520,16 @@ model_compression_toolkit/xquant/keras/facade_xquant_report.py,sha256=7pf3PUMAj7
|
|
520
520
|
model_compression_toolkit/xquant/keras/keras_report_utils.py,sha256=zUvhqehKKRHEkk6y8g1xQH47b6fTMuPy6stGEZ6mI24,3081
|
521
521
|
model_compression_toolkit/xquant/keras/model_analyzer.py,sha256=WXi9BPI9_TzRWn50lM1i-6cwPPRW0p43Shg_xpHFclU,6521
|
522
522
|
model_compression_toolkit/xquant/keras/similarity_functions.py,sha256=P2qMJAo94Sz_BCao-bnhEeewKtjeLLDDH2r9luDXJ04,2710
|
523
|
-
model_compression_toolkit/xquant/keras/tensorboard_utils.py,sha256=
|
523
|
+
model_compression_toolkit/xquant/keras/tensorboard_utils.py,sha256=635ZcK6_5jdpa7G6Tjq0hkveEYLJQyYRXCFCKL0EioM,9163
|
524
524
|
model_compression_toolkit/xquant/pytorch/__init__.py,sha256=ycb1Xt7PtixY2Uabr94JGSwBMcct66O8ZMVf3Qa3ud8,719
|
525
525
|
model_compression_toolkit/xquant/pytorch/dataset_utils.py,sha256=KFKiFkhIPpEr1ZH5jekZFrgs20VzzKVxSV9YMgH68yI,2894
|
526
526
|
model_compression_toolkit/xquant/pytorch/facade_xquant_report.py,sha256=sr_7TkmkRE0FhdJ7BwXGLFELmR4l_nK7IlTys6oYgoU,3179
|
527
527
|
model_compression_toolkit/xquant/pytorch/model_analyzer.py,sha256=b93o800yVB3Z-ihJBLy5Cic-MQiUM_ZGV6SCXoNdscE,5549
|
528
528
|
model_compression_toolkit/xquant/pytorch/pytorch_report_utils.py,sha256=bOc-hFL3gdoSM1Th_S2N_-9JJSlPGpZCTx_QLJHS6lg,3388
|
529
529
|
model_compression_toolkit/xquant/pytorch/similarity_functions.py,sha256=CERxq5K8rqaiE-DlwhZBTUd9x69dtYJlkHOPLB54vm8,2354
|
530
|
-
model_compression_toolkit/xquant/pytorch/tensorboard_utils.py,sha256=
|
531
|
-
mct_nightly-2.1.0.
|
532
|
-
mct_nightly-2.1.0.
|
533
|
-
mct_nightly-2.1.0.
|
534
|
-
mct_nightly-2.1.0.
|
535
|
-
mct_nightly-2.1.0.
|
530
|
+
model_compression_toolkit/xquant/pytorch/tensorboard_utils.py,sha256=yjghWXxqOtT-QXoXBOuJyh45yUpFI0pKjdDegum2i68,9705
|
531
|
+
mct_nightly-2.1.0.20240814.458.dist-info/LICENSE.md,sha256=aYSSIb-5AFPeITTvXm1UAoe0uYBiMmSS8flvXaaFUks,10174
|
532
|
+
mct_nightly-2.1.0.20240814.458.dist-info/METADATA,sha256=L2BsSReELL4Oa1HYm6XzmFGPqmQI1hm7M8fN0GprFWA,19718
|
533
|
+
mct_nightly-2.1.0.20240814.458.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
534
|
+
mct_nightly-2.1.0.20240814.458.dist-info/top_level.txt,sha256=gsYA8juk0Z-ZmQRKULkb3JLGdOdz8jW_cMRjisn9ga4,26
|
535
|
+
mct_nightly-2.1.0.20240814.458.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.1.0.
|
30
|
+
__version__ = "2.1.0.20240814.000458"
|
@@ -115,14 +115,12 @@ class TensorboardUtils:
|
|
115
115
|
similarity_metrics (Dict[str, Dict[str, float]]): A dictionary containing similarity metrics between quantized and float models for both representative and validation datasets.
|
116
116
|
quantized_model_metadata (Dict): Metadata from the quantized model.
|
117
117
|
"""
|
118
|
+
# Add the computed max cut
|
119
|
+
maxcut_str = f"MaxCut: {quantized_model_metadata['scheduling_info'][MAX_CUT]}"
|
120
|
+
self.tb_writer.add_text(maxcut_str, MAX_CUT)
|
121
|
+
|
118
122
|
# Add output similarity between quantized and float models on representative and validation datasets
|
119
123
|
output_similarity_repr = f"Similarity Metrics on outputs using representative dataset: \n" + "\n".join([f"{key}: {value:.4f}" for key, value in similarity_metrics[OUTPUT_SIMILARITY_METRICS_REPR].items()])
|
120
124
|
output_similarity_val = f"Similarity Metrics on outputs using validation dataset: \n" + "\n".join([f"{key}: {value:.4f}" for key, value in similarity_metrics[OUTPUT_SIMILARITY_METRICS_VAL].items()])
|
121
125
|
self.tb_writer.add_text(output_similarity_repr, OUTPUT_SIMILARITY_METRICS_REPR)
|
122
126
|
self.tb_writer.add_text(output_similarity_val, OUTPUT_SIMILARITY_METRICS_VAL)
|
123
|
-
|
124
|
-
# Add the max cut if it was computed
|
125
|
-
if 'scheduling_info' in quantized_model_metadata:
|
126
|
-
maxcut_str = f"MaxCut: {quantized_model_metadata['scheduling_info'][MAX_CUT]}"
|
127
|
-
self.tb_writer.add_text(maxcut_str, MAX_CUT)
|
128
|
-
|
@@ -76,8 +76,7 @@ class KerasTensorboardUtils(TensorboardUtils):
|
|
76
76
|
# Read the quantized model into a graph structure.
|
77
77
|
quant_graph = model_reader(quantized_model)
|
78
78
|
|
79
|
-
|
80
|
-
insert_cut_info_into_graph(quant_graph, quantized_model_metadata)
|
79
|
+
insert_cut_info_into_graph(quant_graph, quantized_model_metadata)
|
81
80
|
|
82
81
|
# Iterate over each node in the graph.
|
83
82
|
for node in quant_graph.nodes:
|
@@ -79,8 +79,7 @@ class PytorchTensorboardUtils(TensorboardUtils):
|
|
79
79
|
to_tensor=self.fw_impl.to_tensor,
|
80
80
|
to_numpy=self.fw_impl.to_numpy)
|
81
81
|
|
82
|
-
|
83
|
-
insert_cut_info_into_graph(quant_graph, quantized_model_metadata, quantized_model)
|
82
|
+
insert_cut_info_into_graph(quant_graph, quantized_model_metadata, quantized_model)
|
84
83
|
|
85
84
|
# Iterate through each node in the graph
|
86
85
|
for node in quant_graph.nodes:
|
{mct_nightly-2.1.0.20240813.141729.dist-info → mct_nightly-2.1.0.20240814.458.dist-info}/LICENSE.md
RENAMED
File without changes
|
{mct_nightly-2.1.0.20240813.141729.dist-info → mct_nightly-2.1.0.20240814.458.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|