-
Notifications
You must be signed in to change notification settings - Fork 110
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
post train without fp16 #22
Comments
the memory consumption is impractical if not use fp16. sorry, the code is
not well tested on fp32. make sure gpu is volta or ampire or rtx.
On Wed, Aug 25, 2021 at 8:27 PM WeitingGG ***@***.***> wrote:
Thanks for your work!
I tried to post train the Bert base model using my own data. I encountered
some problem when using fp16 (CUDA error: invalid configuration argument),
so I tried to train without fp16. However, by doing so, the batch loss are
all nan. Do you have any idea about this problem, is it because I didn't
use fp16? Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#22>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACRK374BNP4YP4KHXO2ALS3T6WYDHANCNFSM5C2NNBDQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
--
Homepage: https://howardhsu.github.io/
Linkedin: https://www.linkedin.com/in/hu-xu-9852403b/
Google Scholar: https://scholar.google.com/citations?user=SaH2yWMAAAAJ
Twitter: https://twitter.com/Hu_Hsu
Email: ***@***.***
|
Thanks for your reply! |
it’s recommended to plug-in a standard trainer hugging face or pytorch
lightning. fp32 are not well tested and some fp16 feature may not be fully
disabled.
On Thu, Aug 26, 2021 at 12:08 PM WeitingGG ***@***.***> wrote:
Thanks for your reply!
I noticed that you mentioned "It is possible to avoid use GPUs that do not
support apex (e.g., 1080 Ti), but need to adjust the max sequence length
and number of gradient accumulation but (although the result can be
better)." in the instruction.
I directly set fp16==False to avoid using apex, but as I said, the batch
loss are all nan. It doesn't seem the correct way to do it.
I wonder how to change the code to avoid use GPUs that do not support apex
correctly? Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACRK377IMRZ7NXGAQAUWTH3T62GLJANCNFSM5C2NNBDQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Homepage: https://howardhsu.github.io/
Linkedin: https://www.linkedin.com/in/hu-xu-9852403b/
Google Scholar: https://scholar.google.com/citations?user=SaH2yWMAAAAJ
Twitter: https://twitter.com/Hu_Hsu
Email: ***@***.***
|
Thanks for your work!
I tried to post train the Bert base model using my own data. I encountered some problem when using fp16 (CUDA error: invalid configuration argument), so I tried to train without fp16. However, by doing so, the batch loss are all nan. Do you have any idea about this problem, is it because I didn't use fp16? Thank you!
The text was updated successfully, but these errors were encountered: