We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f521bda commit d31c1a7Copy full SHA for d31c1a7
litgpt/generate/base.py
@@ -355,7 +355,7 @@ def batched_generate_fn(
355
input_pos=input_pos,
356
kwargs=sample_args,
357
)
358
- input_pos += 1
+ input_pos += 1
359
for i in range(batch_size):
360
token_lists[i].append(tokens[i])
361
int_tokens = [token.item() for token in tokens]
tests/test_batch.py
@@ -244,7 +244,6 @@ def find_unique_stop(triplets):
244
stop_tokens=tuple([s] for s in stops),
245
sample_args=sample_kwargs,
246
include_prompt=True,
247
- include_eos=False,
248
):
249
tokens.append([t.item() if t is not None else None for t in l])
250
0 commit comments