Skip to content

Commit

Permalink
[Fix] Fix model summarizer abbr (#1789)
Browse files Browse the repository at this point in the history
* fix pip version

* fix pip version

* fix model summarizer abbr

---------

Co-authored-by: root <bittersweet1999>
  • Loading branch information
bittersweet1999 authored Dec 27, 2024
1 parent ae9efb7 commit 357ce8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions opencompass/summarizers/subjective/alpacaeval.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ def summarize(self,
dataset, subdir_path, self.judge_function)
win_model1, win_model2, categories = defaultdict(
float), defaultdict(float), defaultdict(float)
model1, model2 = references[0]['answer1'], references[0][
'answer2']

for prediction, reference in zip(judged_answers,
references):
categories['total'] += 1
Expand Down
2 changes: 0 additions & 2 deletions opencompass/summarizers/subjective/compass_arena.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ def get_score(self, time_str):
win_model1 = defaultdict(float)
win_model2 = defaultdict(float)
categories = defaultdict(float)
model1 = references[0]['answer1']
model2 = references[0]['answer2']
for prediction, reference in zip(judged_answers, references):
categories[dataset_abbr] += 1
categories[reference['capability']] += 1
Expand Down

0 comments on commit 357ce8c

Please sign in to comment.