Error running it with chatpdf

#3
by protoivan - opened

How can i solve this?

Make sure to request access at https://huggingface.co/maidalun1020/bce-reranker-base_v1 and pass a token having permission to this repo either by logging in with huggingface-cli login or by passing token=<your_token>.

Yes,

  1. make sure your access token from https://huggingface.co/settings/tokens, readable or writable token.
  2. if you can not load model from maidalun1020/bce-reranker-base_v1 by BCEmbedding.RerankerModel or transformers, you can try git clone https://huggingface.co/maidalun1020/bce-reranker-base_v1 (you need access token), and then load from local path.

load like:
model = RerankerModel(model_name_or_path="maidalun1020/bce-reranker-base_v1", token='hf_LYNjy***t')
?

Sign up or log in to comment