Skip to main content
Environment variables let you configure your vLLM workers without rebuilding your Docker image. You can customize model behavior, performance settings, and other deployment options to suit your needs. To set environment variables, go to your endpoint settings and add them under Environment Variables.

LLM settings

These variables control the core language model configuration.

LoRA settings

Configure LoRA (Low-Rank Adaptation) adapters for your model.

Speculative decoding settings

Configure speculative decoding to improve performance.

System performance settings

Configure GPU memory and system resource utilization.

Tokenizer settings

Customize tokenizer behavior and chat templates.

Streaming and batch settings

Control how tokens are streamed back in HTTP responses. These settings control how tokens are batched in HTTP responses when streaming. The batch size starts at DEFAULT_MIN_BATCH_SIZE and increases by a factor of DEFAULT_BATCH_SIZE_GROWTH_FACTOR with each request until it reaches DEFAULT_BATCH_SIZE. For example, with default values, the batch sizes would be 1, 3, 9, 27, and then 50 for all subsequent requests. These settings do not affect vLLM’s internal batching.

OpenAI compatibility settings

Configure OpenAI API compatibility features.
TOOL_CALL_PARSER tells vLLM how to interpret a model’s tool-call output. If the parser doesn’t match the model’s format, tool calls may not be detected (or may error during parsing).

Serverless and concurrency settings

Configure concurrency and logging for Serverless deployments.

Advanced settings

Additional configuration options for specialized use cases.

Docker build arguments

These variables are used when building custom Docker images with models baked in.

Deprecated variables

The following variables are deprecated and will be removed in future versions.