Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

assert trainer parameters #1004

Closed

Conversation

rutyrinott
Copy link
Contributor

Summary: if early_stop_after is set, but do eval is false, early_stop_after is silently ignored. Add an assert to make users aware of bad config

Reviewed By: hikushalhere

Differential Revision: D17580419

Michael Wu and others added 2 commits September 25, 2019 15:07
Summary:
Pull Request resolved: facebookresearch#979

D17241503 selects only masked tokens for the final logits / targets during MLM. This fails when there are no masked tokens (e.g. at the end of a file there can be a very short batch). In this case, select just the first token in the first batch.

BTW, the new masking strategy is faster (20%) than the old one - f138005051 vs f138005044.

Differential Revision: D17370855

fbshipit-source-id: 6c8dbd6346e8f8db029047171cb81f147dc70a43
Summary: if early_stop_after is set, but do eval is false, early_stop_after is silently ignored. Add an assert to make users aware of bad config

Reviewed By: hikushalhere

Differential Revision: D17580419

fbshipit-source-id: b03d68a98eab0428a0295cca68d5fe377ddb8129
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 25, 2019
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 400c80b.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants