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

loss calculation #50

Open
sudongwang-upc opened this issue Apr 18, 2024 · 2 comments
Open

loss calculation #50

sudongwang-upc opened this issue Apr 18, 2024 · 2 comments

Comments

@sudongwang-upc
Copy link

The loss calculation during training uses the probability density function loss of all targets in context and predict, rather than just predict. Why?

@ashok-arjun
Copy link
Contributor

So, in all decoder-only models, the "predict" part actually makes no sense during training, as all the points are used for the loss. Note that this is for all decoder-only models such as GPT.

In the code, a context and predict are separately used to support inference for a certain specific prediction length, given a certain fixed length context.

@sudongwang-upc
Copy link
Author

So, in all decoder-only models, the "predict" part actually makes no sense during training, as all the points are used for the loss. Note that this is for all decoder-only models such as GPT.

In the code, a context and predict are separately used to support inference for a certain specific prediction length, given a certain fixed length context.

Thank you very much for your reply. I got it!

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

No branches or pull requests

2 participants