亲测解决unable to import torch, please install it if you want to pre-compile any deepspeed ops.
这个问题是小虎在win上下载deepspeed导致。原因是windows不支持deepspeed。
问题背景
unable to import torch, please install it if you want to pre-compile any deepspeed ops.
DS_BUILD_OPS=1
解决方法
windows上面不能使用deepspeed,因为deepspeed用到了linux系统的libaio-dev模块。所以截至目前只能在linux系统上使用deepspeed。
另外,小虎运行的程序是BEiT2,在注释了有关deepspeed的语句后,程序正常运行。因为deepspeed的功能是用来加速程序运行的。
原版笔记
Cannot use deepspeed in windows. Quite funny. Since microsoft developed deepspeed.