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

Tutel with pytorch automatic mixed precision package #138

Open
MiZhenxing opened this issue May 10, 2022 · 2 comments
Open

Tutel with pytorch automatic mixed precision package #138

MiZhenxing opened this issue May 10, 2022 · 2 comments
Labels
question Further information is requested

Comments

@MiZhenxing
Copy link

MiZhenxing commented May 10, 2022

Hi, thank you for your excellent package. I wonder whether tutel could be used seamless together with the automatic mixed precision package of PyTorch. If so, could you provide some hints on how to use it or provide an example python script?
Thank you very much!

@ghostplant ghostplant added the question Further information is requested label May 10, 2022
@ghostplant
Copy link
Contributor

Yes, Tutel is able to support native Pytorch AMP. Please follow this example: https://github.com/microsoft/tutel/blob/main/tutel/examples/helloworld_amp.py#L76

Note that you need to use @autocast() and with autocast: properly according to pytorch's doc.
Welcome to report problems if you encounter any issue.

@MiZhenxing
Copy link
Author

Thanks for your quick response. Sorry I didn't notice that example 🤣. I will do some testing on my code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants