Skip to content

Commit

Permalink
Add missing log that point to a failed Generation
Browse files Browse the repository at this point in the history
  • Loading branch information
zeerd committed Mar 14, 2024
1 parent 0221956 commit 46c1aca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gemma.cc
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,9 @@ void GenerateImpl(GemmaImpl<TConfig>& gemma, size_t max_tokens,
} else if ((prompt.size() + max_generated_tokens) > max_tokens) {
std::cout << "Warning: Prompt size + max_new_tokens exceeds max_tokens."
<< std::endl;
} else if (pos >= max_tokens) {
std::cout << "Warning: pos exceeds max_tokens."
<< std::endl;
}
}

Expand Down

0 comments on commit 46c1aca

Please sign in to comment.