> This page is for version 2.1.5.
> For other versions, use one of these documentation indexes:
> - 2.1.6 (Latest) (default): https://docs.nvidia.com/nim/large-language-models/2.1.6/llms.txt
> - 2.1.5: https://docs.nvidia.com/nim/large-language-models/2.1.5/llms.txt
> - 2.1.4: https://docs.nvidia.com/nim/large-language-models/2.1.4/llms.txt
> - 2.0.13: https://docs.nvidia.com/nim/large-language-models/2.0.13/llms.txt
> - 2.0.12: https://docs.nvidia.com/nim/large-language-models/2.0.12/llms.txt
> - 2.0.11: https://docs.nvidia.com/nim/large-language-models/2.0.11/llms.txt
> - 2.0.10: https://docs.nvidia.com/nim/large-language-models/2.0.10/llms.txt
> - 2.0.9: https://docs.nvidia.com/nim/large-language-models/2.0.9/llms.txt
> - 2.0.8: https://docs.nvidia.com/nim/large-language-models/2.0.8/llms.txt
> - 2.0.4-pb6: https://docs.nvidia.com/nim/large-language-models/2.0.4-pb6/llms.txt
> - Archive: https://docs.nvidia.com/nim/large-language-models/archive/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nim/large-language-models/llms.txt.

# NIM LLM 1.x to NIM LLM and VLM 2.0 Migration Guide

> Migrate from NIM LLM 1.x to the NIM LLM and VLM 2.0 architecture in which each container image bundles one inference engine. This guide lists the configuration, API, and deployment changes you need to make.

NIM LLM and VLM 2.0 uses a new architecture in which each container image bundles one open-source inference engine, vLLM or SGLang, in place of the 1.x multi-backend design. As a result, it differs significantly from NIM LLM 1.x. This guide highlights the main areas that require changes during migration and links to the relevant 2.0 documentation for full details.

## Migration Checklist

Use the following checklist to review the main migration tasks.

### General

Start with these high-level changes:

* Update the image tag to `2.1.5`.
* Review the new [architecture](/nim/large-language-models/2.1.5/reference/architecture), including which inference engine (vLLM or SGLang) your image bundles.

### CLI

Review the CLI changes that affect deployment and startup behavior:

* There are minor changes and additions to the CLI. Refer to [CLI Reference](/nim/large-language-models/2.1.5/reference/cli-reference) for more details on the new CLI.
* Notably, the `nim-run` CLI command is replaced with the new `nim-serve` command.

### Configuration

Review configuration changes before you update deployment manifests or startup commands:

* Migrate to the new configuration system. Refer to [Advanced Configuration](/nim/large-language-models/2.1.5/reference/advanced-configuration) for details.
* Audit environment variables against the [2.0 environment variable reference](/nim/large-language-models/2.1.5/reference/environment-variables). Many 1.x variables have been removed. Use the canonical `NIM_*` variables where they exist. For everything else, pass the bundled engine's native arguments (vLLM or SGLang, depending on the image) through `nim-serve`. Backend-specific flags must match the engine in your image.
* Configure the inference engine by passing its CLI arguments directly to `nim-serve`. Refer to the `nim-serve` section of [CLI Reference](/nim/large-language-models/2.1.5/reference/cli-reference) for an example. For a full description of the available configuration options, refer to the vLLM [engine arguments](https://docs.vllm.ai/en/stable/configuration/engine_args/) or the SGLang [server arguments](https://docs.sglang.io/advanced_features/server_arguments.html), depending on your image.

### API and Inference Requests

Update client integrations to match the new request and response structure:

* Review the new [API Reference](/nim/large-language-models/2.1.5/reference/api-reference) and migrate clients to the OpenAI-compatible request and response structure exposed by the bundled engine.
* Notably, the `nvext` extension object in the request body is removed. Move sampling parameters from `nvext` to top-level request fields.
* For extension sampling fields beyond the OpenAI schema, refer to the
  [vLLM sampling parameters](https://docs.vllm.ai/en/stable/api/vllm/sampling_params/)
  or [SGLang sampling parameters](https://docs.sglang.io/basic_usage/sampling_params.html).
  Both backends accept `min_tokens` in OpenAI-compatible Chat Completions and
  Completions requests. SGLang maps this field to `min_new_tokens` internally.

### Tool Calling

Review tool calling changes if your deployment uses function or tool invocation:

* Configure tool calling with arguments supported by the backend in your image. Refer to [Tool Calling and MCP Integration](/nim/large-language-models/2.1.5/advanced-use-cases/tool-calling-and-mcp) for setup and backend differences.

### Models and Profiles

Review model selection and profile behavior before you migrate existing deployments:

* Replace the `NIM_MODEL_NAME` environment variable with `NIM_MODEL_PATH` to configure the model to download and serve. Refer to [Model Download](/nim/large-language-models/2.1.5/deployment/model-download) and [Model-Free NIM](/nim/large-language-models/2.1.5/deployment/model-free-nim) for additional details.
* Automatic profile selection now uses model memory estimation heuristics to choose a suitable profile. Refer to [Model Profiles and Selection](/nim/large-language-models/2.1.5/deployment/model-profiles-and-selection) for details.

### LoRA Support

Review these changes if you deploy LoRA adapters:

* Convert LoRA adapters to Hugging Face PEFT format. NeMo-format adapters are no longer supported.
* Refer to [Fine-Tuning with LoRA](/nim/large-language-models/2.1.5/advanced-use-cases/finetune-lora) for details on configuring NIM for LoRA.

### Observability and Logging

Update logging and metrics collection to match the 2.0 runtime:

* Update dashboards and alerts to use the bundled engine's native Prometheus
  metrics: `vllm:*` for vLLM or `sglang:*` for SGLang. Metric names differ
  between engines. Refer to [Logging and Observability](/nim/large-language-models/2.1.5/reference/logging-and-observability).
* Use `NIM_LOG_LEVEL` and `NIM_JSONL_LOGGING` for logging configuration.
* Refer to [Logging and Observability — Metrics](/nim/large-language-models/2.1.5/reference/logging-and-observability) for more details.