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
0f9318f7
Unverified
Commit
0f9318f7
authored
Aug 21, 2025
by
Yineng Zhang
Committed by
GitHub
Aug 21, 2025
Browse files
feat: update auto_choose_speculative_params (#9470)
parent
849957bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
python/sglang/srt/server_args.py
python/sglang/srt/server_args.py
+6
-2
No files found.
python/sglang/srt/server_args.py
View file @
0f9318f7
...
@@ -2411,8 +2411,12 @@ def auto_choose_speculative_params(self: ServerArgs):
...
@@ -2411,8 +2411,12 @@ def auto_choose_speculative_params(self: ServerArgs):
if
arch
in
[
"LlamaForCausalLM"
]:
if
arch
in
[
"LlamaForCausalLM"
]:
# The default value for llama
# The default value for llama
return
(
5
,
4
,
8
)
return
(
5
,
4
,
8
)
elif
arch
in
[
"DeepseekV3ForCausalLM"
,
"DeepseekV2ForCausalLM"
]:
elif
arch
in
[
# The default value for deepseek
"DeepseekV3ForCausalLM"
,
"DeepseekV2ForCausalLM"
,
"GptOssForCausalLM"
,
]:
# The default value for deepseek and gpt-oss
return
(
3
,
1
,
4
)
return
(
3
,
1
,
4
)
elif
arch
in
[
"Grok1ForCausalLM"
,
"Grok1VForCausalLM"
]:
elif
arch
in
[
"Grok1ForCausalLM"
,
"Grok1VForCausalLM"
]:
return
(
5
,
4
,
8
)
return
(
5
,
4
,
8
)
...
...
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