How to use LamaDiab/v4MiniLM-V18Data-256ConstantBATCH-SemanticEngine with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("LamaDiab/v4MiniLM-V18Data-256ConstantBATCH-SemanticEngine") sentences = [ "gerber baby food fruits apples bananas & cereal", "world of sweets puzzle", "baby food", "baby food" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
What is a pickle import?
How to fix it?