Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Apr 2, 2024
1 parent 7ca4e00 commit 40ff127
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/logits_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,8 @@ impl LogitsProcessor {
let next_token = match self.temperature {
None => self.sample_argmax(logits)?,
Some(temperature) => {
dbg!(logits.mean_all());
dbg!(temperature);
let logits = (&logits / temperature)?;
dbg!(logits.mean_all());
let probs = candle_nn::ops::softmax_last_dim(&logits)?;
let mut probs: Vec<f32> = probs.to_vec1()?;
match self.sampling_method {
Expand Down

0 comments on commit 40ff127

Please sign in to comment.