(model_name_or_path, **kwargs)
| 110 | |
| 111 | |
| 112 | def youtu_models_loader(model_name_or_path, **kwargs): |
| 113 | return InstructSentenceTransformerWrapper( |
| 114 | model_name_or_path, |
| 115 | revision=kwargs.pop("revision", None), |
| 116 | instruction_template=instruction_template, |
| 117 | apply_instruction_to_passages=False, |
| 118 | prompts_dict=youtu_instruction, |
| 119 | trust_remote_code=True, |
| 120 | **kwargs, |
| 121 | ) |
| 122 | |
| 123 | |
| 124 | model_name_or_path = "tencent/Youtu-Embedding" |