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

llama2模板有问题 #55

Open
li-aolong opened this issue Jun 1, 2024 · 0 comments
Open

llama2模板有问题 #55

li-aolong opened this issue Jun 1, 2024 · 0 comments

Comments

@li-aolong
Copy link

li-aolong commented Jun 1, 2024

teval/utils/meta_template.py

  1. 模板的结束符错了:[\INST] --> [/INST]
  2. llama2的模板转换成str后也缺少空格,比如应该是[INST] user_content_1 [/INST] assistant_content_1 </s><s>[INST] user_content_2 [/INST],打印出来都是[INST]user_content_1[/INST]assistant_content_1</s><s>[INST] user_content_2[/INST]
  3. 第一轮结束和第二轮开始中间还应该有<s>,如上,打印出来也是缺失的
@li-aolong li-aolong changed the title llama2模板的结束符错了[\INST] --> [/INST] llama2模板有问题 Jun 1, 2024
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