| 1 | --- |
| 2 | title: "Llamafile" |
| 3 | --- |
| 4 | |
| 5 | A [llamafile](https://github.com/Mozilla-Ocho/llamafile#readme) is a self-contained binary that can run an open-source LLM. You can configure this provider in your config.json as follows: |
| 6 | |
| 7 | <Tabs> |
| 8 | <Tab title="YAML"> |
| 9 | ```yaml title="config.yaml" |
| 10 | models: |
| 11 | - name: Llamafile |
| 12 | provider: llamafile |
| 13 | model: mistral-7b |
| 14 | ``` |
| 15 | </Tab> |
| 16 | <Tab title="JSON"> |
| 17 | ```json title="config.json" |
| 18 | { |
| 19 | "models": [ |
| 20 | { |
| 21 | "title": "Llamafile", |
| 22 | "provider": "llamafile", |
| 23 | "model": "mistral-7b" |
| 24 | } |
| 25 | ] |
| 26 | } |
| 27 | ``` |
| 28 | </Tab> |
| 29 | </Tabs> |
| 30 | |
| 31 | [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Llamafile.ts) |