Description of the problem: The project needs to run such a .sh file on a remote server, and wants to perform a debug operation on Pycharm.
Operation:
The original operation requires python train.py cfg_path nproc_per_node
pycharm to debug. The most important thing is to replace the red part with the environment launch.py file, note that the files opened here are local, and remote ones cannot be opened! But after connecting to the server, just enter the absolute path of launch.py on the server!!! –nproc_per_node
= 1 --master_port=29500 tools/train.py configs/pct_base_tokenizer.py --launcher pytorch
can run.
Pycharm remote distributed training debug
Guess you like
Origin blog.csdn.net/qq_43666068/article/details/130835882
Ranking