def METHOD_NAME(xlmr_path, inf, logger=None):
    if logger:
        logger.info("converting pt file at {} to hf file.".format(inf))
    sd = convert_cxlm_to_transformers(inf)
    return update_hf_sd(sd, xlmr_path)