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
00294e1b
Unverified
Commit
00294e1b
authored
Feb 18, 2025
by
Kyle Sayers
Committed by
GitHub
Feb 17, 2025
Browse files
[Quant] Arctic SupportsQuant (#13366)
parent
88787bce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/model_executor/models/arctic.py
vllm/model_executor/models/arctic.py
+3
-2
No files found.
vllm/model_executor/models/arctic.py
View file @
00294e1b
...
...
@@ -33,7 +33,7 @@ from vllm.model_executor.utils import set_weight_attrs
from
vllm.sequence
import
IntermediateTensors
from
vllm.transformers_utils.configs.arctic
import
ArcticConfig
from
.interfaces
import
SupportsPP
from
.interfaces
import
SupportsPP
,
SupportsQuant
from
.utils
import
(
extract_layer_index
,
is_pp_missing_parameter
,
make_empty_intermediate_tensors_factory
,
make_layers
,
maybe_prefix
)
...
...
@@ -423,7 +423,8 @@ class ArcticModel(nn.Module):
return
hidden_states
class
ArcticForCausalLM
(
nn
.
Module
,
SupportsPP
):
class
ArcticForCausalLM
(
nn
.
Module
,
SupportsPP
,
SupportsQuant
):
packed_modules_mapping
=
{
"qkv_proj"
:
[
"q_proj"
,
"k_proj"
,
"v_proj"
]}
def
__init__
(
self
,
*
,
vllm_config
:
VllmConfig
,
prefix
:
str
=
""
):
super
().
__init__
()
...
...
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