Sentence Similarity
sentence-transformers
TensorBoard
Safetensors
English
bert
text-embeddings-inference
Run this model with HF Jobs
Run guyhadad01/EncodeRec on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/guyhadad01/EncodeRec. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/guyhadad01/EncodeRec on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use guyhadad01/EncodeRec with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use guyhadad01/EncodeRec with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("guyhadad01/EncodeRec") 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] - Notebooks
- Google Colab
- Kaggle
Training in progress, step 5400, checkpoint
Browse filesFiles changed (7)
285 unmodified lines2862872882892902912892902912922932941035 unmodified lines1330133113321333133413351336133713381339285 unmodified lines# Get the similarity scores for the embeddingssimilarities = model.similarity(embeddings, embeddings)print(similarities)# tensor([[1.0000, 0.6341, 0.1285],# [0.6341, 1.0000, 0.1635],# [0.1285, 0.1635, 1.0000]])# tensor([[1.0000, 0.6268, 0.1112],# [0.6268, 1.0000, 0.1476],# [0.1112, 0.1476, 1.0000]])```
<!--1035 unmodified lines| 0.0901 | 5100 | 0.4469 || 0.0910 | 5150 | 0.5283 || 0.0919 | 5200 | 0.4826 || 0.0928 | 5250 | 0.3895 || 0.0937 | 5300 | 0.4873 || 0.0945 | 5350 | 0.4895 || 0.0954 | 5400 | 0.4686 |
</details>
1223version https://git-lfs.github.com/spec/v1oid sha256:4af90c7f23b49e51d466a6d8a0d86939bf37e4d8ea5c0b655ab35b7c151a05cfoid sha256:1a7b3038038d614d02d13200e3426ce1cee9998e3dd720f3ef8373fd32bc320csize 908641921223version https://git-lfs.github.com/spec/v1oid sha256:544baf7d60ab6e318f100fc6c2fccfb140e19ae226f8f7d820d236577b1da105oid sha256:da23c5a242ed1a18ccfa540abf270f8af47081a60b90b0528855f1e52bf8ac00size 1806096111223version https://git-lfs.github.com/spec/v1oid sha256:11c0cb9bd2c9c6c5c964ae0bb4e4e4872958c4dc97ac96f40f1c118dec4c9803oid sha256:43b1cabcf4d622f4eeb0e2e256d17e427254b320b0d958e0925925fc3965ffc2size 146451223version https://git-lfs.github.com/spec/v1oid sha256:afb655591367e732af512c0b489f6652e710a205ef4e8286da8729a948980ee0oid sha256:93d3edcb87fa33fd6a7048f57178907c582fac7657ef4f6ed7cd1a489f3a9b01size 13831223version https://git-lfs.github.com/spec/v1oid sha256:407fdddb74e20b064ec7452aeeae963d95b777da5e4cde56c489f916bcf701b2oid sha256:cde96e015f065de3d9994d1a7735820057fec16cad19c67655b731af60c92eccsize 14651 unmodified line234556778910725 unmodified lines7367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687691 unmodified line "best_global_step": null, "best_metric": null, "best_model_checkpoint": null, "epoch": 0.09188740259051793, "epoch": 0.095421533459384, "eval_steps": 500, "global_step": 5200, "global_step": 5400, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true,725 unmodified lines "learning_rate": 4.5927561837455834e-05, "loss": 0.4826, "step": 5200 }, { "epoch": 0.09277093530773445, "grad_norm": 3.52422833442688, "learning_rate": 4.636925795053004e-05, "loss": 0.3895, "step": 5250 }, { "epoch": 0.09365446802495096, "grad_norm": 2.1975631713867188, "learning_rate": 4.681095406360424e-05, "loss": 0.4873, "step": 5300 }, { "epoch": 0.09453800074216748, "grad_norm": 3.4910616874694824, "learning_rate": 4.725265017667845e-05, "loss": 0.4895, "step": 5350 }, { "epoch": 0.095421533459384, "grad_norm": 2.1225690841674805, "learning_rate": 4.769434628975265e-05, "loss": 0.4686, "step": 5400 } ], "logging_steps": 50,last-checkpoint/README.md+7-3
last-checkpoint/model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/rng_state.pth+1-1
last-checkpoint/scaler.pt+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+30-2