Skip to content

Commit

Permalink
Merge pull request #98 from zeerd:patch-2
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 615769065
  • Loading branch information
copybara-github committed Mar 14, 2024
2 parents 1408784 + 46c1aca commit a2ef389
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 @@ -601,6 +601,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 a2ef389

Please sign in to comment.