| 1 | --- |
| 2 | title: "Llama Stack" |
| 3 | description: "Configure Llama Stack with Continue" |
| 4 | keywords: [llama, stack, local, api, inference] |
| 5 | --- |
| 6 | |
| 7 | [Llama Stack](https://llama-stack.readthedocs.io/en/latest/index.html) is an open-source library that standardizes the core building blocks that simplify AI application development. It codifies best practices across the Llama ecosystem. More specifically, it provides |
| 8 | |
| 9 | - **Unified API layer** for Inference, RAG, Agents, Tools, Safety, Evals, and Telemetry. |
| 10 | - **Plugin architecture** to support the rich ecosystem of different API implementations in various environments, including local development, on-premises, cloud, and mobile. |
| 11 | - **Prepackaged verified distributions** which offer a one-stop solution for developers to get started quickly and reliably in any environment. |
| 12 | - **Multiple developer interfaces** like CLI and SDKs for Python, Typescript, iOS, and Android. |
| 13 | - **Standalone applications** as examples for how to build production-grade AI applications with Llama Stack. |
| 14 | |
| 15 | To try Llama Stack locally, run: |
| 16 | |
| 17 | ```shell |
| 18 | curl -LsSf https://github.com/meta-llama/llama-stack/raw/main/install.sh | bash |
| 19 | ``` |
| 20 | |
| 21 | Learn more about how to get started with llama stack in this [guide](https://llama-stack.readthedocs.io/en/latest/getting_started/index.html) |
| 22 | |
| 23 | ## Chat model |
| 24 | |
| 25 | We recommend configuring **Llama 4 Maverick** as your chat model. |
| 26 | |
| 27 | <Tabs> |
| 28 | <Tab title="YAML"> |
| 29 | ```yaml title="config.yaml" |
| 30 | models: |
| 31 | - name: Llama4 Maverick |
| 32 | provider: llamastack |
| 33 | model: meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8 |
| 34 | apiBase: http://<llama stack endpoint>/v1/openai/v1/ |
| 35 | ``` |
| 36 | </Tab> |
| 37 | <Tab title="JSON"> |
| 38 | ```json title="config.json" |
| 39 | { |
| 40 | "models": [ |
| 41 | { |
| 42 | "title": "Llama4 Maverick", |
| 43 | "provider": "llamastack", |
| 44 | "model": "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8", |
| 45 | "apiBase": "http://<llama stack endpoint>/v1/openai/v1/" |
| 46 | } |
| 47 | ] |
| 48 | } |
| 49 | ``` |
| 50 | </Tab> |
| 51 | </Tabs> |
| 52 | |
| 53 | ## Autocomplete model |
| 54 | |
| 55 | We recommend configuring **CodeLlama 7B** as your autocomplete model. |
| 56 | |
| 57 | <Tabs> |
| 58 | <Tab title="YAML"> |
| 59 | ```yaml title="config.yaml" |
| 60 | models: |
| 61 | - name: CodeLlama 7B |
| 62 | provider: llamastack |
| 63 | model: codellama:7b |
| 64 | apiBase: http://<llama stack endpoint>/v1/openai/v1/ |
| 65 | roles: |
| 66 | - autocomplete |
| 67 | ``` |
| 68 | </Tab> |
| 69 | <Tab title="JSON"> |
| 70 | ```json title="config.json" |
| 71 | { |
| 72 | "tabAutocompleteModel": { |
| 73 | "title": "CodeLlama 7B", |
| 74 | "provider": "llamastack", |
| 75 | "model": "codellama:7b", |
| 76 | "apiBase": "http://<llama stack endpoint>/v1/openai/v1/" |
| 77 | } |
| 78 | } |
| 79 | ``` |
| 80 | </Tab> |
| 81 | </Tabs> |
| 82 | |
| 83 | ## Embeddings model |
| 84 | |
| 85 | By default, Llama Stack uses **all-MiniLM-L6-v2** as the embeddings model. |
| 86 | |
| 87 | <Tabs> |
| 88 | <Tab title="YAML"> |
| 89 | ```yaml title="config.yaml" |
| 90 | models: |
| 91 | - name: all-MiniLM-L6-v2 |
| 92 | provider: llamastack |
| 93 | model: all-MiniLM-L6-v2 |
| 94 | apiBase: http://<llama stack endpoint>/v1/openai/v1/ |
| 95 | roles: |
| 96 | - embed |
| 97 | ``` |
| 98 | </Tab> |
| 99 | <Tab title="JSON"> |
| 100 | ```json title="config.json" |
| 101 | { |
| 102 | "embeddingsProvider": { |
| 103 | "provider": "llamastack", |
| 104 | "model": "all-MiniLM-L6-v2", |
| 105 | "apiBase": "http://<llama stack endpoint>/v1/openai/v1/" |
| 106 | } |
| 107 | } |
| 108 | ``` |
| 109 | </Tab> |
| 110 | </Tabs> |
| 111 | |
| 112 | ## Reranking model |
| 113 | |
| 114 | Llama Stack currently did not support Reranking API yet. |