How to use ishandotsh/logembed_a2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ishandotsh/logembed_a2") sentences = [ "writeBlock blk_-2025444374149014902 received exception java.io.IOException: Could not read from stream", "PAM 5 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.65.30.30 user=root", "writeBlock blk_5718472814394212827 received exception java.io.IOException: Could not read from stream", "Adding an already existing block blk_5697572983288390847" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
The community tab is the place to discuss and collaborate with the HF community!