Skip to content

Commit

Permalink
fixed a bug with drafting tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Dec 23, 2024
1 parent fd5100c commit 10d4fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpttype_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3611,7 +3611,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
{
logits_to_sample = draft_results.drafted_amount;
}
while(logits_sampled<logits_to_sample && remaining_tokens>0 && !abort_draft)
while(logits_sampled<logits_to_sample && remaining_tokens>0 && !abort_draft && !early_abort)
{
if(logits_sampled>0)
{
Expand Down

0 comments on commit 10d4fc6

Please sign in to comment.