For the
The comments of examples shown in this section in the JSON file are for reference only. Delete the comments in the JSON file in actual use.
Assume that there are two supernodes, each supernode contains two AI servers, and each AI server contains four devices. The following is an example describing the configuration of the file rank_table_superPod.json:
{
"status": "completed", // Rank table availability flag. The value completed indicates that the rank table is available.
"version": "1.2", // Rank table template version. For the supernode networking, set the version to 1.2.
"server_count":"4", // Number of AI servers participating in training
"server_list": [
{
"server_id": "node_0", // AI server ID, which is of the string type. Ensure that the ID is globally unique.
"host_ip":"172.16.0.100", // Host IP address of the AI server
"device": [
{"device_id": "0","super_device_id":"0","device_ip": "192.168.1.6","device_port":"16666","backup_device_ip":"192.168.1.7","backup_device_port":"16667","host_port":"16665","rank_id": "0"}, // device_id indicates the physical ID of the processor. super_device_id indicates the physical ID of the processor in the supernode system. device_ip indicates the IP address of the processor's NIC. device_port indicates the communication port of the processor's NIC. backup_device_ip indicates the backup IP address when the operator retry feature between supernodes is enabled. host_port indicates the communication port of the host NIC. rank_id indicates the rank ID, which starts from 0.
{"device_id": "1","super_device_id":"1","device_ip": "192.168.1.7","device_port":"16666","backup_device_ip":"192.168.1.6","backup_device_port":"16667","host_port":"16666","rank_id": "1"},
{"device_id": "2","super_device_id":"2","device_ip": "192.168.1.8","device_port":"16668","backup_device_ip":"192.168.1.9","backup_device_port":"16670","host_port":"16667","rank_id": "2"},
{"device_id": "3","super_device_id":"3","device_ip": "192.168.1.9","device_port":"16669","backup_device_ip":"192.168.1.8","backup_device_port":"16667","host_port":"16668","rank_id": "3"}]
},
{
"server_id": "node_1",
"host_ip":"172.16.0.101",
"device": [
{"device_id": "0","super_device_id":"4","device_ip": "192.168.2.6","device_port":"16666","backup_device_ip":"192.168.2.7","backup_device_port":"16667","host_port":"16665","rank_id": "4"},
{"device_id": "1","super_device_id":"5","device_ip": "192.168.2.7","device_port":"16666","backup_device_ip":"192.168.2.6","backup_device_port":"16667","host_port":"16666","rank_id": "5"},
{"device_id": "2","super_device_id":"6","device_ip": "192.168.2.8","device_port":"16668","backup_device_ip":"192.168.2.9","backup_device_port":"16670","host_port":"16667","rank_id": "6"},
{"device_id": "3","super_device_id":"7","device_ip": "192.168.2.9","device_port":"16669","backup_device_ip":"192.168.2.8","backup_device_port":"16667","host_port":"16668","rank_id": "7"}]
},
{
"server_id": "node_2",
"host_ip":"172.16.0.102",
"device": [
{"device_id":"0","super_device_id":"0","device_ip":"192.168.3.6","device_port":"16666","backup_device_ip":"192.168.3.7","backup_device_port":"16667","host_port":"16665","rank_id":"8"},
{"device_id":"1","super_device_id":"1","device_ip":"192.168.3.7","device_port":"16666","backup_device_ip":"192.168.3.6","backup_device_port":"16667","host_port":"16666","rank_id":"9"},
{"device_id":"2","super_device_id":"2","device_ip":"192.168.3.8","device_port":"16668","backup_device_ip":"192.168.3.9","backup_device_port":"16670","host_port":"16667","rank_id":"10"},
{"device_id":"3","super_device_id":"3","device_ip":"192.168.3.9","device_port":"16669","backup_device_ip":"192.168.3.8","backup_device_port":"16667","host_port":"16668","rank_id":"11"}]
},
{
"server_id": "node_3",
"host_ip":"172.16.0.103",
"device": [
{"device_id":"0","super_device_id":"4","device_ip":"192.168.4.6","device_port":"16666","backup_device_ip":"192.168.4.7","backup_device_port":"16667","host_port":"16665","rank_id":"12"},
{"device_id":"1","super_device_id":"5","device_ip":"192.168.4.7","device_port":"16666","backup_device_ip":"192.168.4.6","backup_device_port":"16667","host_port":"16666","rank_id":"13"},
{"device_id":"2","super_device_id":"6","device_ip":"192.168.4.8","device_port":"16668","backup_device_ip":"192.168.4.9","backup_device_port":"16670","host_port":"16667","rank_id":"14"},
{"device_id":"3","super_device_id":"7","device_ip":"192.168.4.9","device_port":"16669","backup_device_ip":"192.168.4.8","backup_device_port":"16667","host_port":"16668","rank_id":"15"}]
}
],
"super_pod_list": [
{
"super_pod_id": "0", // Unique ID of the supernode
"server_list": [ // List of AI servers in the supernode
{"server_id": "node_0"}, // server_id indicates the server ID, which corresponds to server_id in server_list.
{"server_id": "node_1"}]
},
{
"super_pod_id": "1",
"server_list": [
{"server_id":"node_2"},
{"server_id":"node_3"}]
}
]
}
|
Level-1 Configuration Item |
Level-2 Configuration Item |
Level-3 Configuration Item |
Description |
|---|---|---|---|
|
status |
Mandatory. Rank table availability flag.
|
||
|
version |
Mandatory. Version of a rank table template. For the supernode networking, set this item to 1.2. |
||
|
server_count |
Optional. Number of AI servers that participate in collective communication. |
||
|
server_list |
Mandatory. List of AI servers that participate in collective communication. |
||
|
server_id |
Mandatory. AI server ID. The value is a string with a maximum of 64 characters. Ensure that the value is globally unique. Example: node_0 |
||
|
host_ip |
Optional. Host IP address of the AI server. The value must be in IPv4 format. When the HCCL retry feature is enabled, this field must be configured. Otherwise, the retry feature does not take effect and the process without retry will be used. The retry feature is disabled by default. For details, see the environment variable HCCL_OP_RETRY_ENABLE. |
||
|
device |
Mandatory. Device list. |
||
|
device_id |
Mandatory. Physical ID of the Ascend AI Processor, that is, the serial number of the device on the AI server. You can run the ls /dev/davinci* command to obtain the physical ID of the Ascend AI Processor. For example, /dev/davinci0 indicates that the physical ID of the Ascend AI Processor is 0. Value range: [0, Actual number of devices – 1]
NOTICE:
device_id takes precedence over the environment variable ASCEND_DEVICE_ID. |
||
|
super_device_id |
Optional. If this field is not set, the AI server mode is used. Physical ID of the Ascend AI Processor in the supernode system, which is the unique NPU ID in the supernode system. You can run the npu-smi command to query the information. The following is an example: npu-smi info -t spod-info -i id -c chip_id
In the command output, SDID indicates the unique NPU ID in the supernode system. |
||
|
device_ip |
Optional. IP address of the integrated NIC of the Ascend AI Processor, which is globally unique and must be in the IPv4 or IPv6 format.
Notes:
You can run the cat /etc/hccn.conf command on the current AI server to obtain the IP address of the NIC. address_0=xx.xx.xx.xx netmask_0=xx.xx.xx.xx netdetect_0=xx.xx.xx.xx address_1=xx.xx.xx.xx netmask_1=xx.xx.xx.xx netdetect_1=xx.xx.xx.xx ... address_xx indicates the NIC IP address, and xx indicates the physical ID of the Ascend AI Processor (device_id). The IP address following address_xx is the actual NIC IP address of the device to be set. |
||
|
device_port |
Optional. Communication port of the device NIC. The value range is [1, 65535]. Ensure that the specified port is not occupied by other processes. Ports 1–1023 are reserved. Do not use these ports. If the service runs in the single-device multi-process scenario, you are advised to set this field. Additionally, each service process must be assigned a unique port number. Otherwise, services may fail to run due to port conflicts. |
||
|
backup_device_ip |
Optional. When the operator retry feature is enabled for communication between supernodes, if the device NIC is faulty (RDMA link fault), you can use this parameter to specify another die NIC in the same NPU as the standby device NIC to improve the operator retry success rate. This communication mode in which the standby device NIC is enabled is called link failover communication. The value of backup_device_ip is in IPv4 or IPv6 format. For details about how to query the value, see the configuration description of device_ip.
Notes:
|
||
|
backup_device_port |
Optional. Communication port of the standby device NIC. The value range is [1, 65535]. Ensure that the specified port is not occupied by other processes. Ports 1–1023 are reserved. Do not use these ports. If link failover communication is enabled and the service runs in the single-device multi-process scenario, you are advised to set this field. Additionally, each service process must be assigned a unique port number. Otherwise, services may fail to run due to port conflicts.
NOTICE:
The communication port numbers configured when the same device NIC functions as the active and standby NICs must be different. |
||
|
host_port |
Optional. Communication port of the host NIC. The value range is [1, 65535]. The host_port value must be different for devices in the same AI server. Ensure that the specified port is not occupied by other processes. Ports 1–1023 are reserved. Do not use these ports. If the HCCL retry feature is enabled by setting the environment variable HCCL_OP_RETRY_ENABLE and the service runs in the single-device multi-process scenario (that is, multiple service processes share one NPU), you are advised to set this field. Additionally, each service process must be assigned a unique port number. Otherwise, services may fail to run due to port conflicts. |
||
|
rank_id |
Mandatory. ID of a rank. The value must be an integer starting from 0 and must be globally unique. The value range is [0, Total number of devices – 1]. You are advised to sort rank_id based on the physical connection sequence of devices, that is, arrange devices by physical connection proximity. Otherwise, the performance may be affected. For example, if device_ip is set in ascending order based on physical connections, you are advised to set rank_id in ascending order. |
||
|
super_pod_list |
Optional. If this field is not set, the AI server mode is used. List of supernodes that participate in collective communication. |
||
|
super_pod_id |
This field is mandatory if super_pod_list is configured.
Unique ID of a supernode, which is globally unique. The following configuration modes are supported:
|
||
|
server_list |
Mandatory. List of AI servers in a supernode. |
||
|
server_id |
Mandatory. Server ID. The value is a string and corresponds to server_id in server_list. Example: node_0 |
If there are multiple supernodes on the network, configure information about the AI servers that belong to the same supernode together. Assume that there are two supernodes whose IDs are 0 and 1. Configure the AI server information in supernode 0 and then configure the AI server information in supernode 1. The cross configurations of the AI server information in supernodes 0 and 1 are not supported.
{
"status":"completed", // Rank table availability flag. The value completed indicates that the rank table is available.
"version":"1.0", // Rank table template version information. For typical cluster networking, set this option to 1.0.
"server_count":"2", // Number of AI servers participating in training. In this example, there are two AI servers.
"server_list":
[
{
"server_id":"node_0", // AI server ID, which is of the string type. Ensure that the ID is globally unique.
"host_ip":"172.16.0.110", // Host IP address of the AI server
"device":[ // List of devices on the AI server
{
"device_id":"0", // Physical ID of the processor
"device_ip":"192.168.1.8", // Actual NIC IP address of the processor
"device_port":"16667", // Communication port of the processor's NIC
"host_port":"16666", // Communication port of the host NIC
"rank_id":"0" // Rank ID, starting from 0
},
{
"device_id":"1",
"device_ip":"192.168.1.9",
"device_port":"16667",
"host_port":"16667",
"rank_id":"1"
}
]
},
{
"server_id":"node_1",
"host_ip":"172.16.0.111",
"device":[
{
"device_id":"0",
"device_ip":"192.168.2.8",
"device_port":"16667",
"host_port":"16666",
"rank_id":"2"
},
{
"device_id":"1",
"device_ip":"192.168.2.9",
"device_port":"16667",
"host_port":"16667",
"rank_id":"3"
}
]
}
]
}
|
Level-1 Configuration Item |
Level-2 Configuration Item |
Level-3 Configuration Item |
Description |
|---|---|---|---|
|
status |
Mandatory. Rank table availability flag.
|
||
|
version |
Mandatory. Version of a rank table template. For the typical cluster networking, set this item to 1.0. |
||
|
server_count |
Mandatory. Number of AI servers that participate in collective communication. |
||
|
server_list |
Mandatory. List of AI servers that participate in collective communication. |
||
|
server_id |
Mandatory. AI server ID. The value is a string with a maximum of 64 characters. Ensure that the value is globally unique. Example: node_0 |
||
|
host_ip |
Optional. Host IP address of the AI server. The value must be in IPv4 format. When the HCCL retry feature is enabled, this field must be configured. Otherwise, the retry feature does not take effect and the process without retry will be used. The retry feature is disabled by default. For details, see the environment variable HCCL_OP_RETRY_ENABLE. |
||
|
device |
Mandatory. List of devices on the AI server. |
||
|
device_id |
Mandatory. Physical ID of the Ascend AI Processor, that is, the serial number of the device on the AI server. You can run the ls /dev/davinci* command to obtain the physical ID of the Ascend AI Processor. For example, /dev/davinci0 indicates that the physical ID of the Ascend AI Processor is 0. Value range: [0, Actual number of devices – 1]
NOTICE:
device_id takes precedence over the environment variable ASCEND_DEVICE_ID. |
||
|
device_ip |
Optional. IP address of the integrated NIC of the Ascend AI Processor, which is globally unique and must be in the IPv4 or IPv6 format.
Notes:
You can run the cat /etc/hccn.conf command on the current AI server to obtain the IP address of the NIC. address_0=xx.xx.xx.xx netmask_0=xx.xx.xx.xx netdetect_0=xx.xx.xx.xx address_1=xx.xx.xx.xx netmask_1=xx.xx.xx.xx netdetect_1=xx.xx.xx.xx ... address_xx indicates the NIC IP address, and xx indicates the physical ID of the Ascend AI Processor (device_id). The IP address following address_xx is the actual NIC IP address of the device to be set. |
||
|
device_port |
Optional. Communication port of the device NIC. The value range is [1, 65535]. Ensure that the specified port is not occupied by other processes. Ports 1–1023 are reserved. Do not use these ports. If the service runs in the single-device multi-process scenario, you are advised to set this field. Additionally, each service process must be assigned a unique port number. Otherwise, services may fail to run due to port conflicts. |
||
|
host_port |
Optional. Communication port of the host NIC. The value range is [1, 65535]. The host_port value must be different for devices in the same AI server. Ensure that the specified port is not occupied by other processes. Ports 1–1023 are reserved. Do not use these ports. If the HCCL retry feature is enabled by setting the environment variable HCCL_OP_RETRY_ENABLE and the service runs in the single-device multi-process scenario (that is, multiple service processes share one NPU), you are advised to set this field. Additionally, each service process must be assigned a unique port number. Otherwise, services may fail to run due to port conflicts. |
||
|
rank_id |
Mandatory. ID of a rank. The value must be an integer starting from 0 and must be globally unique. The value range is [0, Total number of devices – 1]. You are advised to sort rank_id based on the physical connection sequence of devices, that is, arrange devices by physical connection proximity. Otherwise, the performance may be affected. For example, if device_ip is set in ascending order based on physical connections, you are advised to set rank_id in ascending order. |