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
42fc4410
Unverified
Commit
42fc4410
authored
Jul 12, 2025
by
Ying Sheng
Committed by
GitHub
Jul 12, 2025
Browse files
[minor] Add server_args check for Llama4 with hybrid (#7988)
parent
5f6756b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
python/sglang/srt/server_args.py
python/sglang/srt/server_args.py
+4
-0
No files found.
python/sglang/srt/server_args.py
View file @
42fc4410
...
...
@@ -1730,6 +1730,10 @@ class ServerArgs:
else
:
self
.
lora_paths
[
lora_path
]
=
lora_path
model_arch
=
get_model_arch
(
self
)
if
"Llama4"
in
model_arch
and
self
.
hybrid_kvcache_ratio
is
not
None
:
assert
self
.
attention_backend
==
"fa3"
def
prepare_server_args
(
argv
:
List
[
str
])
->
ServerArgs
:
"""
...
...
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