Pycharm remote distributed training debug

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.
insert image description here
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
insert image description here
can run.

Guess you like

Origin blog.csdn.net/qq_43666068/article/details/130835882