Skip to content

Issue with query reshaping (RuntimeError) #1

@youngyoon911

Description

@youngyoon911

RuntimeError: shape '[80, -1, 8, 40]' is invalid for input of size 20971520

Image

Because of this setting, transformer input's (hidden state) batch size turns into 16, but text embedding's (encoder_hidden_state) batch size remains 80, then causes that error.

How can I fix it?

Thanks!

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