We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e636fe commit 03afd39Copy full SHA for 03afd39
1 file changed
FlagEmbedding/inference/reranker/decoder_only/lightweight.py
@@ -435,7 +435,7 @@ def compute_score_single_gpu(
435
if normalize:
436
all_scores[i] = [sigmoid(score) for score in all_scores[i]]
437
438
- if isinstance(all_scores[0], list):
+ if len(all_scores) == 1 and isinstance(all_scores[0], list):
439
all_scores = all_scores[0]
440
441
return all_scores
0 commit comments