src/transformers/models/xlnet/modeling_xlnet.py/XLNetLMHeadModel/__init__
class XLNetLMHeadModel:    def __init__(self, config):
        super().__init__(config)
        self.attn_type = config.attn_type
        self.same_length = config.same_length

        self.transformer = XLNetModel(config)
        self.lm_loss = nn.Linear(config.d_model, config.vocab_size, bias=True)

        # Initialize weights and apply final processing
        self.post_init()