How to get Sentence embeddings?

#32
by kmukeshreddy - opened

Hello all,

Could anyone please share how to get sentence embeddings specifically from EleutherAI/gpt-j-6b?
I have seen that there are various ways to get the sentence embeddings from the AutoModelForCausalLM class, the AutoModel class, and the SentenceTransformer class. But the embeddings generated don't match each other.

Thanks in advance!

Sign up or log in to comment