MCPcopy Create free account
hub / github.com/TencentCloudADP/youtu-embedding / youtu_models_loader

Function youtu_models_loader

evaluation/youtu_models.py:112–121  ·  view source on GitHub ↗
(model_name_or_path, **kwargs)

Source from the content-addressed store, hash-verified

110
111
112def 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
124model_name_or_path = "tencent/Youtu-Embedding"

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected