Missing `sentence_xlnet_config.json` file

#20
by samikr - opened

While trying to load this model using sentence_transformer (2.2.2), I am getting the following error:

FileNotFoundError: [Errno 2] No such file or directory: '.../.cache/torch/sentence_transformers/intfloat_multilingual-e5-large-instruct/sentence_xlnet_config.json'

How to resolve this?

same issue here

I was facing the same issue while following https://huggingface.co/Alibaba-NLP/new-impl#recommendation-enable-unpadding-and-acceleration-with-xformers

Finally this worked for me:

SentenceTransformer(
    'Alibaba-NLP/gte-large-en-v1.5',
    trust_remote_code=True,
    model_kwargs={
        'torch_dtype': torch.bfloat16
    } ,
    config_kwargs={
        'unpad_inputs': True,
        'use_memory_efficient_attention': True,
    },
)

I think I ended up copying over a similar file from some other repo. Has been quite some time ...

Sign up or log in to comment