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

运行复现代码,为什么报错? #13

Open
dignfei opened this issue Jun 15, 2024 · 5 comments
Open

运行复现代码,为什么报错? #13

dignfei opened this issue Jun 15, 2024 · 5 comments

Comments

@dignfei
Copy link

dignfei commented Jun 15, 2024

image

数据格式明显是错的

image

"dpo_mix_en": {
"hf_hub_url": "hiyouga/DPO-En-Zh-20k",
"subset": "en",
"ranking": true,
"formatting": "sharegpt",
"columns": {
"messages": "conversations",
"chosen": "chosen",
"rejected": "rejected"
}
},
"dpo_mix_zh": {
"hf_hub_url": "hiyouga/DPO-En-Zh-20k",
"subset": "zh",
"ranking": true,
"formatting": "sharegpt",
"columns": {
"messages": "conversations",
"chosen": "chosen",
"rejected": "rejected"
}
},

@dignfei
Copy link
Author

dignfei commented Jun 15, 2024

数据的格式,和 dataset_info.json 中设置的格式不一样

@hiyouga
Copy link
Collaborator

hiyouga commented Jun 15, 2024

你的代码没有更新到最新

@dignfei dignfei changed the title 运行复现代码,为什么报错? 运行复现代码,为什么报错?复现代码是否乱写的 Jun 15, 2024
@dignfei
Copy link
Author

dignfei commented Jun 15, 2024

你的代码没有更新到最新

我更新到了复现代码中指定的版本
git clone https://github.com/hiyouga/LLaMA-Factory.git
git reset --hard 25aeaae51b6d08a747e222bbcb27e75c4d56a856
没有用最新版,因为最新版不支持orpo参数
image

@dignfei dignfei changed the title 运行复现代码,为什么报错?复现代码是否乱写的 运行复现代码,为什么报错? Jun 15, 2024
@dignfei
Copy link
Author

dignfei commented Jun 15, 2024

image

@dignfei
Copy link
Author

dignfei commented Jun 15, 2024

[rank4]: ValueError: Some specified arguments are not used by the HfArgumentParser: ['--pref_loss:', 'orpo', '--orpo_beta', '0.05']

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

No branches or pull requests

2 participants