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 prediction_loss_only to TrainingArguments #6426

Merged
merged 1 commit into from
Aug 12, 2020
Merged

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Aug 11, 2020

It didn't make sense to me to have that boolean flag in the init of Trainer when all the other ones are in TrainingArguments so I deprecated it and moved it.

Let me know if you think it's a wrong move.

Unrelated changes: had to fix make quality that was complaining about non-documented or tested models and it was easier to fix them than change my setup (which doesn't let me push if make quality fails).

@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #6426 into master will decrease coverage by 2.62%.
The diff coverage is 36.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6426      +/-   ##
==========================================
- Coverage   79.90%   77.28%   -2.63%     
==========================================
  Files         153      153              
  Lines       27877    27884       +7     
==========================================
- Hits        22276    21549     -727     
- Misses       5601     6335     +734     
Impacted Files Coverage Δ
src/transformers/trainer_tf.py 12.25% <0.00%> (-0.13%) ⬇️
src/transformers/trainer.py 37.84% <60.00%> (-0.03%) ⬇️
src/transformers/training_args.py 80.58% <100.00%> (+0.19%) ⬆️
src/transformers/optimization.py 28.94% <0.00%> (-67.11%) ⬇️
src/transformers/pipelines.py 26.98% <0.00%> (-52.81%) ⬇️
src/transformers/modeling_tf_distilbert.py 34.11% <0.00%> (-30.36%) ⬇️
src/transformers/optimization_tf.py 33.33% <0.00%> (-24.33%) ⬇️
src/transformers/modeling_tf_auto.py 48.79% <0.00%> (-18.08%) ⬇️
src/transformers/modeling_auto.py 64.16% <0.00%> (-14.46%) ⬇️
src/transformers/data/processors/squad.py 13.76% <0.00%> (-14.38%) ⬇️
... and 13 more

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 66fa8ce...34cca14. Read the comment docs.

@julien-c
Copy link
Member

no strong opinion on this (but as usual consider the BC/cleanliness ratio carefully)

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Good catch, LGTM!

@sgugger sgugger merged commit 34fabe1 into master Aug 12, 2020
@sgugger sgugger deleted the move_trainer_arg branch August 12, 2020 12:03
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.

None yet

3 participants