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 improve training performance with Apex package #1838

Open
tjk9501 opened this issue Aug 31, 2024 · 0 comments
Open

How to improve training performance with Apex package #1838

tjk9501 opened this issue Aug 31, 2024 · 0 comments

Comments

@tjk9501
Copy link

tjk9501 commented Aug 31, 2024

Hello!

I am using Apex package for speeding up training of my CNN model, I compare the performance between using traditional Adam algorithm and using Apex O1 optimization technique with the following code:

optimizer = optim.Adam(model.parameters(), lr = 1e-2)
model, optimizer = amp.initialize(model, optimizer, opt_level = 'O1')

The training process is speed up 3-4 times visibly compared with traditional Adam algorithm. But when I check the training model, I find it turns out performance of model trained with Apex in testing sets is degraded compared with just using Adam. Are there any solutions? Because I want to speed up training process and obtain good performances on testing datasets.

Thank you!

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

1 participant