-
Notifications
You must be signed in to change notification settings - Fork 33
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 run_speech_recognition_seq2seq.py
#428
base: main
Are you sure you want to change the base?
Add run_speech_recognition_seq2seq.py
#428
Conversation
This should be considered WIP, I need to test it with e.g. |
Sorry, should have clarified: this is no longer WIP |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
|
||
# if bos token is appended in previous tokenization step, | ||
# cut bos token here as it's append later anyways | ||
if (labels[:, 0] == self.decoder_start_token_id).all().cpu().item(): |
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.
Wouldn't this step lead to labels of non-static shape?
The failing test is the one that compares the diff file. Is the current one up to date? |
I thought it was, but with the new changes, I'll redo it |
What does this PR do?
Adds
run_speech_recognition_seq2seq.py
for training/fine-tuning Seq2Seq speech recognition models, such as Whisper, on the IPU.Before submitting