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.
{
"status":"completed", // Rank table availability flag. The value completed indicates that the rank table is available.
"version":"1.0", // Rank table template version. 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.
"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", // Listening port of the processor's NIC
"rank_id":"0" // Rank ID, which starts from 0 and must be globally unique.
},
{
"device_id":"1",
"device_ip":"192.168.1.9",
"device_port":"16667",
"rank_id":"1"
}
]
},
{
"server_id":"node_1",
"device":[
{
"device_id":"0",
"device_ip":"192.168.2.8",
"device_port":"16667",
"rank_id":"2"
},
{
"device_id":"1",
"device_ip":"192.168.2.9",
"device_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. Set the value 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 |
||
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 (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. |