@@ -125,18 +125,7 @@ def train(self) -> None:
125
125
126
126
trainer .args .remove_unused_columns = False
127
127
128
- if self .config .processor is not None : # and getattr(self.config.tr_args, "run_vidore_evaluator", False):
129
- # vidore_eval_dataset_name = getattr(self.config.tr_args, "vidore_eval_dataset_name", None)
130
- # vidore_eval_collection_name = getattr(self.config.tr_args, "vidore_eval_collection_name", None)
131
-
132
- # if vidore_eval_dataset_name is not None and vidore_eval_collection_name is not None:
133
- # raise ValueError(
134
- # "Both vidore_eval_dataset_name and vidore_eval_collection_name are provided. "
135
- # "You should only provide one of the two"
136
- # )
137
- # elif vidore_eval_dataset_name is None and vidore_eval_collection_name is None:
138
- # print("WARNING : No dataset provided for ViDoRe evaluation. Skipping evaluation.")
139
- # else:
128
+ if self .config .processor is not None :
140
129
trainer .add_callback (
141
130
BenchmarkEvalCallback (
142
131
processor = self .config .processor ,
@@ -145,8 +134,8 @@ def train(self) -> None:
145
134
batch_query = self .config .tr_args .per_device_eval_batch_size ,
146
135
batch_passage = 4 ,
147
136
batch_score = 4 ,
148
- run_frequency = getattr (self .config .tr_args , "eval_steps_frequency" , 5 ),
149
- dataset_format = getattr (self .config .tr_args , "eval_dataset_format" , "qa " ),
137
+ run_frequency = getattr (self .config .tr_args , "eval_steps_frequency" , 500 ),
138
+ dataset_format = getattr (self .config .tr_args , "eval_dataset_format" , "beir " ),
150
139
)
151
140
)
152
141
0 commit comments