feat: remove need to add load_in* during merge (#1017)

This commit is contained in:
NanoCode012
2023-12-29 18:15:30 +09:00
committed by GitHub
parent dec66d7c53
commit f6ecf14dd4
2 changed files with 11 additions and 3 deletions

View File

@@ -18,7 +18,15 @@ def do_cli(config: Path = Path("examples/"), **kwargs):
return_remaining_strings=True
)
parsed_cli_args.merge_lora = True
parsed_cfg = load_cfg(config, merge_lora=True, **kwargs)
parsed_cfg = load_cfg(
config,
merge_lora=True,
load_in_8bit=False,
load_in_4bit=False,
flash_attention=False,
**kwargs
)
do_merge_lora(cfg=parsed_cfg, cli_args=parsed_cli_args)