This section provides recommended service configurations for common service scenarios of the
This section describes only the functions and configuration examples of recommended environment variables. For details, see the Collective Communication in Environment Variables.
Environment Variable |
Description |
|---|---|
Specifies the timeout interval for establishing a socket connection. The default value is 120, in seconds. In this scenario, you are advised to adjust the connection setup timeout interval based on the network scale.
export HCCL_CONNECT_TIMEOUT=1200 |
|
Specifies the location for expanding the orchestration of the communication algorithm. In this scenario, you are advised to retain the default value AI_CPU, indicating that the communication algorithm orchestration is expanded in the AI CPU. export HCCL_OP_EXPANSION_MODE="AI_CPU" |
Deployment Method |
Environment Variable |
Description |
|---|---|---|
Prefill-Decode hybrid deployment |
Specifies the location for expanding the orchestration of the communication algorithm. In this scenario, you are advised to set it to AIV, indicating that the communication algorithm orchestration is expanded in the Vector Core. export HCCL_OP_EXPANSION_MODE="AIV" |
|
Specifies whether to enable deterministic computing. You can enable or disable this function based on the application scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |
||
Prefill-Decode separated deployment |
When only LLM-DataDist is used as the cluster management component, you are advised to use this environment variable to configure RoCE links for communication within supernodes. In non-LLM-DataDist scenarios, you do not need to set this environment variable. export HCCL_INTRA_ROCE_ENABLE=1 |
|
Specifies the location for expanding the orchestration of the communication algorithm. In this scenario, you are advised to set it to AIV, indicating that the communication algorithm orchestration is expanded in the Vector Core. export HCCL_OP_EXPANSION_MODE="AIV" |
||
Specifies whether to enable deterministic computing. You can enable or disable this function based on the application scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |
Environment Variable |
Description |
|---|---|
Specifies the timeout interval for establishing a socket connection. The default value is 120, in seconds. In this scenario, you are advised to adjust the connection setup timeout interval based on the network scale. export HCCL_CONNECT_TIMEOUT=1200 |
|
Specifies the location for expanding the orchestration of the communication algorithm. In this scenario, you are advised to retain the default value AI_CPU, indicating that the communication algorithm orchestration is expanded in the AI CPU. export HCCL_OP_EXPANSION_MODE="AI_CPU" Notes: For the inference communicator, you need to set the algorithm orchestration expansion location of the inference communicator to Vector Core through the communicator-level parameter. For the PyTorch framework network, you can set the expansion location using the hccl_op_expansion_mode parameter as follows: options = torch_npu._C._distributed_c10d.ProcessGroupHCCL.Options()
options.hccl_config ={"hccl_op_expansion_mode":3}
torch.distributed.init_process_group(backend="hccl", pg_options=options)
For details about PyTorch framework parameters, see Configuring HCCL Communication Domain Parameters Using pg_options in the Ascend Extension for PyTorch Framework Feature Guide. |
|
Specifies whether to enable deterministic computing. You can enable or disable this function based on the application scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |
Environment Variable |
Description |
|---|---|
Specifies the timeout interval for establishing a socket connection. The default value is 120, in seconds. In this scenario, you are advised to adjust the connection setup timeout interval based on the network scale.
export HCCL_CONNECT_TIMEOUT=1200 |
|
Specifies the location for expanding the orchestration of the communication algorithm. In this scenario, you are advised to retain the default value HOST, indicating that the communication algorithm orchestration is expanded in the CPU on the host. export HCCL_OP_EXPANSION_MODE="HOST" |
|
Specifies whether to enable deterministic computing. You can enable or disable this function based on the application scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |
Environment Variable |
Description |
|---|---|
Specifies the location for expanding the orchestration of the communication algorithm. In this scenario, you are advised to retain the default value HOST, indicating that the communication algorithm orchestration is expanded in the CPU on the host. export HCCL_OP_EXPANSION_MODE="HOST" |
|
Specifies whether to enable deterministic computing. You can enable or disable this function based on the application scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |
Environment Variable |
Description |
|---|---|
Specifies the timeout interval for establishing a socket connection. The default value is 120, in seconds. In this scenario, you are advised to adjust the connection setup timeout interval based on the network scale. export HCCL_CONNECT_TIMEOUT=1200 |
|
Specifies the location for expanding the orchestration of the communication algorithm. In this scenario, you are advised to retain the default value HOST, indicating that the communication algorithm orchestration is expanded in the CPU on the host. export HCCL_OP_EXPANSION_MODE="HOST" |
|
Specifies whether to enable deterministic computing. You can enable or disable this function based on the application scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |