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 4369f9f commit 5f155a7Copy full SHA for 5f155a7
src/lighteval/models/nanotron_model.py
@@ -1133,7 +1133,7 @@ def greedy_until(
1133
else:
1134
# Longest context in the current split is the first item (since we sort reversed)
1135
context_enc = dataset[0][1].tokenized_context
1136
- max_gen = max(item[1].generation_size for item in dataset)
+ max_gen = max(item.generation_size for item in dataset)
1137
max_input_length = min(len(context_enc) + max_gen, self.max_length)
1138
1139
batch_size = self._get_batch_size(
0 commit comments