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

Update score.py #50

Merged
merged 1 commit into from
May 13, 2020
Merged

Update score.py #50

merged 1 commit into from
May 13, 2020

Conversation

praveenjune17
Copy link
Contributor

I experienced CUDA out of memory issues when using BERT-score in the validation step, the reason being that there was not enough GPU memory available for loading the BERT-multilingual pretrained model during validation. Since we only use the embeddings of the pretrained model in eval() mode for score calculation it would do no harm in assigning device to 'cpu'.

@Tiiiger
Copy link
Owner

Tiiiger commented May 13, 2020

looks good to me!

@Tiiiger Tiiiger merged commit a1cd76a into Tiiiger:master May 13, 2020
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

Successfully merging this pull request may close these issues.

2 participants