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
a5392ee7
Unverified
Commit
a5392ee7
authored
Mar 08, 2023
by
Sylvain Gugger
Committed by
GitHub
Mar 08, 2023
Browse files
Fix test for torchneuroncore in Trainer (#22028)
parent
de81adf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/trainer.py
src/transformers/trainer.py
+1
-1
No files found.
src/transformers/trainer.py
View file @
a5392ee7
...
...
@@ -1538,7 +1538,7 @@ class Trainer:
if
self
.
args
.
ddp_bucket_cap_mb
is
not
None
:
kwargs
[
"bucket_cap_mb"
]
=
self
.
args
.
ddp_bucket_cap_mb
if
is_torch_neuroncore_available
:
if
is_torch_neuroncore_available
()
:
return
model
model
=
nn
.
parallel
.
DistributedDataParallel
(
model
,
...
...
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