Sentence Similarity
sentence-transformers
Safetensors
English
siglip
feature-extraction
dense
Generated from Trainer
dataset_size:10000
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
Instructions to use tomaarsen/google-siglip-base-512-coco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tomaarsen/google-siglip-base-512-coco with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tomaarsen/google-siglip-base-512-coco") sentences = [ "A man standing next to a little girl riding a horse.", "The woman is working on her computer at the desk.", "A young man holding an umbrella next to a herd of cattle.", "a person sitting at a desk with a keyboard and monitor " ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| { | |
| "added_tokens_decoder": { | |
| "1": { | |
| "content": "</s>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": true, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "<unk>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": true, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [], | |
| "clean_up_tokenization_spaces": true, | |
| "do_convert_rgb": true, | |
| "do_lower_case": true, | |
| "eos_token": "</s>", | |
| "extra_special_tokens": {}, | |
| "model_input_names": [ | |
| "input_ids" | |
| ], | |
| "model_max_length": 64, | |
| "pad_token": "</s>", | |
| "processor_class": "SiglipProcessor", | |
| "sp_model_kwargs": {}, | |
| "tokenizer_class": "SiglipTokenizer", | |
| "unk_token": "<unk>" | |
| } | |