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

Add default ignore index #1421

Merged
merged 2 commits into from
Aug 17, 2022
Merged

Conversation

moinnadeem
Copy link
Contributor

Adds a default ignore index value. This has been shown to be difficult to use by both external users and internal users.

Why -100? That is the default value used for BERT, as well as the value PyTorch uses for ignore_index internally.

Copy link
Contributor

@codestar12 codestar12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Very helpful to have this default.

@moinnadeem moinnadeem enabled auto-merge (squash) August 17, 2022 22:02
Copy link
Contributor

@alextrott16 alextrott16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@moinnadeem moinnadeem merged commit 90778f9 into mosaicml:dev Aug 17, 2022
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.

4 participants