Skip to content

GRPO fail for inference #211

@John1231983

Description

@John1231983

I trained GRPO and ran inference on the trained checkpoint, however I got the error

  File "qwen2_vl/image_processing_qwen2_vl_fast.py", lin
e 163, in _preprocess_image_like_inputs
    batch_feature = self._preprocess(images, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "qwen2_vl/image_processing_qwen2_vl_fast.py", lin
e 242, in _preprocess
    patches = patches.view(
              ^^^^^^^^^^^^^
RuntimeError: shape '[1, 1, 2, 3, 35, 2, 16, 35, 2, 16]' is invalid for input of size 7907424

I used both Qwen3VL and Qwen2.5VL and got the same issue. How can I fix the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions