-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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] RuntimeError: Error building extension 'utils' (ninja
related?)
#2187
Comments
Hi @josephrocca, thanks for using DeepSpeed. Could you try pre-compiling and let me know the outcome? To do so:
|
Hi @mrwyattii, I tried both the |
Solution? |
This looks to have been pybind11 related, if you are still having issues with this, please re-open. |
sudo apt install python3-pybind11 |
windows上,我在这里https://pypi.org/project/deepspeed/#files 下载了对应的包,解压之后直接放在虚拟环境里可以成功 |
Describe the bug
As shown in this notebook, I run these commands:
This is exactly following the instructions in the readme of DeepSpeedExamples/tree/master/model_compression/gpt2 except that I had to install ninja because the machine didn't have it yet.
And after some progress, the
run_zero_quant.sh
script throwsRuntimeError: Error building extension 'utils'
(please see the notebook for full logs).To Reproduce
Steps to reproduce the behavior:
Expected behavior
There is a related issue here:
The apparent solution there was to ensure that the deepspeed wheel was built with the same cuda version as the machine has installed. But the
ds_report
shows that the versions match. So I guess the "expected behavior" here is that it shouldn't throw the error that I'm seeing.ds_report output
As seen in the above-linked notebook:
System info (please complete the following information):
The text was updated successfully, but these errors were encountered: