Copied


NVIDIA Introduces NIM Operator to Streamline AI Inference on Kubernetes

Terrill Dicki   Sep 30, 2024 21:22 0 Min Read


NVIDIA has unveiled the NIM Operator, a Kubernetes operator designed to streamline the deployment, scaling, and management of AI inference pipelines. This new tool is set to simplify the use of NVIDIA NIM microservices, which are cloud-native services that facilitate the deployment of generative AI models across various environments, including cloud, data centers, and GPU-accelerated workstations, according to NVIDIA Technical Blog.

Core Capabilities and Benefits

The NIM Operator is expected to significantly reduce the effort required to deploy AI inference pipelines at scale. This operator supports simplified, lightweight deployments and manages the lifecycle of AI NIM inference pipelines on Kubernetes. One of its key features is model pre-caching, which reduces initial inference latency and enables faster autoscaling. This feature is particularly beneficial for deployments in air-gapped environments.

Intelligent Model Pre-Caching

With the NIM Operator, users can pre-cache models to minimize initial inference latency. The operator allows for the pre-caching of models based on NIM profiles and tags, or it can auto-detect the best model based on the GPUs available in the Kubernetes cluster. Models can be pre-cached on any available node, whether CPU-only or GPU-accelerated. The operator creates a persistent volume claim (PVC) in Kubernetes to download and cache the NIM models, subsequently managing the lifecycle of this PVC using the NIMCache custom resource.

Automated AI NIM Pipeline Deployments

NVIDIA has introduced two Kubernetes custom resource definitions (CRDs) to facilitate the deployment of NIM microservices: NIMService and NIMPipeline. The NIMService CRD manages each NIM microservice as a standalone service, while the NIMPipeline CRD enables the collective deployment and management of multiple NIM microservices. This approach allows users to manage multiple pipelines as a collection, rather than individual services.

Autoscaling

The NIM Operator supports autoscaling through Kubernetes Horizontal Pod Autoscaler (HPA). It allows for the specification of minimum and maximum replica counts and supports scaling based on various metrics, including per-pod resource metrics like CPU, custom metrics such as GPU memory usage, and external metrics. Users can also define HPA scale-up and scale-down behaviors to control the rate of change of replicas while scaling.

Day 2 Operations

The NIMService and NIMPipeline CRDs support easy rolling upgrades with a customizable rolling strategy. Changes in NIMService pods are reflected in the CRD status, and users can also add Kubernetes ingress for NIMService.

Support Matrix

At launch, the NIM Operator supports the reasoning LLM and the retrieval-embedding NIM microservice. NVIDIA plans to continuously expand the list of supported NIM microservices. For a full list of supported microservices, users can refer to the platform support documentation provided by NVIDIA.

Conclusion

By automating the deployment, scaling, and lifecycle management of NVIDIA NIM microservices, the NIM Operator aims to ease the adoption of these services and accelerate AI adoption in enterprise environments. This initiative is part of NVIDIA's commitment to making NIM microservices easy to adopt, production-ready, and secure. The NIM Operator will be included in future releases of NVIDIA AI Enterprise to provide enterprise support, API stability, and proactive security patching.


Read More