Skip to content

Commit

Permalink
Update specialization.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnweiwei authored Feb 24, 2024
1 parent 51dad78 commit 38c2025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ def eval_on_benchmark(args, model=None, tokenizer=None):
reranked_data.append(receive_permutation(item, response, rank_start=0, rank_end=100))

temp_file = tempfile.NamedTemporaryFile(delete=False).name
write_eval_file(reranked_data, temp_file)
EvalFunction.eval(['-c', '-m', 'ndcg_cut.10', THE_TOPICS[data], temp_file])
EvalFunction.write_file(reranked_data, temp_file)
EvalFunction.main(THE_TOPICS[data], temp_file)


if __name__ == '__main__':
Expand Down

0 comments on commit 38c2025

Please sign in to comment.