From 4e76d312fa4a8d436da349db8e941d2c7939a894 Mon Sep 17 00:00:00 2001 From: Reid <61492567+reidliu41@users.noreply.github.com> Date: Wed, 19 Feb 2025 02:26:41 +0800 Subject: [PATCH] fix: modify the model id title for model list (#1095) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # What does this PR do? [Provide a short summary of what this PR does and why. Link to relevant issues if applicable.] Re-check and based on the doc, the download model id, actually is model descriptor(also without `meta-llama/`). https://llama-stack.readthedocs.io/en/latest/references/llama_cli_reference/index.html ``` $ llama download --source huggingface --model-id Llama-Guard-3-1B:int4 --hf-token xxx # model descriptor Fetching 8 files: 0%| | 0/8 [00:00 Co-authored-by: reidliu --- docs/source/references/llama_cli_reference/download_models.md | 2 +- docs/source/references/llama_cli_reference/index.md | 2 +- llama_stack/cli/model/list.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/references/llama_cli_reference/download_models.md b/docs/source/references/llama_cli_reference/download_models.md index 3c40f1392..6c791bcb7 100644 --- a/docs/source/references/llama_cli_reference/download_models.md +++ b/docs/source/references/llama_cli_reference/download_models.md @@ -39,7 +39,7 @@ You should see a table like this: ``` +----------------------------------+------------------------------------------+----------------+ -| Model Descriptor | Hugging Face Repo | Context Length | +| Model Descriptor(ID) | Hugging Face Repo | Context Length | +----------------------------------+------------------------------------------+----------------+ | Llama3.1-8B | meta-llama/Llama-3.1-8B | 128K | +----------------------------------+------------------------------------------+----------------+ diff --git a/docs/source/references/llama_cli_reference/index.md b/docs/source/references/llama_cli_reference/index.md index f7ac5fe36..76abce544 100644 --- a/docs/source/references/llama_cli_reference/index.md +++ b/docs/source/references/llama_cli_reference/index.md @@ -63,7 +63,7 @@ You should see a table like this: ``` +----------------------------------+------------------------------------------+----------------+ -| Model Descriptor | Hugging Face Repo | Context Length | +| Model Descriptor(ID) | Hugging Face Repo | Context Length | +----------------------------------+------------------------------------------+----------------+ | Llama3.1-8B | meta-llama/Llama-3.1-8B | 128K | +----------------------------------+------------------------------------------+----------------+ diff --git a/llama_stack/cli/model/list.py b/llama_stack/cli/model/list.py index 4fe28751e..e6bf2216a 100644 --- a/llama_stack/cli/model/list.py +++ b/llama_stack/cli/model/list.py @@ -36,8 +36,8 @@ class ModelList(Subcommand): from .safety_models import prompt_guard_model_sku headers = [ - "Model Descriptor", - "Model ID", + "Model Descriptor(ID)", + "Hugging Face Repo", "Context Length", ]