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

请问推理的时候,instruction与input是按照如下方式拼接的吗? #3682

Closed
1 task done
ironlionliu opened this issue May 10, 2024 · 1 comment
Closed
1 task done
Labels
solved This problem has been already solved.

Comments

@ironlionliu
Copy link

Reminder

  • I have read the README and searched the existing issues.

Reproduction

在训练的时候提供的数据格式直接分成了instruction、input、output三部分,那么我在推理的时候,以llama3为例最佳的拼接方式是否如下:
instruction = '这是指令',
input = '这是input'
message = [
{
'role': 'user',
'content': f'''insturction: {instruction}\n input:{input}''',
}
]

Expected behavior

No response

System Info

No response

Others

No response

@codemayq
Copy link
Collaborator

是 {instruction}\n{input}

@codemayq codemayq added the solved This problem has been already solved. label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved.
Projects
None yet
Development

No branches or pull requests

2 participants