APEX
如何安装
google colab install apex amp
code
error
add --user
still wrong......
如何使用
1) 训练、保存模型
2) 测试
Pytorch使用
1) 训练
View Code
2) 测试
参考
1. 【PyTorch】唯快不破:基于Apex的混合精度加速;
https://zhuanlan.zhihu.com/p/79887894
判断你的GPU是否支持FP16:支持的有拥有Tensor Core的GPU(2080Ti、Titan、Tesla等),不支持的(Pascal系列,1080Ti)就不建议折腾了。
https://pytorch.org/docs/stable/notes/amp_examples.html
https://featurize.cn/notebooks/368cbc81-2b27-4036-98a1-d77589b1f0c4
【深度学习训练小技巧】1080ti与2080ti区别、apex与梯度累加、torch.no_grad
https://zhuanlan.zhihu.com/p/150860679
https://github.com/NVIDIA/apex/blob/master/apex/amp/lists/functional_overrides.py
https://github.com/NVIDIA/apex
https://nvidia.github.io/apex/index.html
https://developer.nvidia.com/automatic-mixed-precision
完