jina-bert-implementation--configuration_bert.py missing?

#8
by Onema - opened

Hey,

I'm trying to load the model through AutoModel.from_pretrained as in the example in the model card. I got the following OSError:

OSError: jinaai/jina-embeddings-v2-base-de does not appear to have a file named jinaai/jina-bert-implementation--configuration_bert.py. Checkout 'https://huggingface.co/jinaai/jina-embeddings-v2-base-de/main' for available files.

Jina AI org

hi @Onema i think this could solve the issue:

  1. upgrade transformers repo: pip install -U transformers
  2. remove the cached model: rm -rf ~/.cache/huggingface/hub/ and rm -rf ~/.cache/huggingface/modules/

then run the script again, it should work

Perfect! This fixed the issue, thank you!

bwang0911 changed discussion status to closed

Sign up or log in to comment