We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd03820 commit ef51aebCopy full SHA for ef51aeb
1 file changed
FlagEmbedding/abc/inference/AbsEmbedder.py
@@ -167,8 +167,6 @@ def encode(
167
instruction_format: Optional[str] = None,
168
**kwargs: Any
169
):
170
- if instruction is None: instruction = self.instruction
171
- if instruction_format is None: instruction_format = self.instruction_format
172
if batch_size is None: batch_size = self.batch_size
173
if max_length is None: max_length = self.passage_max_length
174
if convert_to_numpy is None: convert_to_numpy = self.convert_to_numpy
0 commit comments