qwen2.5 omni TypeError: 'NoneType' object is not iterable
line 5806, in caching_allocator_warmup [rank1]: re.compile("|".join([re.escape(plan) for plan in model._tp_plan])) [rank1]: TypeError: 'NoneType' object is not iterable
-> tp_plan_regex = None
the same problem
the same problem
Please modify the code of Transformers.
https://github.com/huggingface/transformers/pull/36677
大佬你跑起来了吗,解决了这个问题,sft时又遇见了: [rank0]: RuntimeError: shape mismatch: value tensor of shape [3, 70] cannot be broadcast to indexing result of shape [3, 54]
大佬你跑起来了吗,解决了这个问题,sft时又遇见了: [rank0]: RuntimeError: shape mismatch: value tensor of shape [3, 70] cannot be broadcast to indexing result of shape [3, 54]
我遇到了同样的问题,你解决了么?shape mismatch
大佬你跑起来了吗,解决了这个问题,sft时又遇见了: [rank0]: RuntimeError: shape mismatch: value tensor of shape [3, 70] cannot be broadcast to indexing result of shape [3, 54]
我遇到了同样的问题,你解决了么?shape mismatch
还没,等一等稳定方案吧
大佬你跑起来了吗,解决了这个问题,sft时又遇见了: [rank0]: RuntimeError: shape mismatch: value tensor of shape [3, 70] cannot be broadcast to indexing result of shape [3, 54]
我遇到了同样的问题,你解决了么?shape mismatch
还没,等一等稳定方案吧
https://github.com/Gaiejj/align-anything/tree/dev-omni#
大佬你跑起来了吗,解决了这个问题,sft时又遇见了: [rank0]: RuntimeError: shape mismatch: value tensor of shape [3, 70] cannot be broadcast to indexing result of shape [3, 54]
我遇到了同样的问题,你解决了么?shape mismatch
还没,等一等稳定方案吧
一样遇到了mismatch问题,https://github.com/modelscope/ms-swift/pull/3613。 当我切换到torch_run,则出现了[rank1]: re.compile("|".join([re.escape(plan) for plan in model._tp_plan])) [rank1]: TypeError: 'NoneType' object is not iterable
看起来是对应transformers的代码更新了,稍等
我按照https://github.com/huggingface/transformers/pull/36677 修改后,任然存在这个问题:
[rank1]: re.compile("|".join([re.escape(plan) for plan in model._tp_plan])) [rank1]: TypeError: 'NoneType' object is not iterable
大佬你跑起来了吗,解决了这个问题,sft时又遇见了: [rank0]: RuntimeError: shape mismatch: value tensor of shape [3, 70] cannot be broadcast to indexing result of shape [3, 54]
我遇到了同样的问题,你解决了么?shape mismatch
Fixed. Please try again.
how can i fix this issue. I think this problem might stem from a mismatch in the transformers version between your environment and qwen2.5Omni(git+https://github.com/huggingface/transformers@f742a644ca32e65758c3adb36225aef1731bd2a8)
how can i fix this issue. I think this problem might stem from a mismatch in the transformers version between your environment and qwen2.5Omni(git+https://github.com/huggingface/transformers@f742a644ca32e65758c3adb36225aef1731bd2a8)
Fixed. Please try again.
![]()
how can i fix this issue. I think this problem might stem from a mismatch in the transformers version between your environment and qwen2.5Omni(git+https://github.com/huggingface/transformers@f742a644ca32e65758c3adb36225aef1731bd2a8)
Fixed. Please try again.
感谢即时的fix bug。我现在能够使用single gpu正常训练!!
但在参考examples/train/multi-node, 尝试使用 accelerate, torchrun, swift, deepspeed 启动multi node 脚本时会存在issue: [rank1]: re.compile("|".join([re.escape(plan) for plan in model._tp_plan])) [rank1]: TypeError: 'NoneType' object is not iterable
我通过如上的dirt fix解决了多机多卡训练存在的报错
I solved this problem by using the following transfomers version
pip install git+https://github.com/Kuangdd01/transformers.git@qwen25omni
GPTQ quantization demo: https://github.com/modelscope/ms-swift/blob/main/examples/export/quantize/omni/gptq.sh
GRPO training demo: https://github.com/modelscope/ms-swift/tree/main/examples/train/grpo/qwen2_5_omni
pip uninstall transformers
pip install git+https://github.com/huggingface/transformers@f742a644ca32e65758c3adb36225aef1731bd2a8
pip install accelerate
And modify the code in Transformers.
tp_plan_regex = None