finnstrom3693 commited on
Commit
29085b2
1 Parent(s): 0f489e7

add softmax

Browse files
Files changed (1) hide show
  1. modeling5.py +4 -1
modeling5.py CHANGED
@@ -86,7 +86,10 @@ class MiniSunModel(tf.keras.Model):
86
 
87
  # LM Head for token generation
88
  logits = self.lm_head(hidden_states)
89
- return logits
 
 
 
90
 
91
  def get_config(self):
92
  # Return the configuration of the model
 
86
 
87
  # LM Head for token generation
88
  logits = self.lm_head(hidden_states)
89
+
90
+ softmax_output = tf.nn.softmax(logits, axis=-1)
91
+
92
+ return softmax_output
93
 
94
  def get_config(self):
95
  # Return the configuration of the model