Open QYR123 opened 4 days ago
你好,怎么进行多卡训练
终端运行以下命令: CUDA_VISIBLE_DEVICES=0,1 python train.py
运行了还是单卡训练
下面这句话指示了多卡训练, 我试了我这边可以多卡训练,可能因为model占的显存太小看不出来,可以加大batch size再训练看看不同显卡的显存占用。命令CUDA_VISIBLE_DEVICES=0,1 python train.py中的0,1指示的是使用的GPU的号码。
CUDA_VISIBLE_DEVICES=0,1 python train.py
0,1
你好,怎么进行多卡训练