AI builders want a choice of the latest large language models (LLM) architectures and specialized variants for use in AI agents and other apps, but handling all the diversity can slow testing and deployment pipelines. In particular, managing and optimizing different inference software frameworks to achieve best performance across varied LLMs and serving requirements is a time-consuming bottleneck to getting performant AI apps in the hands of end-owners.
It has been revealed that NVIDIA AI customers and ecosystem partners leverage NVIDIA NIM inference microservices to streamline deployment of the latest AI models on NVIDIA accelerated infrastructure, including LLMs, multi-modal and domain-specific models from NVIDIA, Meta, Mistral AI, Google and hundreds more innovative model builders. Weβve seen customers and partners deliver more innovation, faster, with a simplified, reliable approach to model deployment, and today weβre excited to unlock over 100,000 LLMs on Hugging Face for rapid, reliable deployment with NIM.
NIM now provides a single docker container for deploying a broad range of LLMs supported by leading inference frameworks from NVIDIA and the community including NVIDIA TensorRT-LLM, vLLM and SGLang. When an LLM is provided to the NIM container, it performs several steps for deployment and performance optimization, without manual configuration:.
In a recent development, table 1. NVIDIA NIM LLM adaptation phases and functionality.
The single NIM container supports common LLM weight formats, including:.
It has been revealed that to use NIM, ensure your environment has NVIDIA GPUs with appropriate drivers (CUDA 12.1+), Docker installed, an NVIDIA NGC Account and API Key for NIM Docker images, and a Hugging Face account and API token for models requiring authentication. Learn more about environment prerequisites in the NIM documentation.
Environment setup involves setting environment variables and creating a persistent cache directory. Ensure the nim_cache directory has correct Unix permissions, ideally owned by the same Unix user launching the Docker container, to prevent permission concerns. Commands use -u $(id -u) to manage this.
For ease of use, letβs store some of the frequently used information in environment variables.
Deploying an LLM from Hugging Face is demonstrated with Codestral-22B:.
For locally downloaded models, point NIM_MODEL_NAME to the path and mount the directory:.
It has been revealed that while deploying a model, feel free to inspect the output logs to get a sense of the choices NIM made during model deployment. Deployed models are available at http://localhost:8000, with API endpoints at http://localhost:8000/docs.
Recent findings suggest that additional arguments are available by the underlying engine. You can inspect the full list of such arguments by running nim-run --help in the container, as shown below.
To inspect compatible backends or choose a specific one, use list-model-profiles:.
It has been revealed that this command shows compatible profiles, including for LoRA adapters. To deploy with a specific backend like vLLM, use the NIM_MODEL_PROFILE environment variable, using the output supplied by list-model-profiles:.
In a recent development, NIM facilitates deploying quantized models. It automatically detects the quantization format (e.g., GGUF, AWQ) and selects the appropriate backend using standard deployment commands:.
For advanced owners, NIM offers customization through environment variables such as NIM_MAX_MODEL_LEN for context length. For large LLMs, NIM_TENSOR_PARALLEL_SIZE enables multi-GPU deployment. Ensure --shm-size= is passed to Docker for multi-GPU communication.
According to recent reports, the NIM container supports a broad range of LLMs supported by NVIDIA TensorRT-LLM, vLLM and SGLang, including popular LLMs and specialized variants on Hugging Face. For more details on supported LLMs, see the documentation.
Recent findings suggest that NIM is designed to simplify AI model deployment on NVIDIA accelerated infrastructure, speeding innovation and time to value for high performance AI builders and enterprise AI teams. We look forward to engagement and feedback from the Hugging Face Community.
Get started with a developer example in an NVIDIA-hosted computing environment at build.nvidia.com.
I tried your command, even though the docker login succeeded and i can see nim-llm in the container registry, it doesn't seem to allow access:.