Skip to content

Vllm raise error when token_num exceed max_model_len #403

@yy-code-nv

Description

@yy-code-nv

[rank1]: raise ValueError(
[rank1]:ValueError: The decoder prompt (length 16476) is longer than the maximum model length of 16384. Make sure that max_model_len is no smaller than the number of text tokens plus multimodal tokens. For image inputs, the number of image tokens depends on the number of images, and possibly their aspect ratios as well.

Should filter out those samples instead directly raise error. This error can be easily triggered for vlm when image is large.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions