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
a0b22f2f
Unverified
Commit
a0b22f2f
authored
Aug 25, 2025
by
miter
Committed by
GitHub
Aug 24, 2025
Browse files
remove redundant rank0_log function. (#9560)
Co-authored-by:
linhuang
<
linhuang@ruijie.com.cn
>
parent
b5c6529e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
python/sglang/srt/model_executor/cuda_graph_runner.py
python/sglang/srt/model_executor/cuda_graph_runner.py
+2
-2
python/sglang/srt/utils.py
python/sglang/srt/utils.py
+0
-7
No files found.
python/sglang/srt/model_executor/cuda_graph_runner.py
View file @
a0b22f2f
...
@@ -54,7 +54,7 @@ from sglang.srt.utils import (
...
@@ -54,7 +54,7 @@ from sglang.srt.utils import (
empty_context
,
empty_context
,
get_available_gpu_memory
,
get_available_gpu_memory
,
get_device_memory_capacity
,
get_device_memory_capacity
,
rank0
_log
,
log_info_on_
rank0
,
require_attn_tp_gather
,
require_attn_tp_gather
,
require_gathered_buffer
,
require_gathered_buffer
,
require_mlp_sync
,
require_mlp_sync
,
...
@@ -267,7 +267,7 @@ class CudaGraphRunner:
...
@@ -267,7 +267,7 @@ class CudaGraphRunner:
# Batch sizes to capture
# Batch sizes to capture
self
.
capture_bs
,
self
.
compile_bs
=
get_batch_sizes_to_capture
(
model_runner
)
self
.
capture_bs
,
self
.
compile_bs
=
get_batch_sizes_to_capture
(
model_runner
)
rank0
_
log
(
f
"Capture cuda graph bs
{
self
.
capture_bs
}
"
)
log_info_on_
rank0
(
log
ger
,
f
"Capture cuda graph bs
{
self
.
capture_bs
}
"
)
self
.
capture_forward_mode
=
ForwardMode
.
DECODE
self
.
capture_forward_mode
=
ForwardMode
.
DECODE
self
.
capture_hidden_mode
=
CaptureHiddenMode
.
NULL
self
.
capture_hidden_mode
=
CaptureHiddenMode
.
NULL
self
.
num_tokens_per_bs
=
1
self
.
num_tokens_per_bs
=
1
...
...
python/sglang/srt/utils.py
View file @
a0b22f2f
...
@@ -2002,13 +2002,6 @@ def configure_ipv6(dist_init_addr):
...
@@ -2002,13 +2002,6 @@ def configure_ipv6(dist_init_addr):
return
port
,
host
return
port
,
host
def
rank0_log
(
msg
:
str
):
from
sglang.srt.distributed
import
get_tensor_model_parallel_rank
if
get_tensor_model_parallel_rank
()
==
0
:
logger
.
info
(
msg
)
def
launch_dummy_health_check_server
(
host
,
port
,
enable_metrics
):
def
launch_dummy_health_check_server
(
host
,
port
,
enable_metrics
):
import
asyncio
import
asyncio
...
...
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