We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在reward_trainer.py这里,删除了lm_logits中最后一个token的概率分布,但是在下面的label里面是删除了第一个词,想问下这里是怎么对应的呢
The text was updated successfully, but these errors were encountered:
这是因为,logit是输出,而label or loss mask是输入。decoder架构(例如llama)预测next token,因此输入的token和输出的next token是对应关系。
Sorry, something went wrong.
No branches or pull requests
在reward_trainer.py这里,删除了lm_logits中最后一个token的概率分布,但是在下面的label里面是删除了第一个词,想问下这里是怎么对应的呢
The text was updated successfully, but these errors were encountered: