Preserve shape ops when removing QDQ pairs - #5048
Open
ikalinic wants to merge 9 commits into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5048 +/- ##
===========================================
- Coverage 93.27% 93.26% -0.01%
===========================================
Files 623 623
Lines 32889 33020 +131
===========================================
+ Hits 30674 30793 +119
- Misses 2215 2227 +12
🚀 New features to boost your workflow:
|
pfultz2
requested changes
Jul 8, 2026
Regressions detected 🔴 |
|
TedThemistokleous
self-requested a review
July 16, 2026 14:15
TedThemistokleous
requested changes
Jul 16, 2026
TedThemistokleous
left a comment
Collaborator
There was a problem hiding this comment.
Hey thanks for your contribution!
I have a few suggested changes and some initial questions
Collaborator
|
Adding Shiv since he's looked a lot of the QDQ stuff |
Member
Author
|
Hi @TedThemistokleous and @shivadbhavsar, I've addressed the suggested changes. Can I get a re-review on this? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Fix
simplify_qdqso Q/DQ pair removal does not accidentally drop intervening shape operations or produce shape-changing rewrites.Technical Details
Updated Q/DQ removal to replay supported shape operations when removing non-FP4 fake quantization chains, while continuing to drop FP4 pack/unpack adapter operations where appropriate. Added guards for concat QLinear splitting when sliced scale or zero-point shapes do not match the corresponding concat input. Added a regression test for preserving
sliceandreshapethrough Q/DQ removal.Changelog Category
Add a
CHANGELOG.mdentry for any option other thanNot Applicable