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

Fix SpeechEncoderDecoderModel #13718

Closed

Conversation

NielsRogge
Copy link
Contributor

What does this PR do?

The current SpeechEncoderDecoderModel doesn't pass the labels to the decoder, hence no loss can be calculated. Not sure why it was not included.

This PR fixes this.

Fixes #13716

@patrickvonplaten
Copy link
Contributor

Hey Niels,

yeah I let this out on purpose because I have to think a bit about the design of the loss function to make it work nicely with the trainer...it's not as straight-forward. Would it be ok to wait with this 1,2 weeks ? :-)

@OllieBroadhurst
Copy link
Contributor

Hi there! Would the Seq2SeqTrainer also need to provide for an input_values key over here for it to be compatible when using speech models?

@patrickvonplaten
Copy link
Contributor

Hey,

I will take care of training SpeechEncoderDecoder models next week :-)

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@NielsRogge
Copy link
Contributor Author

Fixed by #14139

@NielsRogge NielsRogge closed this Oct 31, 2021
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.

SpeechEncoderDecoderModel does not return a loss regardless of labels
3 participants