-
Notifications
You must be signed in to change notification settings - Fork 31.6k
[Examples] Generalise Seq2Seq ASR to handle Whisper #19519
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
[Examples] Generalise Seq2Seq ASR to handle Whisper #19519
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
ae020a9 to
ecd4e03
Compare
examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py
Outdated
Show resolved
Hide resolved
7172de6 to
f78a08b
Compare
examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py
Outdated
Show resolved
Hide resolved
patrickvonplaten
left a comment
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 iterating here!
60e91b4 to
0f83fb7
Compare
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
|
@sgugger this one's ready to go! Just an FYI in-case you wanted to take a look :) |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
sgugger
left a comment
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 working on this!
* merge conflicts * bos and eos in datacollator * (temp) hardcode removal of attention mask * freeze encoder * actually freeze encoder * set max length / num beams according to gen kwargs * (temp) fix tests * don't pop attn mask * override return attention mask config from Hub * Hub configs updated 🤗 * final fixes * update type annotations * backward comp
What does this PR do?
Generalises
run_speech_recognition_seq2seq.pyto handle Whisper.To train the "tiny.en" model on LibriSpeech dummy:
Bash script
To train the "medium.en" model on LibriSpeech 960h:
Bash script
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
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.