Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
1ef13cf9
Unverified
Commit
1ef13cf9
authored
Aug 18, 2024
by
Jee Jee Li
Committed by
GitHub
Aug 17, 2024
Browse files
[Misc]Fix BitAndBytes exception messages (#7626)
parent
832163b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/model_executor/model_loader/loader.py
vllm/model_executor/model_loader/loader.py
+2
-2
No files found.
vllm/model_executor/model_loader/loader.py
View file @
1ef13cf9
...
@@ -883,11 +883,11 @@ class BitsAndBytesModelLoader(BaseModelLoader):
...
@@ -883,11 +883,11 @@ class BitsAndBytesModelLoader(BaseModelLoader):
if
not
hasattr
(
model
,
'load_weights'
):
if
not
hasattr
(
model
,
'load_weights'
):
raise
AttributeError
(
raise
AttributeError
(
"The required method 'load_weights' is not defined in class"
"The required method 'load_weights' is not defined in class"
f
"
{
type
(
s
el
f
).
__name__
}
."
)
f
"
{
type
(
mod
el
).
__name__
}
."
)
if
not
hasattr
(
model
,
'bitsandbytes_stacked_params_mapping'
):
if
not
hasattr
(
model
,
'bitsandbytes_stacked_params_mapping'
):
raise
AttributeError
(
raise
AttributeError
(
f
"Model
{
type
(
s
el
f
).
__name__
}
does not support BitsAndBytes "
f
"Model
{
type
(
mod
el
).
__name__
}
does not support BitsAndBytes "
"quantization yet."
)
"quantization yet."
)
logger
.
info
(
"Loading weights with BitsAndBytes quantization. "
logger
.
info
(
"Loading weights with BitsAndBytes quantization. "
...
...
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