ms-swift icon indicating copy to clipboard operation
ms-swift copied to clipboard

执行doc中的multi_turn的grpo训练脚本在NuminaMath-TIR训练时出现validation error

Open hlchen23 opened this issue 1 year ago • 2 comments

使用推理和训练分离式的方式进行训练,推理引擎推理了几个样本后,固定会出现这个报错 pydantic_core._pydantic_core.ValidationError: 1 validation error for RolloutOutput messages.2 Input should be a valid dictionary [type=dict_type, input_value="To solve this problem, w...\(\boxed{B}\) miles.", input_type=str] 如何调试

hlchen23 avatar Nov 05 '25 12:11 hlchen23

debug rollout https://github.com/modelscope/ms-swift/issues/6316

hjh0119 avatar Nov 05 '25 13:11 hjh0119

ms-swift/swift/plugin/multi_turn.py

Line 577 round_messages.append(assistant_no_think)

Change to: round_messages.append({'role': 'assistant', 'content': assistant_no_think})

This worked for me on qwen-vl-2.5-7B, as the round_messages requires a dict.

ning-mz avatar Dec 24 '25 06:12 ning-mz