Skip to content

Commit 60a5b7d

Browse files
committed
mypy
Signed-off-by: hongkuanz <[email protected]>
1 parent 83f27c3 commit 60a5b7d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

benchmarks/profiler/utils/profiler_argparse.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,9 @@ def create_profiler_parser() -> argparse.Namespace:
245245
)
246246

247247
default_webui_port = 8000
248-
if os.environ.get("PROFILER_WEBUI_PORT"):
249-
default_webui_port = int(os.environ.get("PROFILER_WEBUI_PORT"))
248+
webui_port_env = os.environ.get("PROFILER_WEBUI_PORT")
249+
if webui_port_env:
250+
default_webui_port = int(webui_port_env)
250251
parser.add_argument(
251252
"--webui-port",
252253
type=int,

benchmarks/profiler/webui/select_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def generate_config_data(prefill_data, decode_data, args):
118118
# Populate decode data
119119
if decode_data.num_gpus:
120120
# Group by GPU count for multiple datasets
121-
gpu_groups = {}
121+
gpu_groups: dict[int, list[list[float]]] = {}
122122
for i, (gpu, itl, thpt, label) in enumerate(
123123
zip(
124124
decode_data.num_gpus,
@@ -279,7 +279,7 @@ def pick_config_with_webui(prefill_data, decode_data, args):
279279
logger.info(f"Launching WebUI on port {args.webui_port}...")
280280

281281
# Queue to communicate selection from UI to main thread
282-
selection_queue = queue.Queue()
282+
selection_queue: queue.Queue[tuple[int | None, int | None]] = queue.Queue()
283283

284284
# Track individual selections
285285
prefill_selection = {"idx": None}

0 commit comments

Comments
 (0)