Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
b9438904
"examples/community/speech_to_image_diffusion.py" did not exist on "8d14edf27ff28a5a37cdb19927579a2d590a7af2"
Unverified
Commit
b9438904
authored
Nov 28, 2023
by
Woosuk Kwon
Committed by
GitHub
Nov 28, 2023
Browse files
Fix OPT param names (#1819)
parent
a1125ad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/model_executor/models/opt.py
vllm/model_executor/models/opt.py
+3
-0
No files found.
vllm/model_executor/models/opt.py
View file @
b9438904
...
...
@@ -331,6 +331,9 @@ class OPTForCausalLM(nn.Module):
model_name_or_path
,
cache_dir
,
load_format
,
revision
):
if
"lm_head.weight"
in
name
:
continue
if
name
.
startswith
(
"decoder."
):
name
=
"model."
+
name
for
(
param_name
,
weight_name
,
shard_id
)
in
stacked_params_mapping
:
if
weight_name
not
in
name
:
continue
...
...
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