From 8c0ed7acc4d1a98c254f7fc81eb2d6589a75073a Mon Sep 17 00:00:00 2001 From: AI-bot-easy Date: Sat, 1 Nov 2025 12:52:41 +0800 Subject: [PATCH 1/3] fix typo of args description --- python/sglang/profiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sglang/profiler.py b/python/sglang/profiler.py index cd6917cbdea..21f3c7d6572 100644 --- a/python/sglang/profiler.py +++ b/python/sglang/profiler.py @@ -124,7 +124,7 @@ def run_profile( action=argparse.BooleanOptionalAction, type=bool, default=False, - help="The number of forward steps to profile.", + help="Whether to profile prefill and decode separatedly", ) parser.add_argument( "--cpu", From 604d9f2d69f6980fbf0a3b4a6d72953e59ddb9a0 Mon Sep 17 00:00:00 2001 From: ai-easy-cpu Date: Sat, 1 Nov 2025 13:18:20 +0800 Subject: [PATCH 2/3] Update python/sglang/profiler.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- python/sglang/profiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sglang/profiler.py b/python/sglang/profiler.py index 21f3c7d6572..9606f72acda 100644 --- a/python/sglang/profiler.py +++ b/python/sglang/profiler.py @@ -124,7 +124,7 @@ def run_profile( action=argparse.BooleanOptionalAction, type=bool, default=False, - help="Whether to profile prefill and decode separatedly", + help="Whether to profile prefill and decode separately", ) parser.add_argument( "--cpu", From 7eb0daf7e73988d165c4af654385375898425663 Mon Sep 17 00:00:00 2001 From: AI Date: Mon, 3 Nov 2025 11:29:52 +0800 Subject: [PATCH 3/3] add profiler description in README --- python/sglang/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/python/sglang/README.md b/python/sglang/README.md index 3d16d84f818..4d9cf8c2d90 100644 --- a/python/sglang/README.md +++ b/python/sglang/README.md @@ -12,5 +12,6 @@ - `check_env.py`: Check the environment variables and dependencies. - `global_config.py`: The global configs and constants. - `launch_server.py`: The entry point for launching a local server. +- `profiler.py`: The profiling entry point to send profile requests. - `utils.py`: Common utilities. - `version.py`: Version info.