AbsArguments#

class FlagEmbedding.abc.finetune.reranker.AbsRerankerModelArguments(model_name_or_path: str, config_name: str | None = None, tokenizer_name: str | None = None, cache_dir: str | None = None, trust_remote_code: bool = False, model_type: str = 'encoder', token: str = <factory>)[source]#

Abstract class for reranker model arguments.

class FlagEmbedding.abc.finetune.reranker.AbsRerankerDataArguments(train_data: str | None = None, cache_path: str | None = None, train_group_size: int = 8, query_max_len: int = 32, passage_max_len: int = 128, max_len: int = 512, pad_to_multiple_of: int | None = None, max_example_num_per_dataset: int = 100000000, query_instruction_for_rerank: str | None = None, query_instruction_format: str = '{}{}', knowledge_distillation: bool = False, passage_instruction_for_rerank: str | None = None, passage_instruction_format: str | None = '{}{}', shuffle_ratio: float = 0.0, sep_token: str = '\n')[source]#

Abstract class for reranker data arguments.