-
Notifications
You must be signed in to change notification settings - Fork 29
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
cuda out of memory #10
Comments
@wlhgtc Thank you for your report. I am not sure about this. But |
@jojonki Thanks for your reply. I debug my code the whole day. I test my model layer by layer(I comment out the backward step and optimizer step). The "out of memory error" occur when I compute the matrix S(S=W[H,U,HºU] ) with the batch size 60(according to the paper) . But I find you config is 20. The model goes well in 30 size. |
Is the memory increasing in your case? Mine runs out of memory in the middle of training.
|
@Vimos There are some sentences with lenth>500. You'd better set them with a fixed length(for me 300) |
@wlhgtc Thanks for the advice. |
If the memory keeps steady, it's fine. It's a large model. |
Thanks for your code, it helps me a lot. And I try to write on my own but I meet some questions.
When I rewrite the loss function as follows:
`class Custom_Loss(nn.Module):
def init(self):
super(Custom_Loss, self).init()
I meet the error: cuda out of memory, I check my code and could not find the reason, can you help me?
The text was updated successfully, but these errors were encountered: