Repository navigation
Open
Labels
bugSomething isn't workingSomething isn't workingwindowsQuestions or PRs relating to running DeepSpeed on WindowsQuestions or PRs relating to running DeepSpeed on Windows
Description
When I try to run build_win.bat in "Developer Command Promt for VS 2022", I can see errors about "LINK : fatal error LNK1181".
When I run build_win.bat in any other console, the result is the same, but it doesn't even say which file was not found.
Windows 10, RTX 5080, now PyTorch 2.7, CUDA 12.8 - try different combination
C:\Users\admin\Desktop\HunyuanVideo_I2V\DeepSpeed>C:\Users\admin\Desktop\HunyuanVideo_I2V\DeepSpeed\build_win.bat
* Getting build dependencies for wheel...
DS_BUILD_OPS=1
test.c
LINK : fatal error LNK1181: не удается открыть входной файл "aio.lib"
test.c
LINK : fatal error LNK1181: не удается открыть входной файл "cufile.lib"
Install Ops={'async_io': False, 'fused_adam': 1, 'cpu_adam': 1, 'cpu_adagrad': 1, 'cpu_lion': 1, 'dc': False, 'evoformer_attn': False, 'fp_quantizer': False, 'fused_lamb': 1, 'fused_lion': 1, 'gds': False, 'transformer_inference': 1, 'inference_core_ops': 1, 'cutlass_ops': False, 'quantizer': 1, 'ragged_device_ops': False, 'ragged_ops': 1, 'random_ltd': 1, 'sparse_attn': False, 'spatial_inference': 1, 'transformer': 1, 'stochastic_transformer': 1}
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
main()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 210, in <module>
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] Не удается найти указанный файл
ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwindowsQuestions or PRs relating to running DeepSpeed on WindowsQuestions or PRs relating to running DeepSpeed on Windows
Activity
loadams commentedon May 19, 2025
@lokanaft - can you share your python version? And can you specify a DeepSpeed version, preferably 0.16.4 if you can since I've well tested that one.
prijkes commentedon Jun 29, 2025
I've got the same output.
Microsoft Visual Studio 2022 Community is installed, including the C++ components.
The following is the output when run from the x64 Native Tools Command Prompt for VS 2022:
Python version: 3.12.10
Installed pip packages:
pytorch is compiled with libuv.
CUDA version: v12.8
NVIDIA cuDSS: v0.6
NVIDIA cuSPARSELt: v0.7
NVIDIA CUDNN: v9.8
However, when running
python setup.pyfrom the regular command line, I get a different output:OK, I managed to compile it by disabling the following at the top of setup.py:
As mentioned here (not sure if it's still needed?)
Next, it tries to load git through bash, which won't work for windows. On line 210, I replaced it with:
HelloLittleJoey commentedon Nov 28, 2025
Thanks, following the progress.
Gate op compatibility on dskernels and ROCm support (deepspeedai#9150)