Skip to content

Commit 282776f

Browse files
committed
update reranker v2
1 parent baebf72 commit 282776f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

FlagEmbedding/llm_reranker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def get_inputs(pairs, tokenizer, prompt=None, max_length=1024):
221221
)
222222

223223
tokenizer = AutoTokenizer.from_pretrained('BAAI/bge-reranker-v2-minicpm-layerwise', trust_remote_code=True)
224-
model = AutoModelForCausalLM.from_pretrained('BAAI/bge-reranker-v2-minicpm-layerwise', trust_remote_code=True, torch_dtype=torch.float16)
224+
model = AutoModelForCausalLM.from_pretrained('BAAI/bge-reranker-v2-minicpm-layerwise', trust_remote_code=True, torch_dtype=torch.bfloat16)
225225
model = model.to('cuda')
226226
model.eval()
227227

0 commit comments

Comments
 (0)