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
97ec17f7
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "8d8075e81f17f05c8107b60c6f1a3d61300e9792"
Unverified
Commit
97ec17f7
authored
Dec 21, 2021
by
Sylvain Gugger
Committed by
GitHub
Dec 21, 2021
Browse files
Only create the model card on process 0 (#14857)
parent
b513ec8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/transformers/trainer.py
src/transformers/trainer.py
+3
-0
No files found.
src/transformers/trainer.py
View file @
97ec17f7
...
@@ -2631,6 +2631,9 @@ class Trainer:
...
@@ -2631,6 +2631,9 @@ class Trainer:
dataset
:
Optional
[
Union
[
str
,
List
[
str
]]]
=
None
,
dataset
:
Optional
[
Union
[
str
,
List
[
str
]]]
=
None
,
dataset_args
:
Optional
[
Union
[
str
,
List
[
str
]]]
=
None
,
dataset_args
:
Optional
[
Union
[
str
,
List
[
str
]]]
=
None
,
):
):
if
not
self
.
is_world_process_zero
():
return
training_summary
=
TrainingSummary
.
from_trainer
(
training_summary
=
TrainingSummary
.
from_trainer
(
self
,
self
,
language
=
language
,
language
=
language
,
...
...
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