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
e23a43ae
Unverified
Commit
e23a43ae
authored
Apr 10, 2024
by
Junichi Sato
Committed by
GitHub
Apr 09, 2024
Browse files
[Bugfix] Fix KeyError on loading GPT-NeoX (#3925)
parent
e7c7067b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
vllm/model_executor/models/gpt_neox.py
vllm/model_executor/models/gpt_neox.py
+5
-0
No files found.
vllm/model_executor/models/gpt_neox.py
View file @
e23a43ae
...
@@ -274,6 +274,11 @@ class GPTNeoXForCausalLM(nn.Module):
...
@@ -274,6 +274,11 @@ class GPTNeoXForCausalLM(nn.Module):
if
(
"attention.bias"
in
name
or
"attention.masked_bias"
in
name
if
(
"attention.bias"
in
name
or
"attention.masked_bias"
in
name
or
"rotary_emb.inv_freq"
in
name
):
or
"rotary_emb.inv_freq"
in
name
):
continue
continue
if
(
"rotary_emb.cos_cached"
in
name
or
"rotary_emb.sin_cached"
in
name
):
# Models trained using OpenRLHF may include
# these tensors in the checkpoint. Skip them.
continue
param
=
params_dict
[
name
]
param
=
params_dict
[
name
]
if
"query_key_value"
in
name
:
if
"query_key_value"
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