-
Notifications
You must be signed in to change notification settings - Fork 7
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
OutOfMemoryError while training the cross-encoder #22
Comments
Hello! The cross-encoder is indeed quite memory intensive (I tested everything with 48GB GPU memory). Two things that might work:
|
Another thing that might work (though I have not tested the performance), would be to use a smaller BERT model, i.e.,
|
Hi,
Thanks in advance |
There are multiple steps at which you can reduce the number of candidates. However, if you follow this notebook (https://github.com/hpi-dhc/xmen/blob/main/examples/02_BRONCO.ipynb), then setting Note: I assume that this will cost you a bit of recall@1, but it might actually increase precision. To get precision, recall and F1 scores at the end, use |
Thanks a lot! I don't get that error now. |
Thank you for pointing this issue out, I have linked this thread in the README |
When i try to train the cross encoder on the BRONCO dataset for prediciting the ICD code for the diagnoses entities. I get this error:
I tried running this line and it does not seem to work. Also there are not any other processes running on the GPU.
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: