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

Move threshold up for flaky test with Electra #6622

Merged
merged 2 commits into from
Aug 20, 2020
Merged

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Aug 20, 2020

As discussed on slack, this should take care of the Electra flaky test with PT/TF equivalence.

@LysandreJik just a ping for when you're back so you're aware.

@@ -312,7 +312,7 @@ def test_pt_tf_model_equivalence(self):
print(config)
print(inputs_dict)
print(pt_inputs_dict)
self.assertLessEqual(max_diff, 2e-2)
self.assertLessEqual(max_diff, 4e-2)
Copy link
Contributor

@patrickvonplaten patrickvonplaten Aug 20, 2020

Choose a reason for hiding this comment

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

think we should update the if max_diff >= 2e-2: to 4-e2 as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Didn't see it, thanks for catching that mistake!

@codecov
Copy link

codecov bot commented Aug 20, 2020

Codecov Report

Merging #6622 into master will increase coverage by 0.68%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6622      +/-   ##
==========================================
+ Coverage   79.01%   79.69%   +0.68%     
==========================================
  Files         156      156              
  Lines       28217    28217              
==========================================
+ Hits        22295    22487     +192     
+ Misses       5922     5730     -192     
Impacted Files Coverage Δ
src/transformers/modeling_xlnet.py 83.42% <100.00%> (ø)
src/transformers/modeling_tf_flaubert.py 24.53% <0.00%> (-63.81%) ⬇️
src/transformers/file_utils.py 82.44% <0.00%> (+0.25%) ⬆️
src/transformers/modeling_tf_utils.py 86.64% <0.00%> (+1.30%) ⬆️
src/transformers/generation_tf_utils.py 86.46% <0.00%> (+2.25%) ⬆️
src/transformers/modeling_tf_electra.py 98.95% <0.00%> (+73.82%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9539583...ef1053f. Read the comment docs.

@sgugger sgugger merged commit e8af90c into master Aug 20, 2020
@sgugger sgugger deleted the flaky_test_pt_tf_eq branch August 20, 2020 17:59
@LysandreJik
Copy link
Member

Great, thanks for taking care of it!

Zigur pushed a commit to Zigur/transformers that referenced this pull request Oct 26, 2020
* Move threshold up for flaky test with Electra

* Update above as well
fabiocapsouza pushed a commit to fabiocapsouza/transformers that referenced this pull request Nov 15, 2020
* Move threshold up for flaky test with Electra

* Update above as well
fabiocapsouza added a commit to fabiocapsouza/transformers that referenced this pull request Nov 15, 2020
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