Skip to content

Commit

Permalink
add back newline
Browse files Browse the repository at this point in the history
  • Loading branch information
samhavens committed Dec 7, 2023
1 parent d05911e commit 7f9be51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/inference/hf_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def _generate(encoded_inp: Dict[str, torch.Tensor]):
encoded_inp['input_ids'] !=
tokenizer.pad_token_id, # type: ignore
axis=1).numpy(force=True)

# Warmup
if args.warmup and (not done_warmup):
print('Warming up...')
Expand Down

0 comments on commit 7f9be51

Please sign in to comment.