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 1000, checkpoint
Browse filesFiles changed (7)
285 unmodified lines286287288289290291292293294945 unmodified lines124012411242124312441245285 unmodified lines# Get the similarity scores for the embeddingssimilarities = model.similarity(embeddings, embeddings)print(similarities)# tensor([[1.0000, 0.5922, 0.0910],# [0.5922, 1.0000, 0.1485],# [0.0910, 0.1485, 1.0000]])```<!--945 unmodified lines| 0.0124 | 700 | 0.7701 || 0.0133 | 750 | 0.7525 || 0.0141 | 800 | 0.7097 |### Framework Versions285 unmodified lines286287288289290291292293294945 unmodified lines1240124112421243124412451246124712481249285 unmodified lines# Get the similarity scores for the embeddingssimilarities = model.similarity(embeddings, embeddings)print(similarities)# tensor([[1.0000, 0.5961, 0.1032],# [0.5961, 1.0000, 0.1553],# [0.1032, 0.1553, 1.0000]])```<!--945 unmodified lines| 0.0124 | 700 | 0.7701 || 0.0133 | 750 | 0.7525 || 0.0141 | 800 | 0.7097 || 0.0150 | 850 | 0.7575 || 0.0159 | 900 | 0.6899 || 0.0168 | 950 | 0.6655 || 0.0177 | 1000 | 0.6601 |### Framework Versions
123version https://git-lfs.github.com/spec/v1oid sha256:4edf45758f8655b39949040bb376942e3eaf9cabfbd997bdd27d281a59e48fd7size 90864192123version https://git-lfs.github.com/spec/v1oid sha256:897e48ca4a1b0c79cf2429b6ef4ca73b309f3c5bcc06ba0c170b921c50590ea0size 90864192
123version https://git-lfs.github.com/spec/v1oid sha256:b860245e653a414010bafe2c3c8174c59f95411463e02d1f20aed248e44dc779size 180609611123version https://git-lfs.github.com/spec/v1oid sha256:4b5b75bdfd9f13b9fd5af71157d29fb1f2150a495f511bd4c3ae1ede089c6f6esize 180609611
123version https://git-lfs.github.com/spec/v1oid sha256:6604fa50a947bb7a8c4e40ff3e2a5641ad506d5aa6a161b0cd0a5fa0c1d78ee8size 14645123version https://git-lfs.github.com/spec/v1oid sha256:435c96c122df13db75824be5f8aff8593c48e01c0d3f8f0275499435e34f1b52size 14645
123version https://git-lfs.github.com/spec/v1oid sha256:6fef122931c86c2d2736773be787da21ac6460d41580735381e953556fb410besize 1383123version https://git-lfs.github.com/spec/v1oid sha256:14ae2a2128444abab378aa06c09a61a84665f758fcc19fc46f5789b0bc1b5665size 1383
123version https://git-lfs.github.com/spec/v1oid sha256:8ec1539c27d7283f1e5aca2a0dde35cb977a77f34c850320b82d506a15f4bbbbsize 1465123version https://git-lfs.github.com/spec/v1oid sha256:dfb73f8c20bf0b1f8fb2141f8979207ef099f052597bee612ca21a5ed63b4554size 1465
1 unmodified line2345678910109 unmodified lines1201211221231241251 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 0.014136523475464296,"eval_steps": 500,"global_step": 800,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,109 unmodified lines"learning_rate": 7.058303886925795e-06,"loss": 0.7097,"step": 800}],"logging_steps": 50,1 unmodified line2345678910109 unmodified lines1201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 0.01767065434433037,"eval_steps": 500,"global_step": 1000,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,109 unmodified lines"learning_rate": 7.058303886925795e-06,"loss": 0.7097,"step": 800},{"epoch": 0.015020056192680814,"grad_norm": 3.297929286956787,"learning_rate": 7.5e-06,"loss": 0.7575,"step": 850},{"epoch": 0.015903588909897334,"grad_norm": 4.028406143188477,"learning_rate": 7.941696113074205e-06,"loss": 0.6899,"step": 900},{"epoch": 0.016787121627113853,"grad_norm": 2.2513041496276855,"learning_rate": 8.38339222614841e-06,"loss": 0.6655,"step": 950},{"epoch": 0.01767065434433037,"grad_norm": 2.402355670928955,"learning_rate": 8.825088339222614e-06,"loss": 0.6601,"step": 1000}],"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