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

Add Speech Seq2Seq Training script #14792

Merged

Conversation

patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Dec 16, 2021

What does this PR do?

An explanation of this new training script is given on the README.md.
Two successful training runs can be seen here: https://huggingface.co/models?other=asr_seq2esq

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@patrickvonplaten
Copy link
Contributor Author

Hmmm, not that easy the training it seems...will run some more examples next week with Wav2Vec2 - BERT

@patrickvonplaten
Copy link
Contributor Author

Getting good results now for wav2vec2 - bart: https://huggingface.co/patrickvonplaten/wav2vec2-2-bart-base

@patrickvonplaten
Copy link
Contributor Author

Results are good: https://huggingface.co/models?other=asr_seq2esq

Cleaning up the PR and we can merge in 1,2 days

@patrickvonplaten patrickvonplaten changed the title [WIP] Add Speech Seq2Seq Training script Add Speech Seq2Seq Training script Dec 24, 2021
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Nice new example! Two comments before merging:

  • the test is the second longest at 47s. If it's possible to reduce it a little bit, that would be great.
  • We already had a discussion on the fact that the speech models have a feature_extractor attribute that is distinct from the feature extractor that preprocesses the data, which is very confusing. We need another name for the freeze_feature_extractor methods and argument as a result.

@patrickvonplaten
Copy link
Contributor Author

Merging this now. Very much agree on the naming issue @sgugger and thanks for reminding me again. Will open another PR for this later today.

@patrickvonplaten patrickvonplaten merged commit 1c12191 into huggingface:master Dec 28, 2021
@patrickvonplaten patrickvonplaten deleted the add_speech_seq2seq branch December 28, 2021 09:20
stevhliu pushed a commit to stevhliu/transformers that referenced this pull request Jan 6, 2022
* start

* add gradient checkpointing and feature extractor freezing

* Apply suggestions from code review

* up

* up

* up

* correct

* up

* more changes

* up

* up

* up

* remove rst
Albertobegue pushed a commit to Albertobegue/transformers that referenced this pull request Jan 27, 2022
* start

* add gradient checkpointing and feature extractor freezing

* Apply suggestions from code review

* up

* up

* up

* correct

* up

* more changes

* up

* up

* up

* remove rst
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.

2 participants