> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gourmand.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Llamafile

> Configure Llamafile with Gobi to use self-contained binary files that can run open-source language models like Mistral without additional setup

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:

<Tabs>
  <Tab title="YAML">
    ```yaml title="config.yaml" theme={null}
    models:
      - name: Llamafile
        provider: llamafile
        model: mistral-7b
    ```
  </Tab>

  <Tab title="JSON">
    ```json title="config.json" theme={null}
    {
      "models": [
        {
          "title": "Llamafile",
          "provider": "llamafile",
          "model": "mistral-7b"
        }
      ]
    }
    ```
  </Tab>
</Tabs>

[View the source](https://github.com/gourmand/gobi/blob/main/core/llm/llms/Llamafile.ts)
