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
4d821524
Commit
4d821524
authored
Aug 17, 2024
by
zhuwenwen
Browse files
update fp16 model layout conversion conditions
parent
bb5f9b5b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
vllm/model_executor/models/baichuan.py
vllm/model_executor/models/baichuan.py
+1
-1
vllm/model_executor/models/chatglm.py
vllm/model_executor/models/chatglm.py
+1
-1
vllm/model_executor/models/llama.py
vllm/model_executor/models/llama.py
+1
-1
vllm/model_executor/models/qwen.py
vllm/model_executor/models/qwen.py
+1
-1
vllm/model_executor/models/qwen2.py
vllm/model_executor/models/qwen2.py
+1
-1
No files found.
vllm/model_executor/models/baichuan.py
View file @
4d821524
...
@@ -413,7 +413,7 @@ class BaiChuanBaseForCausalLM(nn.Module, SupportsLoRA):
...
@@ -413,7 +413,7 @@ class BaiChuanBaseForCausalLM(nn.Module, SupportsLoRA):
default_weight_loader
)
default_weight_loader
)
weight_loader
(
param
,
loaded_weight
)
weight_loader
(
param
,
loaded_weight
)
if
self
.
use_llama_nn
:
if
self
.
use_llama_nn
and
self
.
quant_method
is
None
:
lay_key_words
=
[
lay_key_words
=
[
"self_attn.W_pack.weight"
,
"self_attn.W_pack.weight"
,
"self_attn.o_proj.weight"
,
"self_attn.o_proj.weight"
,
...
...
vllm/model_executor/models/chatglm.py
View file @
4d821524
...
@@ -411,7 +411,7 @@ class ChatGLMForCausalLM(nn.Module, SupportsLoRA):
...
@@ -411,7 +411,7 @@ class ChatGLMForCausalLM(nn.Module, SupportsLoRA):
default_weight_loader
)
default_weight_loader
)
weight_loader
(
param
,
loaded_weight
)
weight_loader
(
param
,
loaded_weight
)
if
self
.
use_llama_nn
:
if
self
.
use_llama_nn
and
self
.
quant_method
is
None
:
lay_key_words
=
[
lay_key_words
=
[
"self_attention.query_key_value.weight"
,
"self_attention.query_key_value.weight"
,
"self_attention.dense.weight"
,
"self_attention.dense.weight"
,
...
...
vllm/model_executor/models/llama.py
View file @
4d821524
...
@@ -531,7 +531,7 @@ class LlamaForCausalLM(nn.Module, SupportsLoRA):
...
@@ -531,7 +531,7 @@ class LlamaForCausalLM(nn.Module, SupportsLoRA):
default_weight_loader
)
default_weight_loader
)
weight_loader
(
param
,
loaded_weight
)
weight_loader
(
param
,
loaded_weight
)
if
self
.
use_llama_nn
:
if
self
.
use_llama_nn
and
self
.
quant_method
is
None
:
lay_key_words
=
[
lay_key_words
=
[
"self_attn.qkv_proj.weight"
,
"self_attn.qkv_proj.weight"
,
"self_attn.o_proj.weight"
,
"self_attn.o_proj.weight"
,
...
...
vllm/model_executor/models/qwen.py
View file @
4d821524
...
@@ -355,7 +355,7 @@ class QWenLMHeadModel(nn.Module):
...
@@ -355,7 +355,7 @@ class QWenLMHeadModel(nn.Module):
weight_loader
=
getattr
(
param
,
"weight_loader"
,
weight_loader
=
getattr
(
param
,
"weight_loader"
,
default_weight_loader
)
default_weight_loader
)
weight_loader
(
param
,
loaded_weight
)
weight_loader
(
param
,
loaded_weight
)
if
self
.
use_llama_nn
:
if
self
.
use_llama_nn
and
self
.
quant_method
is
None
:
lay_key_words
=
[
lay_key_words
=
[
"attn.c_attn.weight"
,
"attn.c_attn.weight"
,
"attn.c_proj.weight"
,
"attn.c_proj.weight"
,
...
...
vllm/model_executor/models/qwen2.py
View file @
4d821524
...
@@ -448,7 +448,7 @@ class Qwen2ForCausalLM(nn.Module, SupportsLoRA):
...
@@ -448,7 +448,7 @@ class Qwen2ForCausalLM(nn.Module, SupportsLoRA):
default_weight_loader
)
default_weight_loader
)
weight_loader
(
param
,
loaded_weight
)
weight_loader
(
param
,
loaded_weight
)
if
self
.
use_llama_nn
:
if
self
.
use_llama_nn
and
self
.
quant_method
is
None
:
lay_key_words
=
[
lay_key_words
=
[
"self_attn.qkv_proj.weight"
,
"self_attn.qkv_proj.weight"
,
"self_attn.o_proj.weight"
,
"self_attn.o_proj.weight"
,
...
...
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