Hello, when I change the code as README using Qwen2.5-VL fine-tuning code (https://github.com/QwenLM/Qwen2.5-VL/tree/main/qwen-vl-finetune), I encountered this problem:
img_mask[first:last+1] = ~select_mask
[rank5]: RuntimeError: The expanded size of the tensor (657) must match the existing size (655) at non-singleton dimension 0.
Target sizes: [657]. Tensor sizes: [655]
After I fix this, I encountered another problem as:
attention_mask = attention_mask[:, img_mask]
[rank0]: IndexError: too many indices for tensor of dimension 1
Could you please tell me how to fix these bugs or how to avoid? thank u so much!!
Hello, when I change the code as README using Qwen2.5-VL fine-tuning code (https://github.com/QwenLM/Qwen2.5-VL/tree/main/qwen-vl-finetune), I encountered this problem:
img_mask[first:last+1] = ~select_mask
[rank5]: RuntimeError: The expanded size of the tensor (657) must match the existing size (655) at non-singleton dimension 0.
Target sizes: [657]. Tensor sizes: [655]
After I fix this, I encountered another problem as:
attention_mask = attention_mask[:, img_mask]
[rank0]: IndexError: too many indices for tensor of dimension 1
Could you please tell me how to fix these bugs or how to avoid? thank u so much!!