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

Support automatic-mixed-precision (AMP) #241

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

csukuangfj
Copy link
Collaborator

No description provided.

@yuekaizhang
Copy link
Collaborator

yuekaizhang commented Jan 12, 2023

Hi, I was wondering if this PR is ready to test or not. I'd like checkout to csukuangfj:mixed-precision-2022-12-07 do a test.

@csukuangfj
Copy link
Collaborator Author

Hi, I was wondering if this PR is ready to test or not.

I have tested it locally but it does not seem to improve the speed, so it is still left to open.

@yuekaizhang
Copy link
Collaborator

Hi, I was wondering if this PR is ready to test or not.

I have tested it locally but it does not seem to improve the speed, so it is still left to open.

I see. Did you try to use model.half() then export using libtorch? I think it should be pure fp16 mode.

@csukuangfj
Copy link
Collaborator Author

Hi, I was wondering if this PR is ready to test or not.

I have tested it locally but it does not seem to improve the speed, so it is still left to open.

I see. Did you try to use model.half() then export using libtorch? I think it should be pure fp16 mode.

No, not yet. I have not tried this approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants