getting started

Install on macOS

Install Docker Desktop on a Mac, run the model on the Mac's GPU, then pull and run DeepLM Ops step by step.

This guide installs Docker Desktop on macOS and runs DeepLM Ops from Terminal, one step at a time.

How it runs on a Mac

Docker gives containers no access to the Mac's GPU. On an Apple silicon Mac, DeepLM Ops therefore runs the model in Docker Model Runner, Docker's llama.cpp running on the Mac itself with Metal. A small host probe lets the assistant see the real Mac (chip, unified memory, GPU use and the apps holding the GPU) instead of the Linux VM inside Docker.

  • This needs Docker Desktop 4.71 or later. Older versions of Docker Model Runner have container-to-host security holes, so update first.
  • The model holds about 7.8 GB of unified memory while loaded (8.3 GB at its peak), measured on a 24 GB Mac mini M4. That memory belongs to the Mac, outside Docker's VM, so Docker Desktop needs no extra memory for it. The model is unloaded after 15 idle minutes.
  • Without Docker Model Runner, for example with an older Docker Desktop, the model runs on the CPU inside Docker's VM. That is much slower. See the CPU-only option in step 6.

1. Install Docker Desktop

With Homebrew:

bash
brew install --cask docker-desktop

You can also download Docker Desktop from the Docker website. Open it once after installing and accept the terms. Check in its About screen that it is version 4.71 or later.

2. Check that Docker works

bash
docker --version
docker run --rm hello-world

3. Pull the image

The image is public, so no login is needed.

Terminal
docker pull ghcr.io/deeplm/dlm-ops-dev:0.2.0-rc.4

This is a release candidate for testing, and the first image with the new platform UI.

4. Set up the Mac's GPU, once

These three commands turn on Docker Model Runner, install the host probe from the image, and register it as a per-user launch agent. No administrator rights are needed.

Terminal, set up once
docker desktop enable model-runner
Terminal, set up once
docker run --rm -v ~/.dlm-ops:/out ghcr.io/deeplm/dlm-ops-dev:0.2.0-rc.4 install-host-probe
Terminal, set up once
~/.dlm-ops/bin/dlm-ops-probe install

5. Run it

This command runs the model in Docker Model Runner and shows the real Mac. The demo at the end, after the image name, connects DeepLM Ops to a recorded sample campus cluster with made-up jobs. Questions about this Mac are still answered from your real Mac.

Terminal
docker run -d --name dlm-ops -p 127.0.0.1:8090:8090 -v dlm-ops:/var/lib/dlm-ops --read-only --tmpfs /tmp --tmpfs "/run/dlm:uid=1000,gid=1000,mode=0700" --cap-drop ALL --security-opt no-new-privileges --pids-limit 256 --restart unless-stopped -e DLM_OPS_ENGINE=dmr -v ~/.dlm-ops/host:/host:ro ghcr.io/deeplm/dlm-ops-dev:0.2.0-rc.4 demo

The first start pulls the model into Docker Model Runner (3.4 GB, including a vision file it never loads).

6. CPU-only option

If you cannot use Docker Model Runner, run the plain command instead. The model then runs on the CPU, which is much slower, and Docker needs at least 8 GB of memory. Add -v ~/.dlm-ops/host:/host:ro before the image name if you want to keep the real Mac's facts.

Terminal, CPU only
docker run -d --name dlm-ops -p 127.0.0.1:8090:8090 -v dlm-ops:/var/lib/dlm-ops --read-only --tmpfs /tmp --tmpfs "/run/dlm:uid=1000,gid=1000,mode=0700" --cap-drop ALL --security-opt no-new-privileges --pids-limit 256 --restart unless-stopped ghcr.io/deeplm/dlm-ops-dev:0.2.0-rc.4 demo

7. Open the chat page

Wait until the logs say "model ready".

Terminal
docker logs dlm-ops

Open the http://127.0.0.1:8090/#token=... link in your browser.

Stop it

Terminal
docker rm -f dlm-ops

Next steps

Try the sample questions, take a look around the web interface, or see Common problems if something does not work. Read the Docker Model Runner note in the security model before you run other containers next to DeepLM Ops.