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
fab1a0aa
"docs/vscode:/vscode.git/clone" did not exist on "263fd3c4c72752cd83c474d5b5264dad118fda38"
Unverified
Commit
fab1a0aa
authored
Aug 04, 2023
by
Sylvain Gugger
Committed by
GitHub
Aug 04, 2023
Browse files
Give more memory in test_disk_offload (#25315)
parent
67683095
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_modeling_common.py
tests/test_modeling_common.py
+1
-1
No files found.
tests/test_modeling_common.py
View file @
fab1a0aa
...
...
@@ -2521,7 +2521,7 @@ class ModelTesterMixin:
base_output
=
model
(
**
inputs_dict_class
)
model_size
=
compute_module_sizes
(
model
)[
""
]
max_size
=
int
(
self
.
model_split_percents
[
0
]
*
model_size
)
max_size
=
int
(
self
.
model_split_percents
[
1
]
*
model_size
)
with
tempfile
.
TemporaryDirectory
()
as
tmp_dir
:
model
.
cpu
().
save_pretrained
(
tmp_dir
)
...
...
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