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 800, checkpoint
Browse filesFiles changed (7)
285 unmodified lines286287288289290291292293294941 unmodified lines123612371238123912401241285 unmodified lines# Get the similarity scores for the embeddingssimilarities = model.similarity(embeddings, embeddings)print(similarities)# tensor([[1.0000, 0.5948, 0.0953],# [0.5948, 1.0000, 0.1617],# [0.0953, 0.1617, 1.0000]])```<!--941 unmodified lines| 0.0088 | 500 | 0.7402 || 0.0097 | 550 | 0.8769 || 0.0106 | 600 | 0.6827 |### Framework Versions285 unmodified lines286287288289290291292293294941 unmodified lines1236123712381239124012411242124312441245285 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]])```<!--941 unmodified lines| 0.0088 | 500 | 0.7402 || 0.0097 | 550 | 0.8769 || 0.0106 | 600 | 0.6827 || 0.0115 | 650 | 0.7252 || 0.0124 | 700 | 0.7701 || 0.0133 | 750 | 0.7525 || 0.0141 | 800 | 0.7097 |### Framework Versions
123version https://git-lfs.github.com/spec/v1oid sha256:0331d85acd4fecdd2f31fd21e71c37b15d11fa5d95f1960167c2115865d268ebsize 90864192123version https://git-lfs.github.com/spec/v1oid sha256:4edf45758f8655b39949040bb376942e3eaf9cabfbd997bdd27d281a59e48fd7size 90864192
123version https://git-lfs.github.com/spec/v1oid sha256:f0f2a519dd6cd0c172d7135799f3099fbcc09a2457a9690f71edda228c1586f6size 180609611123version https://git-lfs.github.com/spec/v1oid sha256:b860245e653a414010bafe2c3c8174c59f95411463e02d1f20aed248e44dc779size 180609611
123version https://git-lfs.github.com/spec/v1oid sha256:c2615f3b3d60e5b013a5494b0df662cc433db404a047bf2af8ab2c80fe288cfcsize 14645123version https://git-lfs.github.com/spec/v1oid sha256:6604fa50a947bb7a8c4e40ff3e2a5641ad506d5aa6a161b0cd0a5fa0c1d78ee8size 14645
123version https://git-lfs.github.com/spec/v1oid sha256:cb7fde5111803012042c93a73aa191336bb6e10b3ad44f6bd1d94fc7008a22b6size 1383123version https://git-lfs.github.com/spec/v1oid sha256:6fef122931c86c2d2736773be787da21ac6460d41580735381e953556fb410besize 1383
123version https://git-lfs.github.com/spec/v1oid sha256:b1791894c32e6460fc9c57eab981d0af91d945f1bc12022ff9b5f30caaac5c8bsize 1465123version https://git-lfs.github.com/spec/v1oid sha256:8ec1539c27d7283f1e5aca2a0dde35cb977a77f34c850320b82d506a15f4bbbbsize 1465
1 unmodified line234567891081 unmodified lines9293949596971 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 0.010602392606598222,"eval_steps": 500,"global_step": 600,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,81 unmodified lines"learning_rate": 5.291519434628975e-06,"loss": 0.6827,"step": 600}],"logging_steps": 50,1 unmodified line234567891081 unmodified lines92939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251 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,81 unmodified lines"learning_rate": 5.291519434628975e-06,"loss": 0.6827,"step": 600},{"epoch": 0.011485925323814742,"grad_norm": 2.5824739933013916,"learning_rate": 5.73321554770318e-06,"loss": 0.7252,"step": 650},{"epoch": 0.01236945804103126,"grad_norm": 2.586138963699341,"learning_rate": 6.174911660777385e-06,"loss": 0.7701,"step": 700},{"epoch": 0.013252990758247778,"grad_norm": 2.3450210094451904,"learning_rate": 6.6166077738515904e-06,"loss": 0.7525,"step": 750},{"epoch": 0.014136523475464296,"grad_norm": 2.7902042865753174,"learning_rate": 7.058303886925795e-06,"loss": 0.7097,"step": 800}],"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