Skip to content

Commit

Permalink
Update CodeQwen1.5-base-Chat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CSJianYang committed Apr 16, 2024
1 parent 70b05f0 commit 3cb66ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/CodeQwen1.5-base-Chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# Use `max_new_tokens` to control the maximum output length.
generated_ids = model.generate(
model_inputs.input_ids,
max_new_tokens=2048
max_new_tokens=2048 # can increase the output length
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
Expand Down

0 comments on commit 3cb66ef

Please sign in to comment.