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

Training problem with family token (y_type) #12

Open
yen52205 opened this issue Jul 23, 2022 · 0 comments
Open

Training problem with family token (y_type) #12

yen52205 opened this issue Jul 23, 2022 · 0 comments

Comments

@yen52205
Copy link

Hi,
when I used your training code, I found there was something I didn't understand during model forwarding.
During training process, the model firstly predicts the family token (y_type), and then predicts other kind of tokens.
In the code below, it shows that you directly use ground truth family token to predict other kind of tokens.
image

But in the generate process, you use the family predicts earlier to predict other kind of tokens.
I'm wondering why you choose the way to train and inference?
And if this is possible to cause the inconsistence between training and inference?

thanks for anyone who could help me figure out this!!

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

1 participant