src/transformers/modeling_tf_utils.py/format_weight_name
def format_weight_name(name, _prefix=None):
    if "model." not in name and len(name.split("/")) > 1:
        name = "/".join(name.split("/")[1:])
    if _prefix is not None:
        name = _prefix + "/" + name
    return name