Inference API vs reranker.compute_score

#13
by yitao416 - opened

I am just curious why these two have different results.

Inference API has values between 0 and 1. While reranker.compute_score can have some fairly large numbers.

Beijing Academy of Artificial Intelligence org

Hi, @yitao416 , the api add a sigmoid function to the output score. Now, we also add a argument normalize in function compute_score, and you can normalize the score with compute_score(sentence_pairs, normalize=True)

yitao416 changed discussion status to closed

Sign up or log in to comment