Update modeling_super_linear.py
Browse files503 unmodified lines504505506507507508509509510511512503 unmodified lines # (delete if your model already returns logits over a vocabulary) '''self.vocab_size = getattr(config, "vocab_size", None) if self.vocab_size is not None: self.lm_head = nn.Linear(backbone_cfg.pred_len, self.vocab_size) self.lm_head = nn.Linear(backbone_cfg.pred_len, self.vocab_size)'''
self.post_init() ''' # HF weight init self.post_init()
# ------------------------------------------------------------------ # Forward pass expected by AutoModelForCausalLMmodeling_super_linear.py+2-2