finnstrom3693 commited on
Commit
3181a38
1 Parent(s): 29085b2

output double logits and softmax

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