-
Notifications
You must be signed in to change notification settings - Fork 370
fp16 support #377
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
Comments
Hi, I wonder whether opacus support fp16. In my experiment, I use the fp16 but get the error: File "/home/yxguo/anaconda3/envs/ditto/lib/python3.7/site-packages/apex/amp/handle.py", line 110, in scale_loss |
Hi This issue is created to track progress of adding the support. As of today it's not something planned for the near future (but we always welcome external pull requests) |
Hi. Any roadmap for this yet? This seems to be the main bottleneck, now that you have the "ghost clipping" in place. |
Hi @alidadsetan we are enabling support for mixed and fully low precision training with Opacus within the next two weeks. Please see this in progress PR: #764 |
(possibly with autocast and loss scaling, but in our experience with Alex this may result in training instabilities). On the other hand, it reduces memory usage and increases speed (roughly a factor 2 for both).
The text was updated successfully, but these errors were encountered: