We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e194845 commit dfe7e7cCopy full SHA for dfe7e7c
1 file changed
research/llm_dense_retriever/finetune/data.py
@@ -267,8 +267,8 @@ def create_batch_data(self, batch_raw_data):
267
truncation=True,
268
add_special_tokens=False)['input_ids']
269
)
270
- if self.args.use_special_tokens:
271
- for i in range(len(tmp_passages)):
+ for i in range(len(tmp_passages)):
+ if self.args.use_special_tokens:
272
tmp_passages[i] = tmp_passages[i] + '\n<response>'
273
else:
274
tmp_passages[i] = tmp_passages[i] + '\nResponse:'
0 commit comments