ClovenDoug's picture
Update README.md
627d1f8 verified
|
raw
history blame contribute delete
No virus
971 Bytes

Run Model this way:

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("ClovenDoug/small_128_all-MiniLM-L6-v2")

sentence_one = "I like cats"

embedding = model.encode(sentence_one)
print(embedding)

small_128_all-MiniLM-L6-v2

This is a sentence-transformers model: It maps sentences & paragraphs to a 128 dimensional dense vector space and can be used for tasks like clustering or semantic search.

This gives it faster similarity comparison time although inference time will remain about the same.

This model was made using knowledge distillation techniques on the original 384 dimensional all-MiniLM-L6-v2 model.

The script for distilling this model into various sizes can be found here:

https://github.com/dorenwick/sentence_encoder_distillation

Usage (Sentence-Transformers)

Using this model becomes easy when you have sentence-transformers installed: