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

请问如何取消T5模型生成的开始标记? #66

Open
estuday opened this issue Jun 9, 2023 · 1 comment
Open

请问如何取消T5模型生成的开始标记? #66

estuday opened this issue Jun 9, 2023 · 1 comment

Comments

@estuday
Copy link

estuday commented Jun 9, 2023

在T5decoder的输出中,输出的logits是一个表示开始的special token。由于我的任务的特殊性,只需要生成一个toeken,所以这个开始标记会影响结果。所以我想知道,在T5中可不可以直接生成target token。

@renmada
Copy link
Owner

renmada commented Jun 12, 2023

可以自行修改tokenizer相关代码

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