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
ea5f14e6
Unverified
Commit
ea5f14e6
authored
Mar 22, 2024
by
Roy
Committed by
GitHub
Mar 22, 2024
Browse files
[Bugfix][Model] Fix Qwen2 (#3554)
parent
b7050ca7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
tests/models/test_models.py
tests/models/test_models.py
+1
-0
vllm/model_executor/models/qwen2.py
vllm/model_executor/models/qwen2.py
+1
-1
No files found.
tests/models/test_models.py
View file @
ea5f14e6
...
...
@@ -20,6 +20,7 @@ MODELS = [
"stabilityai/stablelm-3b-4e1t"
,
"allenai/OLMo-1B"
,
"bigcode/starcoder2-3b"
,
"Qwen/Qwen1.5-0.5B"
,
]
...
...
vllm/model_executor/models/qwen2.py
View file @
ea5f14e6
...
...
@@ -349,7 +349,7 @@ class Qwen2ForCausalLM(nn.Module):
(
"gate_up_proj"
,
"gate_proj"
,
0
),
(
"gate_up_proj"
,
"up_proj"
,
1
),
]
params_dict
=
dict
(
self
.
named_parameters
())
params_dict
=
dict
(
self
.
named_parameters
(
remove_duplicate
=
False
))
for
name
,
loaded_weight
in
hf_model_weights_iterator
(
model_name_or_path
,
cache_dir
,
load_format
,
revision
):
if
"rotary_emb.inv_freq"
in
name
:
...
...
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