Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
2024faf1
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "ed74d97871468f3a4695ede50abdc0b55717a84d"
Unverified
Commit
2024faf1
authored
Oct 18, 2021
by
Sylvain Gugger
Committed by
GitHub
Oct 18, 2021
Browse files
Fix save when laod_best_model_at_end=True (#14054)
parent
2c60ff2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/transformers/trainer_callback.py
src/transformers/trainer_callback.py
+0
-2
No files found.
src/transformers/trainer_callback.py
View file @
2024faf1
...
@@ -418,8 +418,6 @@ class DefaultFlowCallback(TrainerCallback):
...
@@ -418,8 +418,6 @@ class DefaultFlowCallback(TrainerCallback):
# Evaluate
# Evaluate
if
args
.
evaluation_strategy
==
IntervalStrategy
.
STEPS
and
state
.
global_step
%
args
.
eval_steps
==
0
:
if
args
.
evaluation_strategy
==
IntervalStrategy
.
STEPS
and
state
.
global_step
%
args
.
eval_steps
==
0
:
control
.
should_evaluate
=
True
control
.
should_evaluate
=
True
if
args
.
load_best_model_at_end
:
control
.
should_save
=
True
# Save
# Save
if
(
if
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment