From 58d4ca23855063109e5d106b3413318bee1322b9 Mon Sep 17 00:00:00 2001 From: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Date: Thu, 12 Jun 2025 19:48:24 +0800 Subject: [PATCH] fix:remove duplicated trust_remote_code knob from trtllm-serve (#5143) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> --- tensorrt_llm/commands/serve.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tensorrt_llm/commands/serve.py b/tensorrt_llm/commands/serve.py index 59f1235012..537c9e3e68 100644 --- a/tensorrt_llm/commands/serve.py +++ b/tensorrt_llm/commands/serve.py @@ -248,12 +248,6 @@ def launch_server(host: str, default=None, help="Server role. Specify this value only if running in disaggregated mode." ) -@click.option( - "--trust_remote_code", - type=bool, - default=False, - help="Whether to trust remote code.", -) def serve(model: str, tokenizer: Optional[str], host: str, port: int, log_level: str, backend: str, max_beam_width: int, max_batch_size: int, max_num_tokens: int, max_seq_len: int,