Skip to content

Conversation

@jinzhen-lin
Copy link
Contributor

Deepspeed have too many ops now, and it take too many time to pre-build all ops.
I notice deepspeed disabled ninja 4 years ago (#298) and I think we should consider enable it now.
The issue mentioned in #298 can be solved by resolving include_dirs to absolute path.

@jinzhen-lin
Copy link
Contributor Author

Accidentally closed PR, reopen it.

@jinzhen-lin jinzhen-lin reopened this Feb 12, 2024
Copy link
Contributor

@mrwyattii mrwyattii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jinzhen-lin this is a great improvement in compile time for all the ops (~18 min --> ~10 min)!

@tjruwase
Copy link
Contributor

@jinzhen-lin, thanks for improving the PR. Can you please resolve the formatting issues?
https://github.com/microsoft/DeepSpeed/blob/master/CONTRIBUTING.md#prerequisites

@jinzhen-lin
Copy link
Contributor Author

@jinzhen-lin, thanks for improving the PR. Can you please resolve the formatting issues? https://github.com/microsoft/DeepSpeed/blob/master/CONTRIBUTING.md#prerequisites

Done.

@tjruwase
Copy link
Contributor

Done.

Thanks! Please note that we are investigating the following CI failure, which is unrelated to your PR.
image

@loadams
Copy link
Collaborator

loadams commented Feb 20, 2024

Done.

Thanks! Please note that we are investigating the following CI failure, which is unrelated to your PR. image

This should be resolved now.

Thanks @jinzhen-lin - this speeds up our nv-pre-compile-ops builds by roughly 2x.

@loadams loadams changed the title use ninja to speed up build Use ninja to speed up build Feb 20, 2024
@tjruwase tjruwase added this pull request to the merge queue Feb 21, 2024
Merged via the queue into deepspeedai:master with commit b00533e Feb 21, 2024
mrwyattii added a commit that referenced this pull request Feb 26, 2024
#5192 reports an issue with the latest DeepSpeed release (0.13.3)
related to pre-compilation and the recently re-enabled `ninja` support
in #5088. Reverting to disabling `ninja` by default, but users can still
enable it with `DS_ENABLE_NINJA=1` until we can further debug to
understand the problem.
ShellyNR pushed a commit to ShellyNR/DeepSpeed that referenced this pull request Mar 11, 2024
Deepspeed have too many ops now, and it take too many time to pre-build
all ops.
I notice deepspeed disabled `ninja` 4 years ago
(deepspeedai#298) and I think we should
consider enable it now.
The issue mentioned in deepspeedai#298
can be solved by resolving `include_dirs` to absolute path.

---------

Co-authored-by: Logan Adams <114770087+loadams@users.noreply.github.com>
Co-authored-by: Logan Adams <loadams@microsoft.com>
Co-authored-by: Olatunji Ruwase <olruwase@microsoft.com>
Co-authored-by: Michael Wyatt <michaelwyatt@microsoft.com>
ShellyNR pushed a commit to ShellyNR/DeepSpeed that referenced this pull request Mar 11, 2024
deepspeedai#5192 reports an issue with the latest DeepSpeed release (0.13.3)
related to pre-compilation and the recently re-enabled `ninja` support
in deepspeedai#5088. Reverting to disabling `ninja` by default, but users can still
enable it with `DS_ENABLE_NINJA=1` until we can further debug to
understand the problem.
@jeffra jeffra mentioned this pull request Mar 29, 2024
rraminen pushed a commit to ROCm/DeepSpeed that referenced this pull request May 9, 2024
Deepspeed have too many ops now, and it take too many time to pre-build
all ops.
I notice deepspeed disabled `ninja` 4 years ago
(deepspeedai#298) and I think we should
consider enable it now.
The issue mentioned in deepspeedai#298
can be solved by resolving `include_dirs` to absolute path.

---------

Co-authored-by: Logan Adams <114770087+loadams@users.noreply.github.com>
Co-authored-by: Logan Adams <loadams@microsoft.com>
Co-authored-by: Olatunji Ruwase <olruwase@microsoft.com>
Co-authored-by: Michael Wyatt <michaelwyatt@microsoft.com>
rraminen pushed a commit to ROCm/DeepSpeed that referenced this pull request May 9, 2024
deepspeedai#5192 reports an issue with the latest DeepSpeed release (0.13.3)
related to pre-compilation and the recently re-enabled `ninja` support
in deepspeedai#5088. Reverting to disabling `ninja` by default, but users can still
enable it with `DS_ENABLE_NINJA=1` until we can further debug to
understand the problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants