fix: fix max steps
This commit is contained in:
parent
f15e37dfad
commit
113966157c
|
@ -43,7 +43,7 @@ def main():
|
|||
config['template'] = template
|
||||
config['output_dir'] = output_dir
|
||||
if run_type == "lora_sft":
|
||||
config['max_steps'] = max_steps
|
||||
config['max_steps'] = int(max_steps)
|
||||
|
||||
with open(f'{output_dir}/{run_name}.yaml', 'w', encoding='utf-8') as f:
|
||||
yaml.dump(data=config, stream=f, allow_unicode=True)
|
||||
|
|
Loading…
Reference in New Issue