ModelScope调整后原先报错没有了,现在有新的报错,RuntimeError: Cowardly refusing to serialize non-leaf tensor which requires_grad, since autograd does not support crossing process boundaries. If you just want to transfer the data, call detach() on the tensor before serializing (e.g., putting it on the queue).
Traceback (most recent call last): ...
EOFError: Ran out of input?
您的本地数据集和模型卡片示例中的数据集有差别吗,我这修改后模型卡片的训练代码可以跑,此回答整理自钉群“魔搭ModelScope开发者联盟群 ①”