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
66fb9b13
Unverified
Commit
66fb9b13
authored
Nov 02, 2025
by
Hanming Lu
Committed by
GitHub
Nov 02, 2025
Browse files
[ServerArgs] allow --mamba-ssm-dtype extend (#12481)
parent
819fc591
Changes
1
Show 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 @
66fb9b13
...
@@ -162,6 +162,8 @@ MOE_RUNNER_BACKEND_CHOICES = [
...
@@ -162,6 +162,8 @@ MOE_RUNNER_BACKEND_CHOICES = [
"cutlass"
,
"cutlass"
,
]
]
MAMBA_SSM_DTYPE_CHOICES
=
[
"float32"
,
"bfloat16"
]
# Allow external code to add more choices
# Allow external code to add more choices
def
add_load_format_choices
(
choices
):
def
add_load_format_choices
(
choices
):
...
@@ -200,6 +202,10 @@ def add_radix_eviction_policy_choices(choices):
...
@@ -200,6 +202,10 @@ def add_radix_eviction_policy_choices(choices):
RADIX_EVICTION_POLICY_CHOICES
.
extend
(
choices
)
RADIX_EVICTION_POLICY_CHOICES
.
extend
(
choices
)
def
add_mamba_ssm_dtype_choices
(
choices
):
MAMBA_SSM_DTYPE_CHOICES
.
extend
(
choices
)
@
dataclasses
.
dataclass
@
dataclasses
.
dataclass
class
ServerArgs
:
class
ServerArgs
:
"""
"""
...
@@ -2902,7 +2908,7 @@ class ServerArgs:
...
@@ -2902,7 +2908,7 @@ class ServerArgs:
"--mamba-ssm-dtype"
,
"--mamba-ssm-dtype"
,
type
=
str
,
type
=
str
,
default
=
ServerArgs
.
mamba_ssm_dtype
,
default
=
ServerArgs
.
mamba_ssm_dtype
,
choices
=
[
"float32"
,
"bfloat16"
]
,
choices
=
MAMBA_SSM_DTYPE_CHOICES
,
help
=
"The data type of the SSM states in mamba cache."
,
help
=
"The data type of the SSM states in mamba cache."
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
...
...
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