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?