From f69b903b4c70716224b3936cb8503e562e25388e Mon Sep 17 00:00:00 2001 From: Cyrus Leung Date: Tue, 10 Feb 2026 14:37:50 +0800 Subject: [PATCH] [Bugfix] Add `--trust-remote-code` to dataset bench args (#34208) Signed-off-by: DarkLight1337 --- vllm/benchmarks/datasets.py | 5 +++++ vllm/benchmarks/serve.py | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vllm/benchmarks/datasets.py b/vllm/benchmarks/datasets.py index 7148d90dc0..1fbf19addf 100644 --- a/vllm/benchmarks/datasets.py +++ b/vllm/benchmarks/datasets.py @@ -1314,6 +1314,11 @@ class _ValidateDatasetArgs(argparse.Action): def add_dataset_parser(parser: FlexibleArgumentParser): + parser.add_argument( + "--trust-remote-code", + action="store_true", + help="Trust remote code from huggingface", + ) parser.add_argument("--seed", type=int, default=0) parser.add_argument( "--num-prompts", diff --git a/vllm/benchmarks/serve.py b/vllm/benchmarks/serve.py index dd853f15a4..820427022d 100644 --- a/vllm/benchmarks/serve.py +++ b/vllm/benchmarks/serve.py @@ -1300,11 +1300,6 @@ def add_cli_args(parser: argparse.ArgumentParser): "bursty requests. A higher burstiness value (burstiness > 1) " "results in a more uniform arrival of requests.", ) - parser.add_argument( - "--trust-remote-code", - action="store_true", - help="Trust remote code from huggingface", - ) parser.add_argument( "--disable-tqdm", action="store_true",