Skip to content

Conversation

@ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Oct 31, 2024

What does this PR do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if generation_config.max_length is not the same as the default value (20), let's not change it!!!!

Copy link
Collaborator

Choose a reason for hiding this comment

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

should we not change has_default_max_length directly? 🤗

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would rather avoid changing its original definition in this PR as it is also used in several places.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

Thanks, this fixes quite some tests no? Can we make sure with a tiny pipeline that by default we generate more than 20 tokens?

Copy link
Collaborator

Choose a reason for hiding this comment

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

should we not change has_default_max_length directly? 🤗

@ydshieh
Copy link
Collaborator Author

ydshieh commented Nov 4, 2024

Thanks, this fixes quite some tests no? Can we make sure with a tiny pipeline that by default we generate more than 20 tokens?

Do you mean a new test case that will generate more than 20 tokens? Any motivation for such a new test?

@ydshieh ydshieh changed the title poor whisper .... 😭 Fix Whisper CI Nov 4, 2024
@ydshieh
Copy link
Collaborator Author

ydshieh commented Nov 4, 2024

merge it as it will unblock whisper CI (170 -> 20 failures) + (quite) some pipeline tests

@ydshieh ydshieh merged commit eb81144 into main Nov 4, 2024
23 of 25 checks passed
@ydshieh ydshieh deleted the fix_whisper branch November 4, 2024 20:35
ydshieh added a commit that referenced this pull request Nov 4, 2024
@ydshieh ydshieh mentioned this pull request Nov 4, 2024
ArthurZucker pushed a commit that referenced this pull request Nov 5, 2024
Revert "Fix Whisper CI (#34541)"

This reverts commit eb81144.
BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 2024
BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 2024
Revert "Fix Whisper CI (huggingface#34541)"

This reverts commit eb81144.
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.

4 participants