Skip to content

remove UtilsBuilder load, use torch (un)flatten ops#3728

Merged
jeffra merged 7 commits intodeepspeedai:masterfrom
inkcherry:rm_util
Jun 14, 2023
Merged

remove UtilsBuilder load, use torch (un)flatten ops#3728
jeffra merged 7 commits intodeepspeedai:masterfrom
inkcherry:rm_util

Conversation

@inkcherry
Copy link
Copy Markdown
Contributor

Torch (un)flatten currently has no performance issues, we have tested it on the CUDA device. Skip compiling unnecessary util.

It will not depend on the deepspeed compile process for many training processes. This may also be friendly to other device integration.

@jeffra
Copy link
Copy Markdown
Collaborator

jeffra commented Jun 14, 2023

Thank you @inkcherry! This is a great reminder, I see that torch has updated their (un)flatten implementations pytorch/pytorch#58006. I also did a benchmark just now and see no difference between versions.

I've pushed a commit to remove op_builder/utils.py all together since it shouldn't be used anymore.

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.

3 participants