Skip to content

Commit

Permalink
[Sync] bump version 0.2.6+local (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leymore authored Jul 5, 2024
1 parent 1d3a26c commit a62c613
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion opencompass/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2.5'
__version__ = '0.2.6'
7 changes: 4 additions & 3 deletions opencompass/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import getpass
import os
import os.path as osp
from copy import deepcopy
from datetime import datetime

from mmengine.config import Config, DictAction
Expand Down Expand Up @@ -349,7 +348,7 @@ def main():

# For subjective summarizer
if summarizer_cfg.get('function', None):
main_summarizer_cfg = deepcopy(summarizer_cfg)
main_summarizer_cfg = copy.deepcopy(summarizer_cfg)
grouped_datasets = {}
for dataset in cfg.datasets:
prefix = dataset['abbr'].split('_')[0]
Expand All @@ -361,7 +360,7 @@ def main():
all_grouped_lists.append(grouped_datasets[prefix])
dataset_score_container = []
for dataset in all_grouped_lists:
temp_cfg = deepcopy(cfg)
temp_cfg = copy.deepcopy(cfg)
temp_cfg.datasets = dataset
summarizer_cfg = dict(type=dataset[0]['summarizer']['type'], config=temp_cfg)
summarizer = build_from_cfg(summarizer_cfg)
Expand All @@ -378,5 +377,7 @@ def main():
summarizer = build_from_cfg(summarizer_cfg)
summarizer.summarize(time_str=cfg_time_str)



if __name__ == '__main__':
main()
1 change: 0 additions & 1 deletion opencompass/datasets/subjective/mtbench101.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import re

from datasets import Dataset, DatasetDict
from torch.utils.data import DataLoader

from opencompass.registry import LOAD_DATASET

Expand Down

0 comments on commit a62c613

Please sign in to comment.