Environment Variable List
Environment Variable |
Function |
Type |
Values |
Description |
---|---|---|---|---|
|
Used to specify the model backend. If this variable is not set, the backend will be automatically selected in the priority order: MindFormers > Native > MindONE; if set, the specified backend will be used. |
String |
|
The native model backend currently supports the Qwen2.5, Qwen2.5VL, Qwen3 and Llama series; the MindSpore Transformers backend supports Qwen, DeepSeek and TeleChat models. When using MindSpore Transformers, set the environment variable: |
|
Configuration file for MindSpore Transformers models. Required for Qwen2.5 series or DeepSeek series models. |
String |
Path to the model configuration file |
This environment variable will be removed in future versions. Example: |
|
Specifies the network interface name for inter-machine communication using gloo. |
String |
Interface name (e.g., |
Used in multi-machine scenarios. The interface name can be found via |
|
Specifies the network interface name for inter-machine communication using TP. |
String |
Interface name (e.g., |
Used in multi-machine scenarios. The interface name can be found via |
|
Specifies the network interface name for inter-machine communication using HCCL. |
String |
Interface name (e.g., |
Used in multi-machine scenarios. The interface name can be found via |
|
Specifies which devices are visible to the current process, supporting one or multiple Device IDs. |
String |
Device IDs as a comma-separated string (e.g., |
Recommended for Ray usage scenarios. |
|
Controls the buffer size for data sharing between two NPUs. |
int |
Buffer size in MB (e.g., |
Usage reference: HCCL_BUFFSIZE. Example: For DeepSeek hybrid parallelism (Data Parallel: 32, Expert Parallel: 32) with |
|
Set the size of the memory pool block in PyNative mode for devices |
String |
String of positive number, and the unit is GB. |
|
|
Whether to use Ascend operation |
String |
|
If the variable is set to |
|
Enables profiling data collection and takes effect when a data save path is configured. |
String |
The path to save profiling data. |
More environment variable information can be referred in the following links: