Skip to content

Commit

Permalink
Merge pull request #1250 from hanhainebula/master
Browse files Browse the repository at this point in the history
Clean code
  • Loading branch information
hanhainebula authored Nov 22, 2024
2 parents 05cb564 + 5dcecd6 commit ce3a9f8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 26 deletions.
23 changes: 0 additions & 23 deletions FlagEmbedding/abc/inference/__main__.py

This file was deleted.

1 change: 0 additions & 1 deletion FlagEmbedding/inference/reranker/decoder_only/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ def __call__(self, data):
return self.tokenizer.pad(
data,
padding=True,
max_length=self.max_len,
pad_to_multiple_of=8,
return_tensors='pt',
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def __call__(self, data):
collected = self.tokenizer.pad(
features,
padding=True,
max_length=self.max_len,
pad_to_multiple_of=8,
return_tensors='pt',
)
Expand Down
1 change: 0 additions & 1 deletion FlagEmbedding/inference/reranker/encoder_only/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ def compute_score_single_gpu(
inputs = self.tokenizer.pad(
sentences_batch,
padding=True,
max_length=max_length,
return_tensors='pt',
**kwargs
).to(device)
Expand Down

0 comments on commit ce3a9f8

Please sign in to comment.