Skip to content

Commit

Permalink
add comment back
Browse files Browse the repository at this point in the history
  • Loading branch information
clefourrier committed Feb 7, 2024
1 parent b13b302 commit 2c650c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lighteval/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ def greedy_until(
max_input_length=max_context_continuation_size_allowed,
starting_batch_size=starting_batch_size,
)
# For next iteration, since the batch will be smaller, we'll test a bigger batch size
starting_batch_size = batch_size * 2

dataloader = DataLoader(dataset, batch_size=batch_size, collate_fn=lambda batch: batch)
if self.accelerator:
Expand Down

0 comments on commit 2c650c9

Please sign in to comment.