Run GPU jobs [Advanced]
一、GPU使用注意事项
1.1 多人共享使用方式和注意事项
nvidia-smi# 以使用 0 号和 1 号卡为例的python code
model = torch.nn.DataParallel(model, device_ids=[0, 1])
# 以使用 0 号卡为例的python code
model = torch.nn.DataParallel(model, device_ids=[0])# run the python file: train.py
nohup python train.py > train.log 2>&1 &1.2 其他事项
二、GPU使用Python脚本示例
2.1 Python脚本
2.2 脚本运行时指定GPU
三、GPU使用常用命令
3.1 查看GPU整体使用情况
3.2 实时监控GPU状态
3.3 筛选空闲GPU
3.4 其他重要命令
四、GPU使用参考资料
4.1 官方文档
4.2 实用技巧补充
Last updated
Was this helpful?