diff --git a/gemma.cc b/gemma.cc index 8613846..f2a2275 100644 --- a/gemma.cc +++ b/gemma.cc @@ -601,6 +601,9 @@ void GenerateImpl(GemmaImpl& 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; } }