CogAgent
CogAgent copied to clipboard
Update finetune.py
原有代码逻辑,似乎会在process_batch_eval这一步中将一轮对话中role为user和assistant拆成两轮,后续计算label_token和pred_token的rouge分数的时候,user文本和模型和当前文本预测输出文本做相似度,在compute_metrics里面用奇偶分开读取batched_pred_ids和batched_pred_ids
该问题已经在这个commit中合并 https://github.com/THUDM/CogAgent/pull/39