Skip to content

Commit

Permalink
Merge pull request #551 from FlagAI-Open/fix_issue
Browse files Browse the repository at this point in the history
fixed yaml setup issue
  • Loading branch information
BAAI-OpenPlatform authored Oct 19, 2023
2 parents 0178066 + 551ac87 commit 13e7191
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/Aquila/Aquila-chat/aquila_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
if env_args.yaml_config:
import yaml
file_data = open(env_args.yaml_config, 'r', encoding="utf-8").read()
data = yaml.load_all(file_data)
data = yaml.load_all(file_data, Loader=yaml.SafeLoader)
delattr(env_args, 'yaml_config')
arg_dict = env_args.__dict__
for subdata in data:
Expand Down
2 changes: 1 addition & 1 deletion examples/Aquila/Aquila-code/aquila_code_pretrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
if env_args.yaml_config:
import yaml
file_data = open(env_args.yaml_config, 'r', encoding="utf-8").read()
data = yaml.load_all(file_data)
data = yaml.load_all(file_data, Loader=yaml.SafeLoader)
delattr(env_args, 'yaml_config')
arg_dict = env_args.__dict__
for subdata in data:
Expand Down
2 changes: 1 addition & 1 deletion examples/Aquila/Aquila-pretrain/aquila_pretrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
if env_args.yaml_config:
import yaml
file_data = open(env_args.yaml_config, 'r', encoding="utf-8").read()
data = yaml.load_all(file_data)
data = yaml.load_all(file_data, Loader=yaml.SafeLoader)
delattr(env_args, 'yaml_config')
arg_dict = env_args.__dict__
for subdata in data:
Expand Down
2 changes: 1 addition & 1 deletion examples/Aquila/Aquila-sql/aquila_sql_flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
if env_args.yaml_config:
import yaml
file_data = open(env_args.yaml_config, 'r', encoding="utf-8").read()
data = yaml.load_all(file_data)
data = yaml.load_all(file_data, Loader=yaml.SafeLoader)
delattr(env_args, 'yaml_config')
arg_dict = env_args.__dict__
for subdata in data:
Expand Down
2 changes: 1 addition & 1 deletion examples/Aquila/aquila_pretrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
if env_args.yaml_config:
import yaml
file_data = open(env_args.yaml_config, 'r', encoding="utf-8").read()
data = yaml.load_all(file_data)
data = yaml.load_all(file_data, Loader=yaml.SafeLoader)
delattr(env_args, 'yaml_config')
arg_dict = env_args.__dict__
for subdata in data:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'transformers>=4.31.0',
'datasets>=2.0.0',
'setuptools>=66.0.0',
'protobuf==3.19.6',
'protobuf>=3.19.6',
'ftfy',
'Pillow>=9.3.0',
'einops>=0.3.0',
Expand All @@ -38,7 +38,7 @@
'sacrebleu>=2.3.1',
'jsonlines',
'accelerate',
'PyYAML==5.4.1',
'PyYAML>=5.4.1',
'safetensors',
'timm',
]
Expand Down

0 comments on commit 13e7191

Please sign in to comment.