使用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文件: