Skip to content

Add Docker Model Runner #22463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/guides/genai-pdf-bot/containerize.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ aliases:

> [!NOTE]
>
> GenAI applications can often benefit from GPU acceleration. Currently Docker Desktop supports GPU acceleration only on [Windows with the WSL2 backend](/manuals/desktop/features/gpu.md#using-nvidia-gpus-with-wsl2). Linux users can also access GPU acceleration using a native installation of the [Docker Engine](/manuals/engine/install/_index.md).
> GenAI applications can often benefit from GPU acceleration. Currently, Docker Desktop supports GPU acceleration only on [Windows with the WSL2 backend](/manuals/desktop/features/gpu.md#using-nvidia-gpus-with-wsl2). Linux users can also access GPU acceleration using a native installation of the [Docker Engine](/manuals/engine/install/_index.md). On Mac, one can use [Docker Model Runner](https://docs.docker.com/desktop/features/model-runner/) to run models natively.

- You have installed the latest version of [Docker Desktop](/get-started/get-docker.md) or, if you are a Linux user and are planning to use GPU acceleration, [Docker Engine](/manuals/engine/install/_index.md). Docker adds new features regularly and some parts of this guide may work only with the latest version of Docker Desktop.
- You have a [git client](https://git-scm.com/downloads). The examples in this section use a command-line based git client, but you can use any client.
Expand Down
14 changes: 14 additions & 0 deletions content/guides/genai-pdf-bot/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,20 @@ To run Ollama outside of a container:
$ ollama pull llama2
```

{{< /tab >}}
{{< tab name="Use Docker Model Runner" >}}

Docker Model Runner is compatible with Ollama in the API.

1. Make sure your OS and Docker Desktop support [Docker Model Runner](https://docs.docker.com/desktop/features/model-runner/).
Docker Model Runner was initially released for Mac Silicon on Docker Desktop 4.40.
2. Download the model of your choice:
```console
$ docker model pull ai/llama3.3
```
3. Update the `OLLAMA_BASE_URL` value in your `.env` file to
`http://model-runner.docker.internal`.

{{< /tab >}}
{{< tab name="Use OpenAI" >}}

Expand Down