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

Support torch.compile #5009

Open
2 of 4 tasks
tohtana opened this issue Jan 25, 2024 · 4 comments
Open
2 of 4 tasks

Support torch.compile #5009

tohtana opened this issue Jan 25, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@tohtana
Copy link
Contributor

tohtana commented Jan 25, 2024

This issue aims to track the progress, bugs, and requests regarding the support of torch.compile.
@tjruwase

Tasks

PRs

Issues

@tohtana tohtana added the enhancement New feature or request label Jan 25, 2024
@tohtana tohtana self-assigned this Jan 25, 2024
@tjruwase
Copy link
Contributor

Thanks @tohtana!
@stas00, FYI

@zaptrem
Copy link

zaptrem commented Feb 11, 2024

Hello, quick related question to #4878 : We can only compile certain parts of our model so just compiling the whole thing as the new option does wouldn't work. Is there a path for this sort of model?

@tohtana
Copy link
Contributor Author

tohtana commented Feb 11, 2024

Hi @zaptrem, thank you for your question!

You can pass a function to compile the model with set_compiler_fn. I think you can define a function that compiles only the necessary part of the model and pass it to this API.

You'll find an example of the API usage here:
https://github.com/microsoft/DeepSpeed/blob/master/tests/unit/runtime/compile/test_load_config.py

@BramVanroy
Copy link
Contributor

Is still actively being worked on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants