def METHOD_NAME(self, model_dir):
    model = Model.from_pretrained(model_dir)
    pipeline_ins = pipeline(task=Tasks.sentence_embedding, model=model)
    print('inputs', self.inputs)
    print(pipeline_ins(input=self.inputs))