Skip to content
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

Explicitly set batch=1 for NNCF in order to avoid issue with Wave2Vec #312

Merged
merged 7 commits into from
Jun 7, 2023

Conversation

ljaljushkin
Copy link
Contributor

What does this PR do?

Explicitly set batch size equal 1 in the NNCFConfig in order to avoid issue with Wave2Vec with the upcoming NNCF release.
With switching to NNCF v2.5.0, JPQD uses automatic structured pruning algorithm and currently it doesn't work properly with batch > 1 for Wave2Vec model.
It works fine when batch is 1. With this PR it is set in the NNCFConfig only, it should not affect training and inference with different batch sizes, since it's only used for NNCF internals to set up compression.
The proper fix for the Wave2Vec will be introduced in the next releases of NNCF. Here's the draft (openvinotoolkit/nncf#1784) that will be finalized later.
The fix is checked on the existing NNCF, JPQD tests.

Fixes # (issue)
Ticket 110126 in the internal NNCF tracking system

@ljaljushkin
Copy link
Contributor Author

ljaljushkin commented May 9, 2023

@AlexKoff88 @yujiepan-work @vuiseng9 please take a look

@AlexKoff88 AlexKoff88 requested a review from echarlaix May 9, 2023 13:14
Copy link
Collaborator

@AlexKoff88 AlexKoff88 left a comment

Choose a reason for hiding this comment

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

I am mostly ok with the changes

@helena-intel
Copy link
Collaborator

@echarlaix Could this be merged before the upcoming dot release?

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 6, 2023

The documentation is not available anymore as the PR was closed or merged.

@ljaljushkin
Copy link
Contributor Author

@echarlaix Could this be merged before the upcoming dot release?

And these, please
#315
#319

Copy link
Collaborator

@echarlaix echarlaix left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @ljaljushkin ! Can you rebase as well as run the make style command to fix the tests

@ljaljushkin
Copy link
Contributor Author

Thanks for the fix @ljaljushkin ! Can you rebase as well as run the make style command to fix the tests

Done

@echarlaix echarlaix merged commit 2d2af36 into huggingface:main Jun 7, 2023
10 checks passed
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.

None yet

6 participants