How to use from the
Use from the
sentence-transformers library
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("leliuga/all-MiniLM-L12-v2-GGUF")

sentences = [
    "That is a happy person",
    "That is a happy dog",
    "That is a very happy person",
    "Today is a sunny day"
]
embeddings = model.encode(sentences)

similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]

all-MiniLM-L12-v2 - GGUF

Description

This repo contains GGUF format model files for all-MiniLM-L12-v2.

Downloads last month
877
GGUF
Model size
33.2M params
Architecture
bert
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

16-bit

32-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for leliuga/all-MiniLM-L12-v2-GGUF

Datasets used to train leliuga/all-MiniLM-L12-v2-GGUF

Collection including leliuga/all-MiniLM-L12-v2-GGUF