-
Notifications
You must be signed in to change notification settings - Fork 227
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
Fixed to dump the ignored_scope in quantization more gracefully #2578
Fixed to dump the ignored_scope in quantization more gracefully #2578
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2578 +/- ##
============================================
- Coverage 91.18% 33.14% -58.05%
============================================
Files 492 493 +1
Lines 45096 45551 +455
============================================
- Hits 41123 15099 -26024
- Misses 3973 30452 +26479
... and 315 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Hello @ljaljushkin, a gentle reminder to review the PR. |
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.
Thanks for the contribution!
Please address the comments
tests/openvino/native/quantization/test_quantization_pipeline.py
Outdated
Show resolved
Hide resolved
@Viditagarwal7479 please fix the test to pass CI https://github.com/openvinotoolkit/nncf/actions/runs/8344527642/job/22869598068?pr=2578
|
tests/openvino/native/quantization/test_quantization_pipeline.py
Outdated
Show resolved
Hide resolved
tests/openvino/native/quantization/test_quantization_pipeline.py
Outdated
Show resolved
Hide resolved
tests/openvino/native/quantization/test_quantization_pipeline.py
Outdated
Show resolved
Hide resolved
…ignored scope dump
While making modifications through the |
tests/openvino/native/quantization/test_quantization_pipeline.py
Outdated
Show resolved
Hide resolved
tests/openvino/native/quantization/test_quantization_pipeline.py
Outdated
Show resolved
Hide resolved
tests/openvino/native/quantization/test_quantization_pipeline.py
Outdated
Show resolved
Hide resolved
tests/openvino/native/quantization/test_quantization_pipeline.py
Outdated
Show resolved
Hide resolved
The
|
@Viditagarwal7479 rerun the job helped, tests passed. |
It's showing "1 review requesting changes by reviewers with write access" but I have incorporated all the requested changes so far. |
@Viditagarwal7479, the last commit was a month ago. There's still one unresolved comment. Are you going to resolve it? Do you need a help? Please inform us if you do not plan to continue working on this task. Thanks! |
Yes, I need help in determining the parameters for |
Firstly, I suggest using not quantized model, since the For instance, you can consider WeightsModel. IgnoredScope(
subgraphs=[
nncf.Subgraph(
inputs=[
"MatMul_1",
],
outputs=[
"MatMul"
],
)
],
), Hope this example, makes things clear. |
@Viditagarwal7479 one week left since my last comment |
Thank you so much, @ljaljushkin, for helping me (in fact, spoon-feeding on how to add the subgraph-based test case). Through the diagram, you showed it's clear, but just to make sure, for any model whose subgraph we want to ignore in the quantised model, we just have to mention the Sorry, for the delay from my end in making the minor changes. If my above interpretation is correct so should we make some more guides related to how to specify the subgraph in the IgnoredScope maybe just by adding similar subgraph based test cases or a tutorial kind of stuff? |
Yes, your interpretation is correct. More guidance about defining subgraph in the IgnoredScope would be definitely useful.
|
Thank you for the confirmation. I will soon (2-3 days) create a PR corresponding to this. |
Changes
In the case of dumping parameters of
IgnoredScope
in quantization:validate
isn't dumped[]
) they aren't dumpedIgnoredScope
is passed blank, then only<ignored_scope value="[]">
is dumpedRelated tickets
Ticket: 129593
Fixes Issue: #2564
Tests
The test case,
tests/openvino/native/quantization/test_quantization_pipeline.py::test_meta_information
has been modified to validate the new changes. To protect code from regressions.