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
ad26f298
Unverified
Commit
ad26f298
authored
Sep 06, 2025
by
Chi-Chih Chang
Committed by
GitHub
Sep 06, 2025
Browse files
fix double sparsity initialization (#6905)
parent
8d114f25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
python/sglang/srt/model_executor/model_runner.py
python/sglang/srt/model_executor/model_runner.py
+8
-5
No files found.
python/sglang/srt/model_executor/model_runner.py
View file @
ad26f298
...
...
@@ -341,6 +341,14 @@ class ModelRunner:
if
server_args
.
enable_lora
:
self
.
init_lora_manager
()
# Init Double Sparsity
if
server_args
.
enable_double_sparsity
:
if
server_args
.
ds_heavy_channel_type
is
None
:
raise
ValueError
(
"Please specify the heavy channel type for double sparsity optimization."
)
self
.
init_double_sparsity_channel_config
(
server_args
.
ds_heavy_channel_type
)
# Init memory pool and attention backends
self
.
init_memory_pool
(
min_per_gpu_memory
,
...
...
@@ -506,11 +514,6 @@ class ModelRunner:
)
server_args
.
attention_backend
=
"triton"
server_args
.
disable_cuda_graph
=
True
if
server_args
.
ds_heavy_channel_type
is
None
:
raise
ValueError
(
"Please specify the heavy channel type for double sparsity optimization."
)
self
.
init_double_sparsity_channel_config
(
server_args
.
ds_heavy_channel_type
)
if
self
.
is_multimodal
:
if
not
self
.
is_multimodal_chunked_prefill_supported
:
...
...
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