Sentence Similarity
sentence-transformers
Safetensors
clip
feature-extraction
Generated from Trainer
dataset_size:12
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
Instructions to use machinev/model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use machinev/model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("machinev/model") sentences = [ "the main power cable is connected with LPT ", "the main power cable is connected with LPT ", "the main power cable is connected with LPT ", "/content/sample_data/images/LPT (2).jpeg" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download config.json from machinev/model: direct link, hf CLI and curl.
- Browser
- Download file 770 Bytes
-
https://huggingface.co/machinev/model/resolve/main/config.json
- Command line
-
hf download hf://machinev/model/config.json
-
curl -L -o config.json https://huggingface.co/machinev/model/resolve/main/config.json
770 Bytes
| { | |
| "_name_or_path": "/root/.cache/huggingface/hub/models--sentence-transformers--clip-ViT-L-14/snapshots/3b12140ad0f9750045e404f187cfccd04bcaf250/0_CLIPModel", | |
| "architectures": [ | |
| "CLIPModel" | |
| ], | |
| "initializer_factor": 1.0, | |
| "logit_scale_init_value": 2.6592, | |
| "model_type": "clip", | |
| "projection_dim": 768, | |
| "text_config": { | |
| "dropout": 0.0, | |
| "hidden_size": 768, | |
| "intermediate_size": 3072, | |
| "model_type": "clip_text_model", | |
| "num_attention_heads": 12 | |
| }, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.48.3", | |
| "vision_config": { | |
| "dropout": 0.0, | |
| "hidden_size": 1024, | |
| "intermediate_size": 4096, | |
| "model_type": "clip_vision_model", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "patch_size": 14 | |
| } | |
| } | |