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

Shifting labels to enable learning next token prediction #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LiorZ
Copy link
Contributor

@LiorZ LiorZ commented Apr 10, 2023

Dear lucidrains,
Many thanks for your amazing contribution to the community.
In the following pull request I modified the code so that the labels to the right during training before calculating the loss to enable next-token prediction (otherwise, the loss is calculated for the token, which leads to learning the trivial, current token)

L

@LiorZ LiorZ changed the title Shifting labels one place to the right to enable learning next token prediction Shifting labels to enable learning next token prediction Apr 10, 2023
@lucidrains
Copy link
Owner

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