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

Update expected values in CodeGen tests #17888

Merged
merged 2 commits into from
Jul 1, 2022

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Jun 27, 2022

What does this PR do?

Update expected values in CodeGen test test_codegen_sample. The currently value works for other GPU, but for Nvidia T4, we need the values in this PR.

Note that do_sample will call self.sample (in generatioin_utils.py) which uses torch.multinomial, which is not 100% reproducible across different accelerators.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 27, 2022

The documentation is not available anymore as the PR was closed or merged.

@ydshieh ydshieh requested a review from patil-suraj June 27, 2022 07:04
@ydshieh
Copy link
Collaborator Author

ydshieh commented Jun 29, 2022

kindly ping @patil-suraj as I am eager toward 0 test failure 🚀 on CI report

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

LGTM!

@ydshieh ydshieh merged commit 569b679 into huggingface:main Jul 1, 2022
@ydshieh ydshieh deleted the fix_codegen_sample_test branch July 1, 2022 13:33
viclzhu pushed a commit to viclzhu/transformers that referenced this pull request Jul 18, 2022
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