From de53f05e3fcf7c04a037e11727ef04f508ff5b38 Mon Sep 17 00:00:00 2001 From: VenishPaneliya <141703684+VenishPaneliya@users.noreply.github.com> Date: Thu, 26 Nov 2026 14:10:24 +0530 Subject: [PATCH] fix(docs): drop --model-name from the lmdeploy chat examples The --model-name option is registered only on `lmdeploy serve api_server`, so `lmdeploy chat $repo_id --model-name $model_name` exits with "error: unrecognized arguments: --model-name". The chat template is detected from the model path, with --chat-template as the override. The serve invocations on the same page are unchanged: --model-name is valid there and sets the name reported by /v1/models. --- docs/en/inference/load_hf.md | 4 ++-- docs/zh_cn/inference/load_hf.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/inference/load_hf.md b/docs/en/inference/load_hf.md index 46dddab987..4cf2ad1cc5 100644 --- a/docs/en/inference/load_hf.md +++ b/docs/en/inference/load_hf.md @@ -22,7 +22,7 @@ model_name=llama2-chat-70b # repo_id=/path/to/downloaded_model # Inference by TurboMind -lmdeploy chat $repo_id --model-name $model_name +lmdeploy chat $repo_id # Serving with Restful API lmdeploy serve api_server $repo_id --model-name $model_name --tp 1 @@ -39,7 +39,7 @@ model_name=qwen2.5-7b # repo_id=/path/to/Qwen2.5-7B-Instruct/local_path # Inference by TurboMind -lmdeploy chat $repo_id --model-name $model_name +lmdeploy chat $repo_id # Serving with Restful API lmdeploy serve api_server $repo_id --model-name $model_name --tp 1 diff --git a/docs/zh_cn/inference/load_hf.md b/docs/zh_cn/inference/load_hf.md index b448208971..b532f4a161 100644 --- a/docs/zh_cn/inference/load_hf.md +++ b/docs/zh_cn/inference/load_hf.md @@ -23,7 +23,7 @@ model_name=llama2-chat-70b # repo_id=/path/to/downloaded_model # Inference by TurboMind -lmdeploy chat $repo_id --model-name $model_name +lmdeploy chat $repo_id # Serving with Restful API @@ -41,7 +41,7 @@ model_name=qwen2.5-7b # repo_id=/path/to/Qwen2.5-7B-Instruct/local_path # Inference by TurboMind -lmdeploy chat $repo_id --model-name $model_name +lmdeploy chat $repo_id # Serving with Restful API lmdeploy serve api_server $repo_id --model-name $model_name --tp 1