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
2ee45281
Unverified
Commit
2ee45281
authored
Sep 05, 2024
by
Michael Goin
Committed by
GitHub
Sep 05, 2024
Browse files
Move verify_marlin_supported to GPTQMarlinLinearMethod (#8165)
parent
9da25a88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vllm/model_executor/layers/quantization/gptq_marlin.py
vllm/model_executor/layers/quantization/gptq_marlin.py
+4
-4
No files found.
vllm/model_executor/layers/quantization/gptq_marlin.py
View file @
2ee45281
...
...
@@ -51,10 +51,6 @@ class GPTQMarlinConfig(QuantizationConfig):
self
.
quant_type
=
self
.
TYPE_MAP
[(
weight_bits
,
is_sym
)]
# Verify supported on platform.
verify_marlin_supported
(
quant_type
=
self
.
quant_type
,
group_size
=
self
.
group_size
)
def
__repr__
(
self
)
->
str
:
return
(
f
"GPTQMarlinConfig(quant_type=
{
self
.
quant_type
}
, "
f
"group_size=
{
self
.
group_size
}
, "
...
...
@@ -153,6 +149,10 @@ class GPTQMarlinLinearMethod(LinearMethodBase):
def
__init__
(
self
,
quant_config
:
GPTQMarlinConfig
)
->
None
:
self
.
quant_config
=
quant_config
# Verify supported on platform.
verify_marlin_supported
(
quant_type
=
self
.
quant_config
.
quant_type
,
group_size
=
self
.
quant_config
.
group_size
)
def
create_weights
(
self
,
layer
:
torch
.
nn
.
Module
,
...
...
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