Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove early stopping from LLaMA end-to-end benchmarking #20033

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,7 @@ def main():
sampling_times.append(sampling_end_time - sampling_start_time)

all_token_ids = torch.cat([all_token_ids, tokens_to_add], dim=-1)

# Return early if all batch entries have reached EOS token id
current_length += 1
if torch.all(has_eos) or current_length > max_length:
break

# Update inputs for next inference run
inputs["input_ids"] = tokens_to_add
Expand Down
Loading