Help Center/ ModelArts/ FAQs/ Training Jobs/ Functional Consulting/ How Do I Obtain RANK_TABLE_FILE on ModelArts for Distributed Training?
Updated on 2024-06-11 GMT+08:00

How Do I Obtain RANK_TABLE_FILE on ModelArts for Distributed Training?

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:
    1
    env | grep RANK 
    
  • 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:
    1
    os.system('env | grep RANK')