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 Collective Communication in Environment Variables.
Environment Variable |
Description |
|---|---|
Timeout period for establishing a socket connection. The default value is 120, in seconds. In this scenario, you are advised to adjust the connection setup timeout period based on the network scale.
export HCCL_CONNECT_TIMEOUT=1200 |
|
Expansion mode of the communication operator. In this scenario, you are advised to retain the default value AI_CPU, indicating that the communication operator is expanded on AICPU. export HCCL_OP_EXPANSION_MODE="AI_CPU" |
Environment Variable |
Description |
|---|---|
Expansion mode of the communication operator. In this scenario, you are advised to set this parameter to AIV, indicating that the communication operator is expanded on the Vector Core. export HCCL_OP_EXPANSION_MODE="AIV" |
|
Controls whether to enable deterministic computing. Set this field based on the usage scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |
Environment Variable |
Description |
|---|---|
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 a SuperPoD. In non-LLM-DataDist scenarios, you do not need to set this environment variable. export HCCL_INTRA_ROCE_ENABLE=1 |
|
Expansion mode of the communication operator. In this scenario, you are advised to set this parameter to AIV, indicating that the communication operator is expanded on the Vector Core. export HCCL_OP_EXPANSION_MODE="AIV" |
|
Controls whether to enable deterministic computing. Set this field based on the usage scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |
Environment Variable |
Description |
|---|---|
Timeout period for establishing a socket connection. The default value is 120, in seconds. In this scenario, you are advised to adjust the connection setup timeout period based on the network scale. export HCCL_CONNECT_TIMEOUT=1200 |
|
Expansion mode of the communication operator. In this scenario, you are advised to retain the default value AI_CPU, indicating that the communication operator is expanded on AICPU. export HCCL_OP_EXPANSION_MODE="AI_CPU" Note: For the inference communicator, you need to set the operator 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 Setting HCCL Communicator Parameters Using pg_options in the Ascend Extension for PyTorch Framework Feature Guide. |
|
Controls whether to enable deterministic computing. Set this field based on the usage scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |
Environment Variable |
Description |
|---|---|
Timeout period for establishing a socket connection. The default value is 120, in seconds. In this scenario, you are advised to adjust the connection setup timeout period based on the network scale.
export HCCL_CONNECT_TIMEOUT=1200 |
|
Expansion mode of the communication operator. In this scenario, you are advised to retain the default value HOST, indicating that the communication operator is expanded on the host CPU. export HCCL_OP_EXPANSION_MODE="HOST" |
|
Controls whether to enable deterministic computing. Set this field based on the usage scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |
Environment Variable |
Description |
|---|---|
Expansion mode of the communication operator. In this scenario, you are advised to retain the default value HOST, indicating that the communication operator is expanded on the host CPU. export HCCL_OP_EXPANSION_MODE="HOST" |
|
Controls whether to enable deterministic computing. Set this field based on the usage scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |
Environment Variable |
Description |
|---|---|
Timeout period for establishing a socket connection. The default value is 120, in seconds. In this scenario, you are advised to adjust the connection setup timeout period based on the network scale. export HCCL_CONNECT_TIMEOUT=1200 |
|
Expansion mode of the communication operator. In this scenario, you are advised to retain the default value HOST, indicating that the communication operator is expanded on the host CPU. export HCCL_OP_EXPANSION_MODE="HOST" |
|
Controls whether to enable deterministic computing. Set this field based on the usage scenario. The default value is false, indicating that deterministic computing is disabled. export HCCL_DETERMINISTIC=false |