speculative : fix compile warning
This commit is contained in:
parent
d9fb3b2e01
commit
c8880e786c
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ llama_tokens common_speculative_gen_draft(
|
|||
for (int i = reuse_i + reuse_n + 1; i < (int) prompt.size(); ++i) {
|
||||
result.push_back(prompt[i]);
|
||||
|
||||
if (result.size() >= params.n_draft) {
|
||||
if (params.n_draft <= (int) result.size()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue