Skip to content

Commit c8880e7

Browse files
committed
speculative : fix compile warning
1 parent d9fb3b2 commit c8880e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/speculative.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ llama_tokens common_speculative_gen_draft(
170170
for (int i = reuse_i + reuse_n + 1; i < (int) prompt.size(); ++i) {
171171
result.push_back(prompt[i]);
172172

173-
if (result.size() >= params.n_draft) {
173+
if (params.n_draft <= (int) result.size()) {
174174
break;
175175
}
176176
}

0 commit comments

Comments
 (0)