Component
core/ai-model/nvidia-nim
NVIDIA Inference Microservice (NIM) as a self-hosted, GPU-native inference server serving the OpenAI-compatible API. Using it needs an NVIDIA account and an NGC API key, under NVIDIA's licence terms: every realization runs a NIM image the reader must be entitled to pull, named by the Release in `infra.image`. The catalog names none, and nothing renders until it is set. On Kubernetes three Recipes realize it. `helm/nvidia-nim` assembles the workload itself and fetches nothing at build time: reach for it where no NIM Operator runs. `helm/nvidia-nim-chart` renders NVIDIA's `nim-llm` chart: reach for it where that chart is wanted and NVIDIA's chart repository is reachable from the build. `helm/nvidia-nim-service` emits a `NIMService` for NVIDIA's NIM Operator: reach for it where the operator runs, or is declared beside it as `core/ai-model/nvidia-nim-operator`, and affirm that with `infra.control_plane_present`. On a single Docker host, `compose/nvidia-nim` serves it through the NVIDIA Container Toolkit. Exports its host, port, endpoint, model, and protocol to consumers via the uses topology, so an agent reaches the model without hardcoding an endpoint, and where Prometheus finds the server's metrics: one address as `metrics_endpoint`, or, while it runs more than one replica on Kubernetes, the Service a scraper discovers every replica behind.
来歴
- コンテンツダイジェスト
- sha256:be4033497172ba0ab697392a318f7273bea9b65466407c9f38ae24f5201a3031
- 公開日
- 2026-11-10T10:09:26Z
- 署名 ID
- 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:477956835d80e84bd1404eeafc3cab600a40afb0a5ac91daa05c61699609f76a
このバージョンの参照
oci://hub.aggrega.ai/component/core/ai-model/nvidia-nim:1.0.0開発者パラメーター
開発者が Aggregate で設定する値です。
BaseComponents#/schemas/BaseModelParameter を拡張
運用担当者によるサイジング
運用担当者が環境ごとに調整するインフラストラクチャのサイジングです。
| 名前 | 型 | デフォルト | 必須 | 説明 |
|---|---|---|---|---|
| port | integer (min 1024, max 65535) | 8000 | いいえ | Server listen port for the model API. Most operators should omit this and let the Recipe assign the default (8000). |
| image | string | — | いいえ | Full reference of the NIM serving image, including its tag — the image the operator is entitled to pull. NIM images are model-specific, so the reference must be the one for the model named in values.model. There is no default, because access to NIM images is governed by NVIDIA's terms rather than by the catalog, and the catalog therefore names none. |
| replicas | integer (min 1) | 1 | いいえ | Number of serving replicas on Kubernetes, where each replica holds its own model-cache volume and resolves the model profile independently. The NIM Operator realization gives its service one model-cache claim, so it serves one replica and halts the build on more. Docker Compose runs one instance, and the build reports a replica count there as a setting the target omitted. |
| min_replicas | integer (min 1) | — | いいえ | Lower bound for the replica count when horizontal autoscaling is configured. Declared ahead of rendering — each Recipe serves a fixed replica count and none emits an autoscaler yet; set it to record the intended lower bound. |
| max_replicas | integer (min 1) | — | いいえ | Upper bound for the replica count when horizontal autoscaling is configured. Declared ahead of rendering — each Recipe serves a fixed replica count and none emits an autoscaler yet; set it to record the intended upper bound. |
| compute | object | — | いいえ | — |
| model_cache | object | — | いいえ | Model-profile cache volume. On Kubernetes it is per replica, sized for the resolved profile, and each serving replica gets its own claim of this size and class. On Docker Compose it is one named volume, which the host creates at its own default, since compose has no volume-size or storage-class concept. |
| model_artifact | string | — | いいえ | Optional OCI reference to the model weights, an alternative weights source to the model id in values.model. A deterministic pointer the runtime resolves at start; the compiler never fetches it. Declared ahead of rendering — each Recipe resolves the model from values.model and none consumes this pointer yet. |
| gpu | object | — | いいえ | GPU scheduling for the serving container. NIM is GPU-native, so the serving container always requests at least one GPU; this object tunes the count and selects a GPU runtime class. Requires a GPU-capable cluster and, for runtime_class, a matching RuntimeClass configured in the cluster; on Docker Compose, a host whose NVIDIA GPUs Docker can hand to containers. |
| image_pull_secret | string | — | いいえ | Name of a pre-created Kubernetes image-pull Secret granting access to the NIM container registry. Set this when the NIM image is pulled from a private registry; omit when the cluster can pull it without credentials. On Docker Compose the host pulls with its own registry login, so a Release setting this halts the build there. |
| source_version | string | — | いいえ | Version of NVIDIA's nim-llm chart the `nvidia-nim-chart` realization pulls. Changing it away from that Recipe's default does not guarantee value-mapping compatibility with the new chart. The other realizations pull no chart and ignore it. |
| control_plane_present | boolean | false | いいえ | Operator affirmation that NVIDIA's NIM Operator (its controller and its custom-resource definitions) is installed in the target cluster, or is declared beside this component as core/ai-model/nvidia-nim-operator. The NIMService realization halts the build unless this is set true, so a NIMService is never emitted as an orphan into a cluster that cannot reconcile it. The synthesis and chart realizations ignore this flag. |
| overrides | object (open) | — | いいえ | Provider-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads. |
出力コントラクト
このコンポーネントが uses トポロジを通じて利用側に公開する値です。
| 名前 | 型 | デフォルト | 必須 | 説明 |
|---|---|---|---|---|
| host | string | — | はい | Name the inference server is reached at: the in-cluster DNS name of the Service fronting it on Kubernetes, and the compose service name 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 server accepts model requests on. It follows the port an operator set in the Release, so a consumer reads it rather than assuming a default. |
| endpoint | string | — | はい | Full base URL of the OpenAI-compatible API the server 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 this server for, which is the model profile it loaded rather than a provider catalogue name. |
| protocol | string | — | いいえ | URL scheme to reach `host` and `port` over, for a consumer composing its own address rather than reading `endpoint`. |
| metrics_endpoint | string | — | いいえ | The full address Prometheus scrapes this server's metrics at — scheme, host, port and path, `http://<host>:<port>/v1/metrics`, on the port the API is served on. Empty while infra.replicas is above one on Kubernetes, when `metrics_service` is published instead; always set on Docker Compose, which runs one instance. |
| metrics_service | string | — | いいえ | Name of the Service every replica's metrics sit behind, for a scraper that discovers each endpoint of that Service rather than scraping one address. Set while infra.replicas is above one on Kubernetes, beside `metrics_service_port` and `metrics_path`; empty otherwise, and always empty on Docker Compose. |
| metrics_service_port | string | — | いいえ | Name of the port of `metrics_service` that carries the metrics: `http` on the synthesis, `http-openai` on NVIDIA's chart. Set and empty together with `metrics_service`. |
| metrics_path | string | — | いいえ | Path the metrics are served at, `/v1/metrics`, published beside `metrics_service`. Empty where the server publishes `metrics_endpoint`, which carries its own path. |
uses ソケット
このコンポーネントが接続に用いる依存関係ソケットです。ソケットを介して配線される各接続のターゲットは、そのソケットのラベルセレクターを満たす必要があり、各接続はソケットが宣言するスロットにアタッチメントを持つことができます。必須スロットは、Aggregate または Release がそのソケットを介して配線する各接続が満たす必要があります。
uses ソケットは宣言されていません。
アタッチメントスロット
Feature がこのコンポーネントにアタッチされる、名前付きのバインディングポイントです。スロットのセレクターはどの Feature がそのスロットを埋められるかを制約し、その inject リストは Feature のマテリアルをどのように配信できるかを示します。必須スロットは、インスタンス上のアタッチメント、またはその上位のスコープでのアタッチメントによって、すべてのインスタンスでバインドされている必要があります。また、機密スロットは秘密のマテリアルを扱うものとして宣言されます。Feature は、どのスロットも宣言していない名前でアタッチすることもできます。
| スロット | セレクター | 必須 | 注入 | 機密 | 説明 |
|---|---|---|---|---|---|
| ngc_api_key | feature.aggrega.ai/kind=secret | いいえ | env | はい | Optional NGC API key for authenticating the model-profile download. When attached, the serving container receives it as the NGC_API_KEY environment variable — on Kubernetes read from a Secret by reference, on Docker Compose written into the compose file as delivered, so attach a Compose variable reference such as ${NGC_API_KEY} there to keep the key out of the file. Unattached, the container starts without it. The NIM Operator realization requires it, published under the data key NGC_API_KEY. |
自己注入の許可リスト
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» を使用
適用対象
適用対象
適用対象
適用対象
適用対象
適用対象
適用対象
実装
実装
実装
実装