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

[fix bug]The 'input' field is optional #7343

Closed
wants to merge 1 commit into from

Conversation

duhanmin
Copy link

The 'input' field is optional. Omitting it in the JSON will cause training errors.
https://llamafactory.readthedocs.io/zh-cn/latest/getting_started/data_preparation.html

The 'input' field is optional. Omitting it in the JSON will cause training errors. https://llamafactory.readthedocs.io/zh-cn/latest/getting_started/data_preparation.html
@hiyouga
Copy link
Owner

hiyouga commented Mar 17, 2025

If you do not provide input in json, you need remove input from the columns in dataset_info, like

"openo1_sft": {
"hf_hub_url": "llamafactory/OpenO1-SFT",
"ms_hub_url": "llamafactory/OpenO1-SFT",
"columns": {
"prompt": "prompt",
"response": "response"
}
},

@duhanmin
Copy link
Author

duhanmin commented Mar 20, 2025

如果你没有input在 json 中提供,则需要input从 dataset_info 中的列中删除,例如

"openo1_sft": {
"hf_hub_url": "llamafactory/OpenO1-SFT",
"ms_hub_url": "llamafactory/OpenO1-SFT",
"columns": {
"prompt": "prompt",
"response": "response"
}
},

There is no 'input' field in my dataset_info
If there is no 'input' in the custom dataset, an error will be reported. You must add 'input="" '

@hiyouga hiyouga closed this Mar 25, 2025
@hiyouga hiyouga added the wontfix This will not be worked on label Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants