Skip to content

[Bug] Tensor.item() cannot be called on meta tensors #45

@brianysoong

Description

@brianysoong

Likely due to package incompatibilities - on a new conda environment, when I tried computing histo embeddings, I get this error: RuntimeError: Tensor.item() cannot be called on meta tensors

Following this issue, OpenGVLab/InternVL#1254, I did pip install transformers<5.0.0 and the issue went away. Probably an issue with transformers>=5.0.0?

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