Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [Win] Installation from source fails for transformer_inference_op #1631

Closed
lostmsu opened this issue Dec 10, 2021 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@lostmsu
Copy link
Contributor

lostmsu commented Dec 10, 2021

Describe the bug
I am attempting to install DeepSpeed from cloned code in editable mode and the build fails with these lines present in the output:

LINK : fatal error LNK1181: cannot open input file 'aio.lib'

and

error: could not create 'deepspeed\ops\transformer_inference\transformer_inference_op.cp39-win_amd64.pyd': No such file or directory

The first one happens despite DS_BUILD_AIO=1

Full log: inst.log

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo
  2. Enter Python environment, that has torch installed
  3. cd to the repo, and run pip install -e .
  4. See error above

Expected behavior
Build should succeed.

ds_report output
N/A

System info (please complete the following information):

  • OS: Windows 10
  • GPU count and types: irrelevant, but 2x3090
  • Interconnects (if applicable): N/A
  • Python version: Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32

WORKAROUND
Disabling transformer inference using DS_BUILD_TRANSFORMER_INFERENCE=0 does the trick.

@lostmsu lostmsu added the bug Something isn't working label Dec 10, 2021
@lostmsu lostmsu closed this as completed Dec 10, 2021
@lostmsu lostmsu reopened this Dec 10, 2021
@RezaYazdaniAminabadi
Copy link
Contributor

Hi @lostmsu

Thanks for looking into supporting inference through Windows.
I will look into this issue.

Best,
Reza

@lostmsu
Copy link
Contributor Author

lostmsu commented Dec 15, 2021

@RezaYazdaniAminabadi I actually did some investigation and it seems related to the location of C++ sources vs the structure of Python modules.

@jomayeri
Copy link
Contributor

jomayeri commented Sep 9, 2024

Please check out the latest version of DeepSpeed for Windows compatibility.

@jomayeri jomayeri closed this as completed Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants