bilingual-sentence-embedder-mMiniLMv2-L6-H384 / configuration_sentence_embedder.py
yongsun-yoon's picture
Upload model
086d355
raw
history blame contribute delete
463 Bytes
from transformers import PretrainedConfig
class SentenceEmbedderConfig(PretrainedConfig):
model_type = 'sentence_embedder'
def __init__(
self,
backbone_name: str = 'xlm-roberta-base',
output_size: int = 768,
init_backbone: bool = False,
**kwargs
):
self.backbone_name = backbone_name
self.output_size = output_size
self.init_backbone = init_backbone
super().__init__(**kwargs)