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
fa2bdffc
Unverified
Commit
fa2bdffc
authored
Apr 04, 2023
by
Younes Belkada
Committed by
GitHub
Apr 04, 2023
Browse files
[`bnb`] Fix typo (#22556)
Update modeling_utils.py
parent
28fcf006
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_utils.py
src/transformers/modeling_utils.py
+1
-1
No files found.
src/transformers/modeling_utils.py
View file @
fa2bdffc
...
@@ -2606,7 +2606,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
...
@@ -2606,7 +2606,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
if
len
(
keys_on_cpu
)
>
0
and
not
load_in_8bit_fp32_cpu_offload
:
if
len
(
keys_on_cpu
)
>
0
and
not
load_in_8bit_fp32_cpu_offload
:
raise
ValueError
(
raise
ValueError
(
"If you want to offload some keys to `cpu` or `disk`, you need to set "
"If you want to offload some keys to `cpu` or `disk`, you need to set "
"`l
oad_in_8bit
_fp32_cpu_offload=True`. Note that these modules will not be "
"`l
lm_int8_enable
_fp32_cpu_offload=True`. Note that these modules will not be "
" converted to 8-bit but kept in 32-bit."
" converted to 8-bit but kept in 32-bit."
)
)
...
...
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