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

Generate: Update VisionEncoderDecoder test value #27850

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

gante
Copy link
Member

@gante gante commented Dec 5, 2023

What does this PR do?

#27351 fixes a bug in beam search: the prompt length was being included in the length penalty computation, and this penalty should only be applied on newly generated tokens (otherwise decoder-only models would often see a big penalty, as the prompt is part of the output)

This PR updates the test results to account for the bug fix. I've double-checked that reverting those changes produces the old results!

(All tests in RUN_SLOW=1 py.test tests/models/vision_encoder_decoder/test_modeling_vision_encoder_decoder.py -vv pass)

@gante gante requested a review from ydshieh December 5, 2023 10:58
Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

Thank you for saving our VisionEncoderDecoder's vision ability 👀

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@gante gante merged commit b7e6d12 into huggingface:main Dec 5, 2023
3 checks passed
@gante gante deleted the fix_test_inference_coco_en branch December 5, 2023 11:27
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