Skip to content

Commit

Permalink
[Bump] Bump version to 0.3.1 (#1450)
Browse files Browse the repository at this point in the history
* [Bump] Bump version 0.3.1

* Update
  • Loading branch information
tonysy authored Aug 23, 2024
1 parent 7c2d25b commit 5485207
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion opencompass/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.0'
__version__ = '0.3.1'
6 changes: 3 additions & 3 deletions opencompass/utils/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -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'),
Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit 5485207

Please sign in to comment.