Skip to content

Commit dfe7e7c

Browse files
committed
update bge-en-icl
1 parent e194845 commit dfe7e7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • research/llm_dense_retriever/finetune

research/llm_dense_retriever/finetune/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ def create_batch_data(self, batch_raw_data):
267267
truncation=True,
268268
add_special_tokens=False)['input_ids']
269269
)
270-
if self.args.use_special_tokens:
271-
for i in range(len(tmp_passages)):
270+
for i in range(len(tmp_passages)):
271+
if self.args.use_special_tokens:
272272
tmp_passages[i] = tmp_passages[i] + '\n<response>'
273273
else:
274274
tmp_passages[i] = tmp_passages[i] + '\nResponse:'

0 commit comments

Comments
 (0)