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

model = SentenceTransformer("0neisall/tiny-embedding-test")

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]

Tiny embedding test model

Randomly initialized 1-layer BERT with mean pooling and L2 normalization. Outputs 16-dimensional embeddings. Maximum sequence length: 128 tokens.

For upload/loading tests only. Not trained; no useful semantic quality. The tiny vocabulary maps most words to [UNK].

from sentence_transformers import SentenceTransformer

# Replace with your uploaded repository ID.
model = SentenceTransformer("YOUR_USERNAME/tiny-embedding-test")
embeddings = model.encode(["hello world", "ไฝ ๅฅฝไธ–็•Œ"])
print(embeddings.shape)  # (2, 16)
Downloads last month
319
Safetensors
Model size
5.65k params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support