Skip to content

Commit d31c1a7

Browse files
committed
Fix
1 parent f521bda commit d31c1a7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

litgpt/generate/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def batched_generate_fn(
355355
input_pos=input_pos,
356356
kwargs=sample_args,
357357
)
358-
input_pos += 1
358+
input_pos += 1
359359
for i in range(batch_size):
360360
token_lists[i].append(tokens[i])
361361
int_tokens = [token.item() for token in tokens]

tests/test_batch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ def find_unique_stop(triplets):
244244
stop_tokens=tuple([s] for s in stops),
245245
sample_args=sample_kwargs,
246246
include_prompt=True,
247-
include_eos=False,
248247
):
249248
tokens.append([t.item() if t is not None else None for t in l])
250249

0 commit comments

Comments
 (0)