kikocis/llama-stack public
Changesets · Branches · Tags · Compare
| Changeset | 79315843ed6c1659cac61ba2443b9af966aad03d01a516382d289da4f8c9b32b |
|---|---|
| Author | Mark Sze <66362098+marklysze@users.noreply.github.com> · 2024-09-27 02:48 +10:00 |
| Committer | GitHub <noreply@github.com> · 2024-09-26 09:48 -07:00 |
| Parents | 33277250c87b |
4 files changed
modified docs/cli_reference.md +4 −4
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | The `llama` CLI tool helps you setup and use the Llama toolchain & agentic systems. It should be available on your path after installing the `llama-stack` package. |
| 4 | 4 | |
| 5 | 5 | ### Subcommands |
| 6 | -1. `download`: `llama` cli tools supports downloading the model from Meta or HuggingFace. | |
| 6 | +1. `download`: `llama` cli tools supports downloading the model from Meta or Hugging Face. | |
| 7 | 7 | 2. `model`: Lists available models and their properties. |
| 8 | 8 | 3. `stack`: Allows you to build and run a Llama Stack server. You can read more about this [here](/docs/cli_reference.md#step-3-building-configuring-and-running-llama-stack-servers). |
| 9 | 9 | |
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 | |
| 39 | 39 | <pre style="font-family: monospace;"> |
| 40 | 40 | +----------------------------------+------------------------------------------+----------------+ |
| 41 | -| Model Descriptor | HuggingFace Repo | Context Length | | |
| 41 | +| Model Descriptor | Hugging Face Repo | Context Length | | |
| 42 | 42 | +----------------------------------+------------------------------------------+----------------+ |
| 43 | 43 | | Llama3.1-8B | meta-llama/Llama-3.1-8B | 128K | |
| 44 | 44 | +----------------------------------+------------------------------------------+----------------+ |
| @@ -112,7 +112,7 @@ | ||
| 112 | 112 | llama download --source meta --model-id Llama-Guard-3-8B --meta-url META_URL |
| 113 | 113 | ``` |
| 114 | 114 | |
| 115 | -#### Downloading from [Huggingface](https://huggingface.co/meta-llama) | |
| 115 | +#### Downloading from [Hugging Face](https://huggingface.co/meta-llama) | |
| 116 | 116 | |
| 117 | 117 | Essentially, the same commands above work, just replace `--source meta` with `--source huggingface`. |
| 118 | 118 | |
| @@ -180,7 +180,7 @@ | ||
| 180 | 180 | +-----------------------------+----------------------------------+ |
| 181 | 181 | | Model | Llama3.2-3B-Instruct | |
| 182 | 182 | +-----------------------------+----------------------------------+ |
| 183 | -| HuggingFace ID | meta-llama/Llama-3.2-3B-Instruct | | |
| 183 | +| Hugging Face ID | meta-llama/Llama-3.2-3B-Instruct | | |
| 184 | 184 | +-----------------------------+----------------------------------+ |
| 185 | 185 | | Description | Llama 3.2 3b instruct model | |
| 186 | 186 | +-----------------------------+----------------------------------+ |
modified llama_stack/cli/model/describe.py +1 −1
| @@ -51,7 +51,7 @@ | ||
| 51 | 51 | colored("Model", "white", attrs=["bold"]), |
| 52 | 52 | colored(model.descriptor(), "white", attrs=["bold"]), |
| 53 | 53 | ), |
| 54 | - ("HuggingFace ID", model.huggingface_repo or "<Not Available>"), | |
| 54 | + ("Hugging Face ID", model.huggingface_repo or "<Not Available>"), | |
| 55 | 55 | ("Description", model.description), |
| 56 | 56 | ("Context Length", f"{model.max_seq_length // 1024}K tokens"), |
| 57 | 57 | ("Weights format", model.quantization_format.value), |
modified llama_stack/cli/model/list.py +1 −1
| @@ -36,7 +36,7 @@ | ||
| 36 | 36 | def _run_model_list_cmd(self, args: argparse.Namespace) -> None: |
| 37 | 37 | headers = [ |
| 38 | 38 | "Model Descriptor", |
| 39 | - "HuggingFace Repo", | |
| 39 | + "Hugging Face Repo", | |
| 40 | 40 | "Context Length", |
| 41 | 41 | ] |
| 42 | 42 |
modified tests/test_inference.py +1 −1
| @@ -20,7 +20,7 @@ | ||
| 20 | 20 | MODEL = "Llama3.1-8B-Instruct" |
| 21 | 21 | HELPER_MSG = """ |
| 22 | 22 | This test needs llama-3.1-8b-instruct models. |
| 23 | -Please donwload using the llama cli | |
| 23 | +Please download using the llama cli | |
| 24 | 24 | |
| 25 | 25 | llama download --source huggingface --model-id llama3_1_8b_instruct --hf-token <HF_TOKEN> |
| 26 | 26 | """ |