ms-swift
ms-swift copied to clipboard
执行doc中的multi_turn的grpo训练脚本在NuminaMath-TIR训练时出现validation error
使用推理和训练分离式的方式进行训练,推理引擎推理了几个样本后,固定会出现这个报错 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] 如何调试
debug rollout https://github.com/modelscope/ms-swift/issues/6316
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.