Skip to content

Commit

Permalink
Update src/lighteval/models/base_model.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Habib <[email protected]>
  • Loading branch information
clefourrier and NathanHB authored Feb 7, 2024
1 parent 9b0fe54 commit dc454fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lighteval/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def _loglikelihood_tokens(
return dataset.get_original_order(res)

def prepare_batch(
self, batch: list[str], padding_length: int, max_context: Optional[int] = None, single_token: bool = False
self, batch: list[Request], padding_length: int, max_context: Optional[int] = None, single_token: bool = False
):
"""Tokenize a batch of inputs and return also the length, truncations and padding"""
if single_token:
Expand Down

0 comments on commit dc454fd

Please sign in to comment.