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 600, 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.5864, 0.0912],# [0.5864, 1.0000, 0.1606],# [0.0912, 0.1606, 1.0000]])# tensor([[1.0000, 0.5948, 0.0953],# [0.5948, 1.0000, 0.1617],# [0.0953, 0.1617, 1.0000]])```
<!--937 unmodified lines| 0.0053 | 300 | 0.8566 || 0.0062 | 350 | 0.8697 || 0.0071 | 400 | 0.8099 || 0.0080 | 450 | 0.766 || 0.0088 | 500 | 0.7402 || 0.0097 | 550 | 0.8769 || 0.0106 | 600 | 0.6827 |
### Framework Versions1223version https://git-lfs.github.com/spec/v1oid sha256:b7d724aabf27686f2b045b9371c8395667163c1ae289641d98c04d67af681113oid sha256:0331d85acd4fecdd2f31fd21e71c37b15d11fa5d95f1960167c2115865d268ebsize 908641921223version https://git-lfs.github.com/spec/v1oid sha256:3833c1087a6615d0a9885551a669b19c4bbab287f26ffb8c0f28cb2d0ecbe7c9oid sha256:f0f2a519dd6cd0c172d7135799f3099fbcc09a2457a9690f71edda228c1586f6size 1806096111223version https://git-lfs.github.com/spec/v1oid sha256:254790d1ccb1862da57b7a7e387a7afb33ae0567b70cc27cd18377286c351f30oid sha256:c2615f3b3d60e5b013a5494b0df662cc433db404a047bf2af8ab2c80fe288cfcsize 146451223version https://git-lfs.github.com/spec/v1oid sha256:30858f23bcb22d0baef45bd4add9d6fa474141308c12653c706077b87d932e49oid sha256:cb7fde5111803012042c93a73aa191336bb6e10b3ad44f6bd1d94fc7008a22b6size 13831223version https://git-lfs.github.com/spec/v1oid sha256:c72cad2d603ca6a379ea320d48002510dd9f27b4826fefb43b627b20d6176f70oid sha256:b1791894c32e6460fc9c57eab981d0af91d945f1bc12022ff9b5f30caaac5c8bsize 14651 unmodified line23455677891053 unmodified lines646566676869707172737475767778798081828384858687888990919293949596971 unmodified line "best_global_step": null, "best_metric": null, "best_model_checkpoint": null, "epoch": 0.007068261737732148, "epoch": 0.010602392606598222, "eval_steps": 500, "global_step": 400, "global_step": 600, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true,53 unmodified lines "learning_rate": 3.5247349823321555e-06, "loss": 0.8099, "step": 400 }, { "epoch": 0.007951794454948667, "grad_norm": 3.2528891563415527, "learning_rate": 3.966431095406361e-06, "loss": 0.766, "step": 450 }, { "epoch": 0.008835327172165185, "grad_norm": 4.1086039543151855, "learning_rate": 4.408127208480566e-06, "loss": 0.7402, "step": 500 }, { "epoch": 0.009718859889381704, "grad_norm": 3.8160510063171387, "learning_rate": 4.849823321554771e-06, "loss": 0.8769, "step": 550 }, { "epoch": 0.010602392606598222, "grad_norm": 2.901653289794922, "learning_rate": 5.291519434628975e-06, "loss": 0.6827, "step": 600 } ], "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