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

请教一个问题,data_collator中不需要实现attention mask么? #256

Closed
annw0922 opened this issue Jun 30, 2023 · 2 comments
Closed

Comments

@annw0922
Copy link

如果没有attention mask,训练时不就可以直接看到后面的句子了么?

@zzy347964399
Copy link

同蹲一个回复

@mymusise
Copy link
Owner

GLM内部会对Input检查并加上,所以attention mask 和 position id 可以不丢给trainer

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

3 participants