Skip to content

Commit

Permalink
fix a bug in AbsDataset.py for embedder finetune
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhainebula committed Nov 12, 2024
1 parent 3f07173 commit df34cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FlagEmbedding/abc/finetune/embedder/AbsDataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def __call__(self, features):
d_collated = self.tokenizer.pad(
passages_inputs,
padding=self.padding,
max_length=self.query_max_len,
max_length=self.passage_max_len,
pad_to_multiple_of=self.pad_to_multiple_of,
return_tensors=self.return_tensors
)
Expand Down Expand Up @@ -562,7 +562,7 @@ def __call__(self, features):
q_collated.append(self.tokenizer.pad(
sub_features,
padding=self.padding,
max_length=self.passage_max_len,
max_length=self.query_max_len,
pad_to_multiple_of=self.pad_to_multiple_of,
return_tensors=self.return_tensors,
))
Expand Down

0 comments on commit df34cae

Please sign in to comment.