Skip to content

Commit 10d4fc6

Browse files
committed
fixed a bug with drafting tokens
1 parent fd5100c commit 10d4fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpttype_adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3611,7 +3611,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
36113611
{
36123612
logits_to_sample = draft_results.drafted_amount;
36133613
}
3614-
while(logits_sampled<logits_to_sample && remaining_tokens>0 && !abort_draft)
3614+
while(logits_sampled<logits_to_sample && remaining_tokens>0 && !abort_draft && !early_abort)
36153615
{
36163616
if(logits_sampled>0)
36173617
{

0 commit comments

Comments
 (0)