-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate report for troubleshooting the quantized model #1090
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
A lot to discuss offline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider also adding a read-me with usage examples in Keras and Pytorch and a figure of how it looks
model_compression_toolkit/xquant/common/similarity_functions.py
Outdated
Show resolved
Hide resolved
model_compression_toolkit/xquant/common/similarity_calculator.py
Outdated
Show resolved
Hide resolved
model_compression_toolkit/xquant/common/similarity_calculator.py
Outdated
Show resolved
Hide resolved
model_compression_toolkit/xquant/common/model_analyzer_utils.py
Outdated
Show resolved
Hide resolved
tutorials/notebooks/mct_features_notebooks/keras/example_keras_xquant.ipynb
Outdated
Show resolved
Hide resolved
tutorials/notebooks/mct_features_notebooks/keras/example_keras_xquant.ipynb
Outdated
Show resolved
Hide resolved
tutorials/notebooks/mct_features_notebooks/keras/example_keras_xquant.ipynb
Outdated
Show resolved
Hide resolved
tutorials/notebooks/mct_features_notebooks/keras/example_keras_xquant.ipynb
Outdated
Show resolved
Hide resolved
tutorials/notebooks/mct_features_notebooks/keras/example_keras_xquant.ipynb
Outdated
Show resolved
Hide resolved
{ | ||
"cell_type": "code", | ||
"source": [ | ||
"%load_ext tensorboard\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the "%"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is used to indicate a magic command in Jupyter notebooks. Magic commands are a feature of
Jupyter notebooks to perform various tasks without a lot of complex code.
In this specific case, %load_ext tensorboard is a line magic command that loads the TensorBoard extension, enabling you to use TensorBoard directly within the notebook.
"In the tensorboard, one can find useful information like statistics of the float layers' outputs and the graph of the quantized model with similarities that were measured comparing to the float model. Currently, the similarity is measured at linear layers like Conv2D, Dense, etc. (may be changed in the future). When observing such node in the graph, the similarities can be found in the node's properties as 'xquant_repr' and 'xquant_val'.\n", | ||
"Make sure to choose 'xquant' from the 'Run' dropdown menu on the left side of TensorBoard.\n", | ||
"\n", | ||
"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, why the link of this image is so long?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, to be honest... I guess this is how it is stored when you add an image to a colab notebook...
This reverts commit f186664.
Pull Request Description:
Add functions for generating a report on Tensorboard with similarity metrics and histograms to help and detect errors in the quantized model.
Checklist before requesting a review: