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 2400, checkpoint
Browse filesFiles changed (7)
285 unmodified lines286287288289290291292293294973 unmodified lines126812691270127112721273285 unmodified lines# Get the similarity scores for the embeddingssimilarities = model.similarity(embeddings, embeddings)print(similarities)# tensor([[1.0000, 0.6084, 0.1042],# [0.6084, 1.0000, 0.1457],# [0.1042, 0.1457, 1.0000]])```<!--973 unmodified lines| 0.0371 | 2100 | 0.5966 || 0.0380 | 2150 | 0.5989 || 0.0389 | 2200 | 0.5097 |### Framework Versions285 unmodified lines286287288289290291292293294973 unmodified lines1268126912701271127212731274127512761277285 unmodified lines# Get the similarity scores for the embeddingssimilarities = model.similarity(embeddings, embeddings)print(similarities)# tensor([[1.0000, 0.5939, 0.0989],# [0.5939, 1.0000, 0.1429],# [0.0989, 0.1429, 1.0000]])```<!--973 unmodified lines| 0.0371 | 2100 | 0.5966 || 0.0380 | 2150 | 0.5989 || 0.0389 | 2200 | 0.5097 || 0.0398 | 2250 | 0.4934 || 0.0406 | 2300 | 0.5354 || 0.0415 | 2350 | 0.5236 || 0.0424 | 2400 | 0.5057 |### Framework Versions
123version https://git-lfs.github.com/spec/v1oid sha256:43e276da028dbf8b1ad5144673c6ce3925a2b3aabd87a44547c55a6459e20d87size 90864192123version https://git-lfs.github.com/spec/v1oid sha256:0c241b1c1e2bc79f90ea3e691425a4d078b73a1355962e0a546f6d5b25945da0size 90864192
123version https://git-lfs.github.com/spec/v1oid sha256:93cc133162fde43973a8ccb2ec2dfc87437cbd187213b067665594adaa028144size 180609611123version https://git-lfs.github.com/spec/v1oid sha256:64ba4f5c69a3d02a5a6823d34b8da6ff44cacb16550bdd25ab1d7402501d6357size 180609611
123version https://git-lfs.github.com/spec/v1oid sha256:e3c956e4b6b1160a43d807052e2f2f064099f54437c58331d632ad556682176fsize 14645123version https://git-lfs.github.com/spec/v1oid sha256:1d318191f63943626d0af0c2a2dffd47f5f97e52b9ffb5b4186681760d24fbc1size 14645
123version https://git-lfs.github.com/spec/v1oid sha256:1f6829e47549862e022b4eedf087cf81394f448150e958ad6663988076bf8691size 1383123version https://git-lfs.github.com/spec/v1oid sha256:7da7c5085795b13d2bf0030671cbddb9f62ae43221bf1424a3830d4cf8c19012size 1383
123version https://git-lfs.github.com/spec/v1oid sha256:fdfc272a547d5b2f74b766d251fe9186a84058fe1c0528c0560d11ed37d05aa5size 1465123version https://git-lfs.github.com/spec/v1oid sha256:f85f103e0fd23f9c136b70ea64be4bf637404426959df56180c10126efe39d0asize 1465
1 unmodified line2345678910305 unmodified lines3163173183193203211 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 0.038875439557526814,"eval_steps": 500,"global_step": 2200,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,305 unmodified lines"learning_rate": 1.9425795053003533e-05,"loss": 0.5097,"step": 2200}],"logging_steps": 50,1 unmodified line2345678910305 unmodified lines3163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483491 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 0.04240957042639289,"eval_steps": 500,"global_step": 2400,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,305 unmodified lines"learning_rate": 1.9425795053003533e-05,"loss": 0.5097,"step": 2200},{"epoch": 0.039758972274743336,"grad_norm": 2.274600028991699,"learning_rate": 1.986749116607774e-05,"loss": 0.4934,"step": 2250},{"epoch": 0.04064250499195985,"grad_norm": 2.393251895904541,"learning_rate": 2.0309187279151945e-05,"loss": 0.5354,"step": 2300},{"epoch": 0.04152603770917637,"grad_norm": 2.613900899887085,"learning_rate": 2.075088339222615e-05,"loss": 0.5236,"step": 2350},{"epoch": 0.04240957042639289,"grad_norm": 2.233302116394043,"learning_rate": 2.1192579505300354e-05,"loss": 0.5057,"step": 2400}],"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