Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update finetune.py#40

Open
work-space-account wants to merge 1 commit into
zai-org:mainzai-org/CogAgent:mainfrom
work-space-account:mainwork-space-account/CogAgent:mainCopy head branch name to clipboard
Open

Update finetune.py#40
work-space-account wants to merge 1 commit into
zai-org:mainzai-org/CogAgent:mainfrom
work-space-account:mainwork-space-account/CogAgent:mainCopy head branch name to clipboard

Conversation

@work-space-account

Copy link
Copy Markdown

原有代码逻辑,似乎会在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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.