-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
根据 #6238
Describe the bug
What the bug is, and how to reproduce, better with screenshots(描述bug以及复现过程,最好有截图)
自定义数据集的情况下batch-size超过1的时候报错
File "/app/ms-swift/swift/llm/template/template/deepseek.py", line 373, in _data_collator_mm_data
images_seq_mask = self.concat_tensor(batch, 'images_seq_mask', 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/ms-swift/swift/llm/template/base.py", line 1461, in concat_tensor
return torch.concat(res, dim=dim) if res else None
^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Sizes of tensors must match except in dimension 0. Expected size 299 but got size 292 for tensor number 1 in the list.
Your hardware and system info
Write your system info like CUDA version/system/GPU/torch version here(在这里给出硬件信息和系统信息,如CUDA版本,系统,GPU型号和torch版本等)
Additional context
Add any other context about the problem here(在这里补充其他信息)