Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 719462755
  • Loading branch information
xingyousong authored and copybara-github committed Jan 31, 2025
1 parent 6c9409a commit e98c8fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optformer/decoding_regression/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def decode(
current_logits[:, ~self._vocab.logit_mask(i)] = NEG_INF

# [B, V]
probs = sp.special.softmax(temperature * current_logits, axis=-1)
probs = sp.special.softmax(current_logits / temperature, axis=-1)

# Sample tokens.
sampled_ids = vectorized_sample(probs)
Expand Down

0 comments on commit e98c8fe

Please sign in to comment.