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

Train the last turing conversation. #4878

Merged
merged 1 commit into from
Jul 18, 2024
Merged

Train the last turing conversation. #4878

merged 1 commit into from
Jul 18, 2024

Conversation

aofengdaxia
Copy link
Contributor

@aofengdaxia aofengdaxia commented Jul 18, 2024

What does this PR do?

When using RAG, we typically need to attach the retrieved content to the system role's prompt. This causes the system prompt to frequently change, so training only the last turn of the conversation helps to fine-tune RAG's capabilities.

I add a mode to only fine-turning the last turn conversation.

Fix #4684

Before submitting

Copy link
Owner

@hiyouga hiyouga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hiyouga hiyouga merged commit 2516763 into hiyouga:main Jul 18, 2024
1 check passed
hiyouga added a commit that referenced this pull request Jul 18, 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

Successfully merging this pull request may close these issues.

疑问:历史消息在训练时可以只作为上文不参与模型的预测吗?~
2 participants