Skip to content

Visionzip with Qwen2.5-VL #26

Description

@aurora-xin

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!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions