Skip to content

Conversation

daniil-lyakhov
Copy link
Owner

Changes

Reason for changes

Related tickets

Tests

Comment on lines +909 to +911
all_weight_params, ratio_defining_params, group_size_values = self.get_weight_compression_parameters(
model, graph
)
Copy link
Owner Author

@daniil-lyakhov daniil-lyakhov Oct 2, 2025

Choose a reason for hiding this comment

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

all_weight_params, ratio_defining_params, group_size_values = self._quantizer.get_weight_compression_parameters(
            model, graph
        )

quantizer doesn't need sensetivity metrics/ ratio and etc. It is the basic mixed precision: if the node is embedding node/ last node/ conv node- it is in the backup precision. Have to keep backup precision though

Copy link
Owner Author

@daniil-lyakhov daniil-lyakhov left a comment

Choose a reason for hiding this comment

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

Aamir, could you please try to work on top of this refactoring? Would it possible to separate quantizer/algorithm the way I described in the comments?

all_weight_params, ratio_defining_params, group_size_values = self.get_weight_compression_parameters(
model, graph
)
return self.apply_with_parameters(
Copy link
Owner Author

@daniil-lyakhov daniil-lyakhov Oct 2, 2025

Choose a reason for hiding this comment

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

self._algo.apply_with_parameters(
            model,
            graph,
            dataset,
            statistic_points,
            all_weight_params,
            ratio_defining_params,
            group_size_values,
        )

algo has all required params like sencetivity metric/ ratio and etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant