Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekgfb committed Apr 17, 2024
1 parent 0442e94 commit 3f49018
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ def generate(
model: Transformer,
generator_args: Generator_Args,
*,
chat_mode: bool,
draft_model: Transformer,
speculate_k: Optional[int] = 8,
callback=lambda x: x,
Expand All @@ -247,7 +246,7 @@ def generate(
# create an empty tensor of the expected final shape and fill in the current tokens
T = prompt.size(0)
T_new = T + generator_args.max_new_tokens
if chat_mode:
if generator_args.chat_mode:
max_seq_length = 350
else:
max_seq_length = min(T_new, model.config.block_size)
Expand Down

0 comments on commit 3f49018

Please sign in to comment.