def save_model_info(model_info, save_path, prefix):
    """
    save model info to the target path
    """
    save_path = os.path.join(save_path, prefix)
    if not os.path.exists(save_path):
        os.makedirs(save_path)
    with open(os.path.join(save_path, f'{prefix}.info.json'), 'w') as f:
        json.dump(model_info, f)
    logger.info("Already save model info in {}".format(save_path))

    save model info to the target path
    
ppdet/utils/checkpoint.py