本文主要是介绍DeepSpeed在windows下构建失败的问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
使用pip install deepspeed无法安装,看教程说是可以自己安装。
## Windows
Windows support is partially supported with DeepSpeed. On Windows you can build wheel with following steps, currently only inference mode is supported.
1. Install pytorch, such as pytorch 1.8 + cuda 11.1
2. Install visual cpp build tools, such as VS2019 C++ x64/x86 build tools
3. Launch cmd console with Administrator privilege for creating required symlink folders
4. Run `python setup.py bdist_wheel` to build wheel in `dist` folder
参考资料:
https://github.com/microsoft/DeepSpeed/tree/v0.14.0
https://visualstudio.microsoft.com/zh-hans/vs/older-downloads/
安装cuda,pytorch,vistual c++构建工具等:
执行如下命令:
set DS_BUILD_AIO=0
set DS_BUILD_SPARSE_ATTN=0
set DS_BUILD_EVOFORMER_ATTN=0
set DS_BUILD_CUTLASS_OPS=0
set DS_BUILD_RAGGED_DEVICE_OPS=0
python setup.py bdist_wheel
一顿操作构建个whl文件:
这篇关于DeepSpeed在windows下构建失败的问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!