-
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
Collect statistics from subset in weight compression #3061
Collect statistics from subset in weight compression #3061
Conversation
148a751
to
bb51646
Compare
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.
A minor comment on my side
model: TModel, | ||
graph: NNCFGraph, | ||
nodes_and_port_ids: Iterable[Tuple[NNCFNode, int]], | ||
subset_size: Optional[int] = None, | ||
) -> StatisticPointsContainer: |
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.
What do you think about also removing subset_size
parameter from MixedPrecisionCriterion.get_statistic_points()
method for two algorithms to be more aligned? I believe subset_size
can be provided to criterion constructor similarly as it is done for WeightCompression
algorithm.
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.
Had to make it optional for data-free mixed precision, but probably it's better since the parameter is passed only once.
…#3061) ### Changes Set a subset size for collecting statistics ### Reason for changes `subset size` option is ignored and the whole dataset is used ### Related tickets n/a ### Tests - [x] unit test for setting subset size - [x] manual/job/post_training_weight_compression/245
Changes
Set a subset size for collecting statistics
Reason for changes
subset size
option is ignored and the whole dataset is usedRelated tickets
n/a
Tests