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
f0e7d72d
Commit
f0e7d72d
authored
Feb 19, 2025
by
zhuwenwen
Browse files
update lm_head tn layout for awq
parent
fce0353c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
1 deletion
+5
-1
vllm/model_executor/models/baichuan.py
vllm/model_executor/models/baichuan.py
+1
-0
vllm/model_executor/models/deepseek_v2.py
vllm/model_executor/models/deepseek_v2.py
+1
-1
vllm/model_executor/models/llama.py
vllm/model_executor/models/llama.py
+1
-0
vllm/model_executor/models/qwen.py
vllm/model_executor/models/qwen.py
+1
-0
vllm/model_executor/models/qwen2.py
vllm/model_executor/models/qwen2.py
+1
-0
No files found.
vllm/model_executor/models/baichuan.py
View file @
f0e7d72d
...
...
@@ -519,6 +519,7 @@ class BaiChuanBaseForCausalLM(nn.Module, SupportsLoRA, SupportsPP):
weight
.
data
=
weight
.
data
.
reshape
(
ori_shape
[
1
],
-
1
)
if
self
.
quant_method
==
"awq"
:
os
.
environ
[
'LM_NN'
]
=
'0'
lay_key_words
=
[
"self_attn.W_pack.qweight"
,
"self_attn.o_proj.qweight"
,
...
...
vllm/model_executor/models/deepseek_v2.py
View file @
f0e7d72d
vllm/model_executor/models/llama.py
View file @
f0e7d72d
...
...
@@ -507,6 +507,7 @@ class LlamaModel(nn.Module):
weight
.
data
=
weight
.
data
.
reshape
(
ori_shape
[
1
],
-
1
)
if
self
.
quant_method
==
"awq"
:
os
.
environ
[
'LM_NN'
]
=
'0'
lay_key_words
=
[
"self_attn.qkv_proj.qweight"
,
"self_attn.o_proj.qweight"
,
...
...
vllm/model_executor/models/qwen.py
View file @
f0e7d72d
...
...
@@ -1132,6 +1132,7 @@ class QWenBaseModel(nn.Module, SupportsPP, SupportsLoRA):
weight
.
data
=
weight
.
data
.
reshape
(
ori_shape
[
1
],
-
1
)
if
self
.
quant_method
==
"awq"
:
os
.
environ
[
'LM_NN'
]
=
'0'
lay_key_words
=
[
"attn.c_attn.qweight"
,
"attn.c_proj.qweight"
,
...
...
vllm/model_executor/models/qwen2.py
View file @
f0e7d72d
...
...
@@ -485,6 +485,7 @@ class Qwen2Model(nn.Module):
weight
.
data
=
weight
.
data
.
reshape
(
ori_shape
[
1
],
-
1
)
if
self
.
quant_method
==
"awq"
:
os
.
environ
[
'LM_NN'
]
=
'0'
lay_key_words
=
[
"self_attn.qkv_proj.qweight"
,
"self_attn.o_proj.qweight"
,
...
...
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