src/transformers/models/pegasus/convert_pegasus_tf_to_pytorch.py/rename_state_dict_key
def rename_state_dict_key(k):
    for pegasus_name, hf_name in PATTERNS:
        k = k.replace(pegasus_name, hf_name)
    return k