Comments (4)
try to replace
shutil.copytree('.\\csrc', '.\\deepspeed\\ops')
shutil.copytree('.\\op_builder', '.\\deepspeed\\ops')
with
shutil.copytree('.\\csrc', '.\\deepspeed\\ops\\csrc')
shutil.copytree('.\\op_builder', '.\\deepspeed\\ops\\op_builder')
But I'm not sure if this will work well
from deepspeed.
Thanks you. At the same time, I deleted files (.\\deepspeed\\accelerator
, .\\deepspeed\\ops\\csrc
and .\\deepspeed\\ops\\op_builder
) and it could work.
But I met a new error :(
creating build\lib.win-amd64-cpython-311\deepspeed\inference\v2\ragged\csrc
copying deepspeed\inference\v2\ragged\csrc\fast_host_buffer.cu -> build\lib.win-amd64-cpython-311\deepspeed\inference\v2\ragged\csrc
copying deepspeed\inference\v2\ragged\csrc\ragged_ops.cpp -> build\lib.win-amd64-cpython-311\deepspeed\inference\v2\ragged\csrc
copying deepspeed\ops\sparse_attention\trsrc\matmul.tr -> build\lib.win-amd64-cpython-311\deepspeed\ops\sparse_attention\trsrc
copying deepspeed\ops\sparse_attention\trsrc\softmax_bwd.tr -> build\lib.win-amd64-cpython-311\deepspeed\ops\sparse_attention\trsrc
copying deepspeed\ops\sparse_attention\trsrc\softmax_fwd.tr -> build\lib.win-amd64-cpython-311\deepspeed\ops\sparse_attention\trsrc
running build_ext
C:\Users\Moemu\.conda\envs\Neuro\Lib\site-packages\torch\utils\cpp_extension.py:418: UserWarning: The detected CUDA version (12.3) has a minor version mismatch with the version that was used to compile PyTorch (12.1). Most likely this shouldn't be a problem.
warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda))
building 'deepspeed.ops.adam.fused_adam_op' extension
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\csrc
creating build\temp.win-amd64-cpython-311\Release\csrc\adam
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Muice-Vtuber\Neuro-master\DeepSpeed-master\csrc\includes -IC:\Muice-Vtuber\Neuro-master\DeepSpeed-master\csrc\adam -IC:\Users\Moemu\.conda\envs\Neuro\Lib\site-packages\torch\include -IC:\Users\Moemu\.conda\envs\Neuro\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Moemu\.conda\envs\Neuro\Lib\site-packages\torch\include\TH -IC:\Users\Moemu\.conda\envs\Neuro\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3\include" -IC:\Users\Moemu\.conda\envs\Neuro\include -IC:\Users\Moemu\.conda\envs\Neuro\Include /EHsc /Tpcsrc/adam/fused_adam_frontend.cpp /Fobuild\temp.win-amd64-cpython-311\Release\csrc/adam/fused_adam_frontend.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -O2 -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=fused_adam_op -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17
fused_adam_frontend.cpp
C:\Users\Moemu\.conda\envs\Neuro\Lib\site-packages\torch\include\c10/core/DeviceType.h(10): fatal error C1083: 无法打开 包括文件: “cstddef”: No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.40.33807\\bin\\Hostx64\\x64\\cl.exe' failed with exit code 2
from deepspeed.
@Moemu, it looks like MSVC can't find cstddef
, which is a standard C++ include file. Please make sure to run build_win.bat
from a "Developer Command Prompt for VS 2022" which sets the correct environment variables for the compiler. In addition, you can build the costineseanu/windows_inference_build
branch which has more fixes for the Windows build (including the one about not being able to copy files).
from deepspeed.
Thank you. Change the code in setup.py
and deletes the 3 files could work. I find this change commit in #5596 and shutil.copytree
cannot cover the exists file.
from deepspeed.
Related Issues (20)
- [BUG] Launcher does not honor CUDA_VISIBLE_DEVICES
- [BUG] Deepspeed ZeRO3 not partitioning model parameters HOT 7
- [BUG] Universal checkpoint conversion failed HOT 5
- [BUG] In deepspeed Zero3, RuntimeError: still have inflight params HOT 3
- [BUG] Training time regression with ZeRO-3 after upgrade to torch 2.3.1 and CUDA 12.1 HOT 2
- [BUG] 'trust_remote_code' needs to be set to True or atleast a method to pass this information as required. HOT 1
- [BUG] deepspeed.utils.safe_get_full_grad get all nan value
- [REQUEST] can we load a deepspeed ckpt without deepspeed? HOT 6
- [BUG] Gradient accumulation causing training loss differences in Deepspeed vs FSDP
- Unable to install DeepSpeed using "pip install deepspeed" command in Windows 11 HOT 9
- ++!!Noelia Minchan Bailarina Destacada en el Video Viral de Telegram HOT 3
- ++!!Video Yukii199 Step Sis i Just Wish i Had a Screw Buddy So i Can Get Back At My Boyfriend HOT 1
- @@(Watch The Video)@@ Classic Dammie Noodles FULL CLIP Official Viral Video Leaks on Social Media HOT 1
- ++!!FOTOS DO AVIAO QUE CAIU EM VINHEDO PORTAL ZACARIAS
- @@FOTOS DO AVIAO QUE CAIU EM VINHEDO PORTAL ZACARIAS
- ++tv!!Noelia Minchan Bailarina Destacada en el Video Viral de Telegram Twitter
- ++(full video!!)FOTOS DO AVIAO QUE CAIU EM VINHEDO PORTAL ZACARIAS HOT 1
- ++المجلس 28 - سلسلة الطريق - مصطفى حسني
- ++Viral!!المجلس 28 - سلسلة الطريق - مصطفى حسني
- ++!!( VIRAL FULL VIDEO )Audrey Davis Anak David Naif VIRAL Video Oficial Leaked on Twitter HD HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepspeed.