-
Notifications
You must be signed in to change notification settings - Fork 240
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
Update aggregator.py #2995
Update aggregator.py #2995
Conversation
Co-authored-by: Liubov Talamanova <[email protected]>
Co-authored-by: Liubov Talamanova <[email protected]>
Great, any other changes required to close this issue? |
No, once the PR passes all checks, we’ll merge it |
Is a set value to be used for subset_size, or do I import it from somewhere? |
Co-authored-by: Liubov Talamanova <[email protected]>
Co-authored-by: Liubov Talamanova <[email protected]>
Please fix linter |
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.
Thank you!
Thank you for your assistance!! |
raise nncf.ValidationError(EMPTY_DATASET_ERROR) | ||
if self.stat_subset_size is not None and self.stat_subset_size > processed_samples: | ||
nncf_logger.warning( | ||
f"Dataset contains only {processed_samples} samples, " |
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.
@l-bat, @eaidova, @nikita-savelyevv please check that this is not impact NNCF examples, OpenVINO notebooks and optimum-intel.
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.
@zina-cs Could you please provide subset_size
to the nncf.quantize
in the following examples?
- https://github.com/openvinotoolkit/nncf/tree/develop/examples/post_training_quantization/openvino:
- anomaly_stfpm_quantize_with_accuracy_control -
subset_size=109
- yolov8 -
subset_size=128
- yolov8_quantize_with_accuracy_control -
subset_size=128
- anomaly_stfpm_quantize_with_accuracy_control -
- https://github.com/openvinotoolkit/nncf/tree/develop/examples/post_training_quantization/onnx/yolov8_quantize_with_accuracy_control -
subset_size=128
- https://github.com/openvinotoolkit/nncf/tree/develop/examples/post_training_quantization/torch/ssd300_vgg16 -
subset_size=128
### Changes Add `subset_size` to PTQ samples after merging #2995 to remove the warning message CI: https://github.com/openvinotoolkit/nncf/actions/runs/11436915496
Changes
Added an error message
Reason for changes
send warning message to avoid Inconsistencies arise when the dataset size is less than the provided or default 'subset_size'.
Related tickets
Closes: #2562
I had an inquiry:
I noticed that subset_size is sometimes put as 100, or 300, or specified in the advanced parameters. Should a default be used here, or could you point me to where I can find the correct subset_size to be imported?