Skip to content

Commit 3ef183b

Browse files
Fix check if cepo_config_file provided
1 parent 48a13eb commit 3ef183b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optillm/cepo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def init_cepo_config(cmd_line_args: dict) -> CepoConfig:
3636

3737
# get the yaml file arguments
3838
cepo_config_yaml = {}
39-
if "cepo_config_file" in cmd_line_args.keys():
39+
if cmd_line_args["cepo_config_file"]:
4040
with open(cmd_line_args["cepo_config_file"], "r") as yaml_file:
4141
cepo_config_yaml = yaml.safe_load(yaml_file)
4242

0 commit comments

Comments
 (0)