From 854c6bf025ed53e332ae58a7ee66807eae48618d Mon Sep 17 00:00:00 2001 From: Linchen Xiao Date: Thu, 13 Mar 2025 20:52:50 +0800 Subject: [PATCH] [Update] Update requirement and base evaluator --- opencompass/openicl/icl_evaluator/icl_base_evaluator.py | 4 ++-- requirements/extra.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opencompass/openicl/icl_evaluator/icl_base_evaluator.py b/opencompass/openicl/icl_evaluator/icl_base_evaluator.py index 42da0799..e2aad9be 100644 --- a/opencompass/openicl/icl_evaluator/icl_base_evaluator.py +++ b/opencompass/openicl/icl_evaluator/icl_base_evaluator.py @@ -190,8 +190,8 @@ class BaseEvaluator: detail.pop('predictions') return eval_results - # If there are no details, return an empty dictionary - return {} + # If there are no details, return results + return results def score(self): raise NotImplementedError("Method hasn't been implemented yet") diff --git a/requirements/extra.txt b/requirements/extra.txt index a98b3bc8..fd3f7a2f 100644 --- a/requirements/extra.txt +++ b/requirements/extra.txt @@ -12,7 +12,7 @@ faiss_gpu==1.7.2 # IFEval langdetect # TheoremQA -latex2sympy2 +latex2sympy2==1.9.1 # Lawbench, leval ltp # Math