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

Degradation in audio and image classification samples with new transformers package #345

Closed
ljaljushkin opened this issue Jun 9, 2023 · 5 comments

Comments

@ljaljushkin
Copy link
Contributor

Audio and image classification samples fail with error AttributeError: <> object has no attribute 'no_sync'

For example, Command line for finetuning of wave2vec with QAT fails with

AttributeError: 'Wav2Vec2ForSequenceClassification' object has no attribute 'no_sync'

It's reproduced with latest version of transformers: 4.30.0
There's no such issue with 4.22.0 version

@ljaljushkin
Copy link
Contributor Author

@AlexKoff88
Copy link
Collaborator

@ljaljushkin, it seems like this is not an Optimum-related problem but rather a Transformer problem. Some relevant issues: https://discuss.huggingface.co/t/distributeddataparallel-object-has-no-attribute-no-sync/5469
I think it should be worked around in the sample.

@helena-intel
Copy link
Collaborator

@ljaljushkin thanks for reporting this. The examples are definitely expected to work out of the box with the version of transformers we install as dependency. Could you try running with torchrun like you changed for some other runs in #315 ?

@ljaljushkin
Copy link
Contributor Author

@ljaljushkin thanks for reporting this. The examples are definitely expected to work out of the box with the version of transformers we install as dependency. Could you try running with torchrun like you changed for some other runs in #315 ?

Yes, I had verified that. The issue is reproduced for mentioned samples only.

@ljaljushkin
Copy link
Contributor Author

@helena-intel this is not reproduced on the main branch now. But audio sample still doesn't work #423

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

No branches or pull requests

3 participants