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 run_speech_recognition_seq2seq.py #428

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

callumm-graphcore
Copy link

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

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@callumm-graphcore
Copy link
Author

This should be considered WIP, I need to test it with e.g. whisper-tiny

@callumm-graphcore
Copy link
Author

Sorry, should have clarified: this is no longer WIP

@HuggingFaceDocBuilderDev

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():
Copy link
Collaborator

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?

@katalinic-gc
Copy link
Collaborator

The failing test is the one that compares the diff file. Is the current one up to date?

@callumm-graphcore
Copy link
Author

callumm-graphcore commented Jul 17, 2023

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

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.

3 participants