-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[GPU] Enable 8bit compression support on dGPU via oneDNN #22740
Changes from all commits
ab86862
b56b402
be4adb2
d8b3d3a
4518173
1b0fc33
9913c48
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,10 @@ ConvertFullyConnectedToFullyConnectedCompressed::ConvertFullyConnectedToFullyCon | |
auto convert_m = wrap_type<ov::op::v0::Convert>({weights_m}); | ||
|
||
auto sub_const_m = wrap_type<ov::op::v0::Constant>(consumers_count(1)); | ||
auto subtract_m = wrap_type<ov::op::v1::Subtract>({convert_m, sub_const_m}); | ||
auto sub_convert_const_m = wrap_type<ov::op::v0::Convert>({sub_const_m}); | ||
auto sub_with_convert_m = wrap_type<ov::op::v1::Subtract>({convert_m, sub_convert_const_m}); | ||
auto sub_no_convert_m = wrap_type<ov::op::v1::Subtract>({convert_m, sub_const_m}); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't first arg be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, if there is a convert on zp branch, subtract's (
As well as for
|
||
auto subtract_m = std::make_shared<ov::pass::pattern::op::Or>(OutputVector{sub_with_convert_m, sub_no_convert_m}); | ||
|
||
auto mul_const_m = wrap_type<ov::op::v0::Constant>(consumers_count(1)); | ||
auto mul_with_sub_m = wrap_type<ov::op::v1::Multiply>({subtract_m, mul_const_m}); | ||
|
@@ -97,7 +100,7 @@ ConvertFullyConnectedToFullyConnectedCompressed::ConvertFullyConnectedToFullyCon | |
const auto& scale = reshape_const_to_2d(pattern_map.at(mul_const_m).get_node_shared_ptr()); | ||
std::shared_ptr<ov::Node> optional_zero_point = nullptr; | ||
|
||
const bool with_zero_point = pattern_map.count(subtract_m) > 0; | ||
const bool with_zero_point = pattern_map.count(sub_no_convert_m) > 0 || pattern_map.count(sub_with_convert_m) > 0; | ||
if (with_zero_point) { | ||
optional_zero_point = reshape_const_to_2d(pattern_map.at(sub_const_m).get_node_shared_ptr()); | ||
} | ||
|
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.
Perf check for this change done? If there is, could you share the record? If there is no perf drop, looks good to me for other changes.
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.
@yeonbok we have asked validation team to check these changes, included you to the copy of message