From 5485207fbe1101b6f429073a37ce16c8c3b75c03 Mon Sep 17 00:00:00 2001 From: Songyang Zhang Date: Fri, 23 Aug 2024 10:47:57 +0800 Subject: [PATCH] [Bump] Bump version to 0.3.1 (#1450) * [Bump] Bump version 0.3.1 * Update --- opencompass/__init__.py | 2 +- opencompass/utils/run.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/opencompass/__init__.py b/opencompass/__init__.py index 0404d8103..e1424ed0e 100644 --- a/opencompass/__init__.py +++ b/opencompass/__init__.py @@ -1 +1 @@ -__version__ = '0.3.0' +__version__ = '0.3.1' diff --git a/opencompass/utils/run.py b/opencompass/utils/run.py index 8e7cf093a..dfcca6924 100644 --- a/opencompass/utils/run.py +++ b/opencompass/utils/run.py @@ -115,7 +115,7 @@ def get_config_from_arg(args) -> Config: datasets = [] if args.datasets: script_dir = os.path.dirname(os.path.abspath(__file__)) - parent_dir = os.path.dirname(os.path.dirname(script_dir)) + parent_dir = os.path.dirname(script_dir) default_configs_dir = os.path.join(parent_dir, 'configs') datasets_dir = [ os.path.join(args.config_dir, 'datasets'), @@ -154,7 +154,7 @@ def get_config_from_arg(args) -> Config: raise ValueError('You must specify a config file path, or specify --models and --datasets, or specify HuggingFace model parameters and --datasets.') models = [] script_dir = os.path.dirname(os.path.abspath(__file__)) - parent_dir = os.path.dirname(os.path.dirname(script_dir)) + parent_dir = os.path.dirname(script_dir) default_configs_dir = os.path.join(parent_dir, 'configs') models_dir = [ os.path.join(args.config_dir, 'models'), @@ -197,7 +197,7 @@ def get_config_from_arg(args) -> Config: # parse summarizer args summarizer_arg = args.summarizer if args.summarizer is not None else 'example' script_dir = os.path.dirname(os.path.abspath(__file__)) - parent_dir = os.path.dirname(os.path.dirname(script_dir)) + parent_dir = os.path.dirname(script_dir) default_configs_dir = os.path.join(parent_dir, 'configs') summarizers_dir = [ os.path.join(args.config_dir, 'summarizers'),