-
Notifications
You must be signed in to change notification settings - Fork 28
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
The masks are all equal to 1 #13
Comments
Ah, yes it seems so. The problem arose from re-using the
|
Sean, can you comment on which cases this will affect, and if effectiveness will be markedly affected? |
This effects cases in which the batch is larger than 1. With the default settings, this is the case for training (gradient accumulation batch size of 2) and evaluation (batch size of 16). It will have the most effect when document lengths differ considerably (i.e., a very short document in a batch with a long document). As far as the effectiveness goes, I will need to run some experiments to test this. Since only padding tokens are masked, I imagine that the models should learn to ignore these tokens. But the only way to know with certainty is to verify it empirically. |
in data.py, line 148.
This code causes the masks to be all equal to 1.0 ? Is there a problem here?
The text was updated successfully, but these errors were encountered: