[求助帖】在平台上xtuner遇到报错 #584

Open
opened 2025-02-25 11:09:28 +08:00 by 12657936948cs · 2 comments

报错如下,我看报错是key的错,可是我把可以都改成instruction、input、output格式了呀,试了一下其他数据集是可以正常微调的,我感觉是我的数据集改的有问题,我看数据集格式和输出的数量是正确的,我使用的修改数据集格式的代码如图4,请问大家有什么解决办法吗?谢谢!

报错如下,我看报错是key的错,可是我把可以都改成instruction、input、output格式了呀,试了一下其他数据集是可以正常微调的,我感觉是我的数据集改的有问题,我看数据集格式和输出的数量是正确的,我使用的修改数据集格式的代码如图4,请问大家有什么解决办法吗?谢谢!
12657936948cs changed title from 在平台上xtuner遇到报错 to [求助帖】在平台上xtuner遇到报错 2025-02-25 15:33:45 +08:00

可能是你的数据集修改的代码和训练使用的数据集格式不一致,报错说数据集的例子里面没有"messages",可能你的数据集代码构造没有构造messages。

可能是你的数据集修改的代码和训练使用的数据集格式不一致,报错说数据集的例子里面没有"messages",可能你的数据集代码构造没有构造messages。
Author

训练拉起来了,主要就是要修改dataset_map_fn=alpaca_map_fn,然后记得from xtuner.dataset.map_fns import alpaca_map_fn,希望有用

训练拉起来了,主要就是要修改dataset_map_fn=alpaca_map_fn,然后记得from xtuner.dataset.map_fns import alpaca_map_fn,希望有用
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HswOAuth/llm_course#584
No description provided.