Environment Variables#
The following table documents commonly used environment variables. Some are consumed by the XMLIR or XPU runtime rather than by vLLM-Kunlun itself, so availability and exact behavior can depend on the installed runtime version.
Environment variable |
Recommended value |
Description |
|---|---|---|
|
unset |
Uses real XPU events instead of dummy events for synchronization. |
|
|
Selects the physical XPU devices visible to the process. Adjust this list to the deployment. |
|
|
Legacy |
|
|
Enables the fast SwiGLU implementation in XFT operators. |
|
|
Enables the fast SwiGLU implementation in Kunlun MoE operators. |
|
|
Enables the XMLIR runtime’s cuDNN-compatible path. The exact implementation depends on the installed runtime. |
|
|
Uses the XPU runtime’s default device context. |
|
|
Routes CUDA Graph-compatible APIs to XPU Graph capture and replay. |
|
|
Advertises the host address to vLLM workers. On multi-NIC hosts, set one explicit address reachable by every worker. |
|
|
Disables the default eager-only |
|
|
Registers |
|
|
Controls the fused QK-Norm and RoPE implementation. Keep |