The example doesn't work at all.
#7
by
newjacob19
- opened
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('sentence-transformers/sentence-t5-base')
embeddings = model.encode(sentences)
print(embeddings)
This simple example doesn't work.
ValueError: You have to specify either decoder_input_ids or decoder_inputs_embeds