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:
brew install --cask docker-desktopYou 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
docker --version
docker run --rm hello-world3. Pull the image
The image is public, so no login is needed.
docker pull ghcr.io/deeplm/dlm-ops-dev:0.2.0-rc.4This 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.
docker desktop enable model-runnerdocker run --rm -v ~/.dlm-ops:/out ghcr.io/deeplm/dlm-ops-dev:0.2.0-rc.4 install-host-probe~/.dlm-ops/bin/dlm-ops-probe install5. 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.
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 demoThe 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.
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 demo7. Open the chat page
Wait until the logs say "model ready".
docker logs dlm-opsOpen the http://127.0.0.1:8090/#token=... link in your browser.
Stop it
docker rm -f dlm-opsNext 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.