Files
modelscope-scepter/scepter/studio/tuner_manager/utils/yaml.py
T
2024-03-31 13:08:41 +08:00

12 lines
277 B
Python

# -*- coding: utf-8 -*-
import yaml
def save_yaml(data, file_path):
with open(file_path, 'w') as f_out:
yaml.dump(data,
f_out,
encoding='utf-8',
allow_unicode=True,
default_flow_style=False)