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

[FEATURE-REQUEST] Switch to AMP precision #90

Open
AJDERS opened this issue Dec 5, 2022 · 1 comment
Open

[FEATURE-REQUEST] Switch to AMP precision #90

AJDERS opened this issue Dec 5, 2022 · 1 comment
Labels
enhancement New feature or request good-first-issue Issues which are good for new contributors
Milestone

Comments

@AJDERS
Copy link
Collaborator

AJDERS commented Dec 5, 2022

Switching to AMP precision promises huge speed-ups for both training and inference, and can be done easily with pytorch.

Just doing something like:

with torch.autocast():
   output = model(input)
   loss = loss_fn(output, target)

Can lead to speed-ups of 50%-150%.

@AJDERS AJDERS added the enhancement New feature or request label Dec 5, 2022
@AJDERS
Copy link
Collaborator Author

AJDERS commented Dec 5, 2022

Forgot to mention: At the cost of almost no performance drop.

@AJDERS AJDERS added this to the v0.2.0 milestone Feb 24, 2023
@AJDERS AJDERS added the good-first-issue Issues which are good for new contributors label Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good-first-issue Issues which are good for new contributors
Projects
None yet
Development

No branches or pull requests

1 participant