Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenyueh authored Sep 25, 2023
1 parent 786adde commit 9b6dd79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def predict_outputs(args, batch, model, tokenizer, prefix_allowed_tokens, k=20):
prediction = model.module.generate(
input_ids=input_ids,
attention_mask=attn,
max_length=10,
max_length=20,
prefix_allowed_tokens_fn=prefix_allowed_tokens,
num_beams=20,
num_return_sequences=20,
Expand Down

0 comments on commit 9b6dd79

Please sign in to comment.