Skip to content

Update finetune.py #40

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

work-space-account
Copy link

原有代码逻辑,似乎会在process_batch_eval这一步中将一轮对话中role为user和assistant拆成两轮,后续计算label_token和pred_token的rouge分数的时候,user文本和模型和当前文本预测输出文本做相似度,在compute_metrics里面用奇偶分开读取batched_pred_ids和batched_pred_ids

原有代码逻辑,似乎会在process_batch_eval这一步中将一轮对话中role为user和assistant拆成两轮,后续计算label_token和pred_token的rouge分数的时候,user文本和模型和当前文本预测输出文本做相似度,在compute_metrics里面用奇偶分开读取batched_pred_ids和batched_pred_ids
@sixsixcoder
Copy link
Collaborator

该问题已经在这个commit中合并 #39

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