src/transformers/models/luke/modeling_luke.py/LukeForMaskedLM/__init__
class LukeForMaskedLM:    def __init__(self, config):
        super().__init__(config)

        self.luke = LukeModel(config)

        self.lm_head = LukeLMHead(config)
        self.entity_predictions = EntityPredictionHead(config)

        self.loss_fn = nn.CrossEntropyLoss(ignore_index=-1)

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