---
title: "Hybrid AI Isn’t the Future — It’s Here (and It Runs in Docker using the Minions protocol)"
description: "The MinionS protocol splits LLM work between a capable remote model that writes orchestration code and lightweight local models that process document chunks in parallel, with the remote model aggregating the results."
url: "https://swe.quest/articles/hybrid-ai-isn-t-the-future-it-s-here-and-it-runs-in-docker-using-the-minions-4fa2bd660993b847"
canonical: "https://www.docker.com/blog/hybrid-ai-and-how-it-runs-in-docker/"
source: "Docker"
published: "2025-09-04"
difficulty: "easy"
kind: "How-to"
reading_minutes: 6
tags: ["llms","inference","containers","cost-optimization","ai-agents"]
---

# Hybrid AI Isn’t the Future — It’s Here (and It Runs in Docker using the Minions protocol)

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-09-04, 6 min read, How-to. Original: [https://www.docker.com/blog/hybrid-ai-and-how-it-runs-in-docker/](https://www.docker.com/blog/hybrid-ai-and-how-it-runs-in-docker/)

## Summary

The MinionS protocol splits LLM work between a capable remote model that writes orchestration code and lightweight local models that process document chunks in parallel, with the remote model aggregating the results. Docker Compose declares the local model, served by Docker Model Runner, in a few lines of YAML, and runs the generated orchestration code in a sandboxed container. The Minions paper reports a 5.7× cost reduction for MinionS while keeping about 97.9% of remote-only quality, versus 30.4× cost reduction and about 87% quality for the simpler Minion protocol. In practice, using Qwen3 locally roughly halved remote token use, to about 15,000 tokens, but responses can be up to about 10× slower.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- Docker Compose basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- LLM context windows ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Minions protocol, MinionS, Docker Compose, Docker Model Runner, Llama 3.2, Qwen3

## Related posts

- [Why and How to Run Local Models in Zed](https://swe.quest/articles/why-and-how-to-run-local-models-in-zed-dea250314afe2e5d.md): Zed · 2026-05-19 · Medium · 5 min read · Inference & serving, AI for coding, LLMs, Developer tools
  Local open-weight models run through LM Studio, Ollama or llama.cpp offer privacy, predictable cost, control and guaranteed availability, at the price of lower capability, fewer tokens per second and smaller context windows than frontier models.
- [How to Build, Run, and Package AI Models Locally with Docker Model Runner](https://swe.quest/articles/how-to-build-run-and-package-ai-models-locally-with-docker-model-runner-acbc6d65548e5373.md): Docker · 2025-06-12 · Medium · 6 min read · Inference & serving, LLMs, Containers, Developer tools
  Docker Model Runner, enabled as a beta feature in Docker Desktop 4.40+, pulls GGUF-format LLMs from Docker Hub or Hugging Face and runs them locally via the \`docker model\` CLI or an OpenAI-compatible HTTP endpoint on localhost.
- [Behind the scenes: How we designed Docker Model Runner and what’s next](https://swe.quest/articles/behind-the-scenes-how-we-designed-docker-model-runner-and-what-s-next-376205c328b89264.md): Docker · 2025-06-18 · Medium · 16 min read · Inference & serving, Containers, API design, System design, LLMs
  Docker Model Runner runs AI models locally and exposes them to both containers and host processes through Docker-style /models endpoints and OpenAI-compatible /engines/{engine}/v1 endpoints. llama.cpp is the first backend, but the API path leaves room for others like vLLM and MLX.
- [Run LLMs Locally with Docker: A Quickstart Guide to Model Runner](https://swe.quest/articles/run-llms-locally-with-docker-a-quickstart-guide-to-model-runner-ccfbbb71db5d1485.md): Docker · 2025-04-04 · Medium · 5 min read · Inference & serving, LLMs, Containers, Developer tools
  Docker Model Runner, in beta with Docker Desktop 4.40 on Apple silicon, pulls LLMs packaged as OCI artifacts and serves them through an OpenAI-compatible API backed by llama.cpp.
- [OpenCode with Docker Model Runner for Private AI Coding](https://swe.quest/articles/opencode-with-docker-model-runner-for-private-ai-coding-640e2f146435d737.md): Docker · 2026-01-15 · Medium · 8 min read · AI for coding, Inference & serving, LLMs, Containers
  OpenCode can use locally hosted models by pointing an @ai-sdk/openai-compatible provider in opencode.json at Docker Model Runner's OpenAI-compatible endpoint (localhost:12434/v1, with TCP enabled on Docker Desktop).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
