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 6000, checkpoint
Browse filesFiles changed (7)
285 unmodified lines286287288289290291289290291292293294937 unmodified lines1232123312341235123612371238123912401241285 unmodified lines# Get the similarity scores for the embeddingssimilarities = model.similarity(embeddings, embeddings)print(similarities)# tensor([[1.0000, 0.6669, 0.1451],# [0.6669, 1.0000, 0.1936],# [0.1451, 0.1936, 1.0000]])# tensor([[1.0000, 0.6825, 0.0849],# [0.6825, 1.0000, 0.1574],# [0.0849, 0.1574, 1.0000]])```
<!--937 unmodified lines| 0.1007 | 5700 | 0.4184 || 0.1016 | 5750 | 0.4071 || 0.1025 | 5800 | 0.4712 || 0.1034 | 5850 | 0.4912 || 0.1043 | 5900 | 0.5589 || 0.1051 | 5950 | 0.4507 || 0.1060 | 6000 | 0.5429 |
### Framework Versions1223version https://git-lfs.github.com/spec/v1oid sha256:6b1fc49cbbc6de240aabdb3e829a6fb3a584632f32e0ea34f9bb45772c0982c3oid sha256:7789fd8be583c6cd52a2b3c49d3926b4c97ae306770f1629fc1b7121d168f986size 908641921223version https://git-lfs.github.com/spec/v1oid sha256:0f0b3ed8d536c4513e2829f064dedb563ad605e8571308e2634efeb29d7ca8e1oid sha256:d02388678163538169399bda8fffa8df551692b3bfa9b7ca53bde07a66c2a6e0size 1806096111223version https://git-lfs.github.com/spec/v1oid sha256:0fe30117f944b13ee1472ebd35dfced5e5d0513a4a73eff292237f1226a5bd67oid sha256:f72d2db1e1a80b4db59e84d70863f853ea4793c1b3630fdd9ffed5098f03c668size 146451223version https://git-lfs.github.com/spec/v1oid sha256:7593f1811ddf23427f9722ba36181188ba02d4c1acd9e1296ff517e858104491oid sha256:7bb2b51b22f222dc6df63edb791d76de5de25b8bb724e885f8753e34cfb8ae10size 13831223version https://git-lfs.github.com/spec/v1oid sha256:b0a1656fa44372deb310837f6e5c3a0395ee0a01d6c02b0b4d93ed8ab693ca68oid sha256:df255e26e463b4fc70f27b3a2f6c9b68f20dc79363ed0890520e03d68a77d6b1size 14651 unmodified line234556778910809 unmodified lines8208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528531 unmodified line "best_global_step": null, "best_metric": null, "best_model_checkpoint": null, "epoch": 0.10248979519711615, "epoch": 0.10602392606598222, "eval_steps": 500, "global_step": 5800, "global_step": 6000, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true,809 unmodified lines "learning_rate": 4.986354086901887e-05, "loss": 0.4712, "step": 5800 }, { "epoch": 0.10337332791433267, "grad_norm": 4.2943434715271, "learning_rate": 4.9814454850680335e-05, "loss": 0.4912, "step": 5850 }, { "epoch": 0.10425686063154918, "grad_norm": 2.398043632507324, "learning_rate": 4.97653688323418e-05, "loss": 0.5589, "step": 5900 }, { "epoch": 0.10514039334876571, "grad_norm": 1.9587973356246948, "learning_rate": 4.9716282814003265e-05, "loss": 0.4507, "step": 5950 }, { "epoch": 0.10602392606598222, "grad_norm": 2.0629475116729736, "learning_rate": 4.966719679566473e-05, "loss": 0.5429, "step": 6000 } ], "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