前言 在运行代码时 ,遇到报错信息 torchrun: command not found 解决方式 应该是pytorch 版本不支持 torchrun, 或者其他原因导致不能使用,一般修改为 python3 -m torch.distributed.run 即可使用