Files
doc-exports/docs/modelarts/umn/modelarts_05_0380.html
Lai, Weijian 6aa966a79a ModelArts UMN 24.3.0 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2024-11-02 09:04:52 +00:00

2.1 KiB

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')