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

How to use Apex to make subnetwork using FP16 and another subnetwork using FP32?? #1234

Closed
youngfly11 opened this issue Nov 26, 2021 · 2 comments

Comments

@youngfly11
Copy link

No description provided.

@ptrblck
Copy link
Contributor

ptrblck commented Aug 3, 2022

apex.amp is deprecated and you should use the native implementation via torch.cuda.amp as described here

@ptrblck ptrblck closed this as completed Aug 3, 2022
@youngfly11
Copy link
Author

apex.amp is deprecated and you should use the native implementation via torch.cuda.amp as described here

Hi, ptrblck;

Thanks for your response. Using native torch.cuda.amp is a good choice. But there is another question that:

Does the current native amp in PyTorch support gradient checkpointing and mixed precision training at the same time?

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

No branches or pull requests

2 participants