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
7afade20
Unverified
Commit
7afade20
authored
Apr 08, 2024
by
DrAnaximandre
Committed by
GitHub
Apr 08, 2024
Browse files
Fix typo at ImportError (#30090)
fix typo at ImportError
parent
ef38e2a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/transformers/quantizers/quantizer_quanto.py
src/transformers/quantizers/quantizer_quanto.py
+3
-1
No files found.
src/transformers/quantizers/quantizer_quanto.py
View file @
7afade20
...
...
@@ -60,7 +60,9 @@ class QuantoHfQuantizer(HfQuantizer):
if
not
is_quanto_available
():
raise
ImportError
(
"Loading a quanto quantized model requires quanto library (`pip install quanto`)"
)
if
not
is_accelerate_available
():
raise
ImportError
(
"Loading a quanto quantized model requires accelerate library (`pip install quanto`)"
)
raise
ImportError
(
"Loading a quanto quantized model requires accelerate library (`pip install accelerate`)"
)
def
update_device_map
(
self
,
device_map
):
if
device_map
is
None
:
...
...
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