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
e31045f9
Unverified
Commit
e31045f9
authored
Apr 17, 2025
by
Lucia Fang
Committed by
GitHub
Apr 18, 2025
Browse files
[Bugfix] fix pp for llama4 (#16746)
Signed-off-by:
Lu Fang
<
fanglu@fb.com
>
parent
aaec845f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/model_executor/models/mllama4.py
vllm/model_executor/models/mllama4.py
+3
-3
No files found.
vllm/model_executor/models/mllama4.py
View file @
e31045f9
...
...
@@ -672,9 +672,9 @@ class Llama4ForConditionalGeneration(nn.Module, SupportsMultiModal,
self
.
config
,
None
,
prefix
=
maybe_prefix
(
prefix
,
"multi_modal_projector"
))
self
.
language_model
=
_initialize_model
(
vllm_config
=
vllm_config
.
with_hf_config
(
config
.
text_config
),
vllm_config
=
vllm_config
.
with_hf_config
(
config
.
text_config
,
[
"LlamaForCausalLM"
]),
prefix
=
maybe_prefix
(
prefix
,
"language_model"
),
model_class
=
Llama4ForCausalLM
,
)
...
...
@@ -824,7 +824,7 @@ class Llama4ForConditionalGeneration(nn.Module, SupportsMultiModal,
# language_model is an Llama4ForCausalLM instance. We load it's
# using llama4's load_weights routine.
language_model_weights
,
other_weights
=
self
.
separate_weights
(
weights
,
prefix
=
"language_model.
model.
"
)
weights
,
prefix
=
"language_model."
)
loader
=
AutoWeightsLoader
(
self
)
loaded_language_model_params
=
loader
.
load_weights
(
language_model_weights
)
...
...
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