def get_layer_nr_id(name):
    """
    For the given full layer parameter name, e.g.
    language_model.model.encoder.layer.11.attention.output.dense.bias return the
    numeric layer number (11) and the id ("attention.output.dense.bias")
    """
    if name.startswith("language_model.model.encoder.layer."):
        suf = name[35:]
        idx = suf.index(".")
        layer_nr = int(suf[:idx])
        layer_id = suf[idx+1:]
        return layer_nr, layer_id
    else:
        return None, None