Skip to content
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

Fix MP tutorial arguments after release #1191

Merged
merged 3 commits into from
Aug 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"id": "59ed8f02"
},
"source": [
"[Run this tutorial in Google Colab](https://colab.research.google.com/github/sony/model_optimization/blob/main/tutorials/notebooks/mct_features_notebooks/pytorch/example_pytorch_mobilenetv2_cifar100_mixed_precision.ipynb)"
"ResourceUtilization_data[Run this tutorial in Google Colab](https://colab.research.google.com/github/sony/model_optimization/blob/main/tutorials/notebooks/mct_features_notebooks/pytorch/example_pytorch_mobilenetv2_cifar100_mixed_precision.ipynb)"
ofirgo marked this conversation as resolved.
Show resolved Hide resolved
]
},
{
Expand Down Expand Up @@ -481,7 +481,7 @@
"# The candidates bit-width for quantization should be defined in the target platform model:\n",
"configuration = mct.core.CoreConfig(mixed_precision_config=mct.core.MixedPrecisionQuantizationConfig(\n",
" num_of_images=32,\n",
" use_grad_based_weights=False))"
" use_hessian_based_scores=False))"
]
},
{
Expand Down Expand Up @@ -515,7 +515,7 @@
"# while the bias will not)\n",
"# examples:\n",
"# weights_compression_ratio = 0.75 - About 0.75 of the model's weights memory size when quantized with 8 bits.\n",
"ResourceUtilization = mct.core.ResourceUtilization(ResourceUtilization_data.weights_memory * 0.75)"
"ResourceUtilization = mct.core.ResourceUtilization(resource_utilization_data.weights_memory * 0.75)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename this variable. Also, when calling to pytorch_post_training_quantization fix the argument name to target_resource_utilization.

]
},
{
Expand Down
Loading