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
f0a2a82a
Unverified
Commit
f0a2a82a
authored
May 25, 2023
by
Eric J. Wang
Committed by
GitHub
May 25, 2023
Browse files
Fix `pip install --upgrade accelerate` command in modeling_utils.py (#23747)
Fix command in modeling_utils.py
parent
e45e756d
Changes
1
Hide 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 @
f0a2a82a
...
@@ -2727,7 +2727,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
...
@@ -2727,7 +2727,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
raise
ValueError
(
raise
ValueError
(
"You are using `device_map='auto'` on a 4bit loaded version of the model. To automatically compute"
"You are using `device_map='auto'` on a 4bit loaded version of the model. To automatically compute"
" the appropriate device map, you should upgrade your `accelerate` library,"
" the appropriate device map, you should upgrade your `accelerate` library,"
"`pip install --upgrade accelera
r
e` or install it from source to support fp4 auto device map"
"`pip install --upgrade accelera
t
e` or install it from source to support fp4 auto device map"
"calculation. You may encounter unexpected behavior, or pass your own device map"
"calculation. You may encounter unexpected behavior, or pass your own device map"
)
)
elif
load_in_8bit
:
elif
load_in_8bit
:
...
...
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