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
47e12e08
Unverified
Commit
47e12e08
authored
Oct 23, 2025
by
b8zhong
Committed by
GitHub
Oct 23, 2025
Browse files
Enable Llama 4 + TRTLLM MHA (#12003)
parent
823b4429
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
python/sglang/srt/server_args.py
python/sglang/srt/server_args.py
+7
-1
No files found.
python/sglang/srt/server_args.py
View file @
47e12e08
...
@@ -966,7 +966,13 @@ class ServerArgs:
...
@@ -966,7 +966,13 @@ class ServerArgs:
"fa3"
,
"fa3"
,
"aiter"
,
"aiter"
,
"triton"
,
"triton"
,
},
"fa3, aiter, or triton is required for Llama4 model"
"trtllm_mha"
,
},
"fa3, aiter, triton, or trtllm_mha is required for Llama4 model"
if
is_sm100_supported
()
and
self
.
attention_backend
is
None
:
self
.
attention_backend
=
"trtllm_mha"
logger
.
warning
(
"Use trtllm_mha as attention backend on sm100 for Llama4 model"
)
elif
model_arch
in
[
elif
model_arch
in
[
"Gemma2ForCausalLM"
,
"Gemma2ForCausalLM"
,
"Gemma3ForCausalLM"
,
"Gemma3ForCausalLM"
,
...
...
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