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 7800, checkpoint
Browse filesFiles changed (7)
285 unmodified lines286287288289290291289290291292293294973 unmodified lines1268126912701271127212731274127512761277285 unmodified lines# Get the similarity scores for the embeddingssimilarities = model.similarity(embeddings, embeddings)print(similarities)# tensor([[1.0000, 0.6585, 0.1068],# [0.6585, 1.0000, 0.1405],# [0.1068, 0.1405, 1.0000]])# tensor([[1.0000, 0.6731, 0.0859],# [0.6731, 1.0000, 0.1039],# [0.0859, 0.1039, 1.0000]])```
<!--973 unmodified lines| 0.1325 | 7500 | 0.4791 || 0.1334 | 7550 | 0.4498 || 0.1343 | 7600 | 0.4538 || 0.1352 | 7650 | 0.4596 || 0.1361 | 7700 | 0.3508 || 0.1369 | 7750 | 0.5145 || 0.1378 | 7800 | 0.3505 |
### Framework Versions1223version https://git-lfs.github.com/spec/v1oid sha256:fd4bdcdcbc94340067a5db9757cb8dc5e18160f6e0052a5271f3a3014faaad5boid sha256:d30363d096c58d92d4b21124e0d20899b83f2936057d84481288b276849800dasize 908641921223version https://git-lfs.github.com/spec/v1oid sha256:d1614719d6dd7c8ee90660bde3185c3bc7b3a45d06a5325bcddbb32753674ab3oid sha256:b40de5614fe99b525d99f7ae3d9359f7a6761883a046bcd2268fc4693168a255size 1806096111223version https://git-lfs.github.com/spec/v1oid sha256:09557c453e6a16e29d297517245393e31d8c1c2292c9705909c930c0a8bcca5aoid sha256:c1edc586d66d6370fa77d636b436ae7dbcdf36bd23372d9a0cfe0aacbfb7c097size 146451223version https://git-lfs.github.com/spec/v1oid sha256:405bd92270a66c48608fa1efe67da0e3e668cf968c7d25ea748071fc5b6c3d6aoid sha256:85dcd40ad341a8a975b38dbdcfaddae63cf7d7e04b0cc6cd6eae6ee6f1a79543size 13831223version https://git-lfs.github.com/spec/v1oid sha256:23842e055dc64db6d0feb0d9e09209b01e916046b58ef6d199cb81b51ea994ffoid sha256:e7f33b2ef6b57ca3fea92dbaf20099472c840d5302f57356bd6135bfd1110e82size 14651 unmodified line2345567789101061 unmodified lines10721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051 unmodified line "best_global_step": null, "best_metric": null, "best_model_checkpoint": null, "epoch": 0.13429697301691082, "epoch": 0.13783110388577688, "eval_steps": 500, "global_step": 7600, "global_step": 7800, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true,1061 unmodified lines "learning_rate": 4.809644420883156e-05, "loss": 0.4538, "step": 7600 }, { "epoch": 0.13518050573412735, "grad_norm": 3.380443572998047, "learning_rate": 4.804735819049302e-05, "loss": 0.4596, "step": 7650 }, { "epoch": 0.13606403845134385, "grad_norm": 1.6248747110366821, "learning_rate": 4.799827217215449e-05, "loss": 0.3508, "step": 7700 }, { "epoch": 0.13694757116856038, "grad_norm": 1.6644774675369263, "learning_rate": 4.794918615381595e-05, "loss": 0.5145, "step": 7750 }, { "epoch": 0.13783110388577688, "grad_norm": 1.8441638946533203, "learning_rate": 4.790010013547741e-05, "loss": 0.3505, "step": 7800 } ], "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