model loading error
#1
by
smallsuper
- opened
@sadovnychyi
Got the following errorOSError: lawinsider/jina-embeddings-v2-small-en does not appear to have a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.
while loading the model using the code
`# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("lawinsider/jina-embeddings-v2-small-en", trust_remote_code=True)
model = AutoModelForMaskedLM.from_pretrained("lawinsider/jina-embeddings-v2-small-en", trust_remote_code=True)`