Skip to content

Commit b291871

Browse files
Fix a tiny bug
forgot to add in base_model.py
1 parent ec769c5 commit b291871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lighteval/models/base_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def greedy_until(
553553
max_length=self.max_length - 1,
554554
add_special_tokens=self.add_special_tokens,
555555
return_dict=True,
556-
)
556+
).to(self.device)
557557
else:
558558
# See doc https://huggingface.co/docs/transformers/v4.38.2/en/pad_truncation#padding-and-truncation
559559
# Will do left truncation and padding, as defined when creating the tokenizer

0 commit comments

Comments
 (0)