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

A new training approach:RAFT #6689

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

A new training approach:RAFT #6689

wants to merge 3 commits into from

Conversation

yuhkalhic
Copy link

@yuhkalhic yuhkalhic commented Jan 17, 2025

What does this PR do?

作者你好,是否考虑添加一种新的训练方式,RAFT ?这是一种sft的变体,微调模型在检索增强时的能力,可提高模型在“开放”领域设置中回答问题的能力。

代码的实现是参考作者的版本https://github.com/ShishirPatil/gorilla/blob/main/raft/raft.py

在这种方法中,传入的数据集要求有正样本和负样本。然后利用参数num_distract和p的值最终得到prompt。

Before submitting

  • Did you read the contributor guideline?
    Yes, and I've met all the requirements
  • Did you write any new necessary tests?
    Yes, here: LLaMA-Factory/data/raft_demo.json

@hiyouga hiyouga added the pending This problem is yet to be addressed label Jan 17, 2025
@hiyouga hiyouga self-requested a review January 17, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending This problem is yet to be addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants