Component
core/ai-model/docker-model-runner
A model served by Docker Model Runner, named by its OCI model reference (`ai/smollm2`, say), behind an OpenAI-compatible API. The same reference is served on both targets, so one Aggregate builds for Docker Compose and for Kubernetes and asks both for the same model. The reference is a deterministic pointer the runner resolves when it pulls the model; the compiler never fetches it. On Docker Compose the host's own Docker Model Runner serves it: the compose file declares the model in its top-level `models` element, and Compose pulls and configures it when the stack starts. That needs what no build can check: Docker Compose 2.38 or later, Docker Model Runner enabled on the host, and a model CLI of at least 1.0.6 for `runtime_flags` to reach the engine. On Kubernetes the Docker Model Runner server runs in-cluster, pulls the same reference into a per-replica model cache, and serves it behind a ClusterIP Service. Consumers read the endpoint, model, host, port and protocol over a `uses` edge. Each operator setting works on the target where it means something and is refused by name on the other.
Походження
- Дайджест вмісту
- sha256:5aaacb32d0317067ed01adb05a62cc0513b1a0f64ff8d769d91c431cbfe82680
- Опубліковано
- 2026-11-10T10:09:13Z
- Ідентичність підписувача
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
Підпис
- Офіційнийapplication/vnd.dev.sigstore.bundle.v0.3+json
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
sha256:46e2e3962478eb2bae9e609cc44ff00d2d8b437a57513154a25a42bbc1b47a1f
Посилання на цю версію
oci://hub.aggrega.ai/component/core/ai-model/docker-model-runner:1.0.0Параметри розробника
Значення, які розробник задає в сутності Aggregate.
Розширює BaseComponents#/schemas/BaseModelParameter
| Назва | Тип | Типове значення | Обов’язкове | Опис |
|---|---|---|---|---|
| runtime_flags | array | — | ні | Raw command-line flags passed to the inference engine when the model is started, in Compose's own `runtime_flags` sense. Each flag reaches the runner as one list item and is never read by a shell. On Docker Compose they reach the engine only where the host's model CLI is at least 1.0.6; an older one drops them without saying so. |
Розміри, задані оператором
Розміри інфраструктури, які оператор налаштовує для кожного середовища.
| Назва | Тип | Типове значення | Обов’язкове | Опис |
|---|---|---|---|---|
| endpoint | string | — | ні | Base URL of the OpenAI-compatible API of the host's Docker Model Runner, as a container on the compose network reaches it. Read by the Docker Compose realization only, which defaults it to Docker Desktop's container-facing address, http://model-runner.docker.internal/engines/v1; on Docker Engine set it to the address the host's runner answers containers at, such as http://172.17.0.1:12434/engines/v1. The build pipes the address and never resolves it. The Kubernetes realization publishes its own Service address and refuses this key. |
| port | integer (min 1024, max 65535) | — | ні | Port the in-cluster runner listens on and its Service accepts requests on. Read by the Kubernetes realization, which defaults it to 12434; on Docker Compose the port is the host runner's own and part of infra.endpoint, so the key is refused there. |
| engine_version | string | — | ні | Docker Model Runner image tag the Kubernetes realization runs (default v1.2.8), on the server and on its model-pull step; with a GPU requested the CUDA variant of that tag is run. On Docker Compose the runner is the host's own installation, so the key is refused there. |
| replicas | integer (min 1) | — | ні | Number of serving replicas on Kubernetes (default 1), each with its own model cache and its own pull. On Docker Compose one host runner serves the model, so the key is refused there. |
| compute | object | — | ні | CPU and memory for the serving container on Kubernetes (defaults 1 and 4Gi), as requests and limits. On Docker Compose the host runner is sized by the host, so the key is refused there. |
| gpu | object | — | ні | Optional GPU scheduling for the serving container on Kubernetes. When count is set, the Recipe requests GPUs as the extended resource nvidia.com/gpu and runs the runner's CUDA image; a named runtime class schedules the pod under it. Omit the whole object to serve on CPU. On Docker Compose the host runner decides its own GPU use, so the key is refused there. |
| model_cache | object | — | ні | Per-replica model store on Kubernetes (default size 20Gi), sized for the pulled model; each serving replica gets its own claim. On Docker Compose the host runner keeps its own store, so the key is refused there. |
Вихідний контракт
Значення, які цей компонент публікує для споживачів через топологію uses.
| Назва | Тип | Типове значення | Обов’язкове | Опис |
|---|---|---|---|---|
| host | string | — | так | Host name the runner's API is reached at: the in-cluster Service name on Kubernetes, and the host part of the endpoint on Docker Compose. A consumer that composes its own address dials this name; one that does not reads `endpoint` instead. |
| port | integer | — | так | TCP port the runner's API accepts requests on: the Service port on Kubernetes, and the port of the endpoint on Docker Compose (its scheme's default where the endpoint names none). |
| endpoint | string | — | так | Full base URL of the OpenAI-compatible API the runner serves, with the host, the port and the API path already composed. A consumer hands it to a client library as its base URL. |
| model | string | — | так | Name a request must ask the runner for, which is the OCI model reference as the Aggregate wrote it, on both targets. |
| protocol | string | — | ні | URL scheme to reach `host` and `port` over, for a consumer composing its own address rather than reading `endpoint`. |
Сокети uses
Сокети залежностей, через які під’єднується цей компонент. Ціль кожного з’єднання, прокладеного через сокет, має задовольняти його селектор міток, а кожне з’єднання може нести приєднання в слотах, які оголошує сокет. Обов’язковий слот має заповнити кожне з’єднання, яке сутність Aggregate або сутність Release прокладає через сокет.
Сокетів uses не оголошено.
Слоти приєднання
Іменовані точки прив’язки, у яких сутність Feature приєднується до цього компонента. Селектор слота обмежує, яка сутність Feature може його заповнити, а його список inject визначає, як можна доставити матеріал сутності Feature. Обов’язковий слот має бути прив’язаний у кожному екземплярі, приєднанням в екземплярі або в області вище за нього, а чутливий слот оголошено для роботи з секретним матеріалом. Сутність Feature також може приєднатися під назвою, яку не оголошує жоден слот.
Слотів приєднання не оголошено.
Список дозволених самоін’єкцій
env
Зв’язки
Типізовані ребра до інших опублікованих сутностей і від них. Відсилання без опублікованої цілі відображається як розірване ребро, а не як посилання.
Використовує
- $refрозширює схему (values)
BaseComponents#/schemas/BaseModelParameter
Використовується в
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «model»
використовує сокет «target_model»
використовує сокет «extraction_model»
використовує сокет «embedding_model»
використовує сокет «models»
використовує сокет «models»
використовує сокет «models»
використовує сокет «models»
використовує сокет «models»
використовує сокет «models»
використовує сокет «models»
використовує сокет «upstream»
використовує сокет «models»
використовує сокет «forward_target»
використовує сокет «scrape_target»
використовує сокет «store»
використовує сокет «content_safety»
застосовується до
застосовується до
застосовується до
застосовується до
застосовується до
застосовується до
застосовується до
реалізує
реалізує