AyaGL commited on
Commit
6e5a87d
·
verified ·
1 Parent(s): 5921fad

Update modeling_steerling.py

Browse files
Files changed (1) hide show
  1. modeling_steerling.py +3 -0
modeling_steerling.py CHANGED
@@ -1562,6 +1562,9 @@ class SteerlingForCausalLM(PreTrainedModel):
1562
  def _init_weights(self, module):
1563
  pass
1564
 
 
 
 
1565
  def _tie_weights(self):
1566
  if self.config.weight_sharing:
1567
  self.transformer.lm_head.weight = self.transformer.tok_emb.weight
 
1562
  def _init_weights(self, module):
1563
  pass
1564
 
1565
+ _forward_with_injection = InterpretableCausalDiffusionLM._forward_with_injection
1566
+ _compute_unknown_topk = InterpretableCausalDiffusionLM._compute_unknown_topk
1567
+
1568
  def _tie_weights(self):
1569
  if self.config.weight_sharing:
1570
  self.transformer.lm_head.weight = self.transformer.tok_emb.weight