AyaGL commited on
Commit
496963c
·
verified ·
1 Parent(s): 846cf06

Update modeling_steerling.py

Browse files
Files changed (1) hide show
  1. modeling_steerling.py +4 -1
modeling_steerling.py CHANGED
@@ -1,5 +1,5 @@
1
  from __future__ import annotations
2
- # Auto-generated by scripts/build_hf_files_v3.py — do not edit manually.
3
 
4
  import torch
5
  import torch.nn as nn
@@ -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
 
1
  from __future__ import annotations
2
+ # Auto-generated by scripts/build_hf_files.py — do not edit manually.
3
 
4
  import torch
5
  import torch.nn as nn
 
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