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
8b7cd402
Unverified
Commit
8b7cd402
authored
Jun 21, 2024
by
Nate Cibik
Committed by
GitHub
Jun 21, 2024
Browse files
Removed torch.cuda.empty_cache from train loop. (#31530)
parent
1e79eade
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
src/transformers/trainer.py
src/transformers/trainer.py
+0
-1
No files found.
src/transformers/trainer.py
View file @
8b7cd402
...
@@ -3307,7 +3307,6 @@ class Trainer:
...
@@ -3307,7 +3307,6 @@ class Trainer:
loss
=
self
.
compute_loss
(
model
,
inputs
)
loss
=
self
.
compute_loss
(
model
,
inputs
)
del
inputs
del
inputs
torch
.
cuda
.
empty_cache
()
kwargs
=
{}
kwargs
=
{}
...
...
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