Skip to content

Commit

Permalink
Dynamic gen: Fix return_logits=True when using CFG
Browse files Browse the repository at this point in the history
  • Loading branch information
turboderp committed Jul 10, 2024
1 parent 1179b8a commit 25e46d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exllamav2/generator/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ def emit(
self.held_k_tokens.append(next_k_tokens)
self.held_k_probs.append(next_k_probs)
if self.return_logits:
self.held_logits.append(logits)
self.held_logits.append(logits[:1, :, :])

# Stop if we reach max_new_tokens

Expand Down

0 comments on commit 25e46d8

Please sign in to comment.