aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 2a07bbb..e8e8df8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -977,7 +977,7 @@ int main(int argc, char ** argv) {
last_n_tokens.erase(last_n_tokens.begin());
last_n_tokens.push_back(embd_inp[input_consumed]);
++input_consumed;
- if ((int) embd.size() > params.n_batch) {
+ if ((int) embd.size() >= params.n_batch) {
break;
}
}