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
change
sglang
Commits
9a7e83e8
"sgl-kernel/git@developer.sourcefind.cn:zhaoyu6/sglang.git" did not exist on "0a56b721d5531d674bd332b4d051a75857033e6c"
Unverified
Commit
9a7e83e8
authored
Apr 20, 2025
by
tarinkk
Committed by
GitHub
Apr 20, 2025
Browse files
Fix enable chunked prefill for Llama4 (#5575)
parent
417b44eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
python/sglang/srt/configs/model_config.py
python/sglang/srt/configs/model_config.py
+4
-1
No files found.
python/sglang/srt/configs/model_config.py
View file @
9a7e83e8
...
...
@@ -73,8 +73,11 @@ class ModelConfig:
)
if
enable_multimodal
is
None
:
if
self
.
hf_config
.
architectures
==
"Llama4ForConditionalGeneration"
:
if
self
.
hf_config
.
architectures
[
0
]
==
"Llama4ForConditionalGeneration"
:
enable_multimodal
=
False
logger
.
info
(
"Multimodal is disabled for Llama4. To enable it, set --enable-llama4-multimodal."
)
else
:
enable_multimodal
=
True
...
...
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