ModelArts automatically provides the RANK_TABLE_FILE file for you. Obtain the file location through environment variables.
- Open the notebook terminal and run the following command to view RANK_TABLE_FILE:
- In a training job, add the following code to the first line of the training startup script to print the value of RANK_TABLE_FILE:
| os.system('env | grep RANK')
|