Sentence Similarity
sentence-transformers
Safetensors
mpnet
feature-extraction
job-matching
skill-similarity
embeddings
esco
text-embeddings-inference
Run this model with HF Jobs
Run alvperez/skill-sim-model 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/alvperez/skill-sim-model. 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/alvperez/skill-sim-model 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 alvperez/skill-sim-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use alvperez/skill-sim-model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("alvperez/skill-sim-model") 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
Update README.md
Browse files1231 unmodified line56789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081821 unmodified line848586878889---library_name: sentence-transformerspipeline_tag: sentence-similarity1 unmodified line- sentence-transformers- feature-extraction- sentence-similarity---# {MODEL_NAME}This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.<!--- Describe your model here -->## Usage (Sentence-Transformers)Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:```pip install -U sentence-transformers```Then you can use the model like this:```pythonfrom sentence_transformers import SentenceTransformersentences = ["This is an example sentence", "Each sentence is converted"]model = SentenceTransformer('{MODEL_NAME}')embeddings = model.encode(sentences)print(embeddings)```## Evaluation Results<!--- Describe how your model was evaluated -->For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name={MODEL_NAME})## TrainingThe model was trained with the parameters:**DataLoader**:`torch.utils.data.dataloader.DataLoader` of length 409 with parameters:```{'batch_size': 32, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}```**Loss**:`sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss`Parameters of the fit()-Method:```{"epochs": 5,"evaluation_steps": 100,"evaluator": "sentence_transformers.evaluation.EmbeddingSimilarityEvaluator.EmbeddingSimilarityEvaluator","max_grad_norm": 1,"optimizer_class": "<class 'torch.optim.adamw.AdamW'>","optimizer_params": {"lr": 2e-05},"scheduler": "WarmupLinear","steps_per_epoch": null,"warmup_steps": 100,"weight_decay": 0.01}```## Full Model Architecture```SentenceTransformer((0): Transformer({'max_seq_length': 384, 'do_lower_case': False}) with Transformer model: MPNetModel(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False})1 unmodified line)```## Citing & Authors<!--- Describe where people can find more information -->12341 unmodified line67891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041 unmodified line106107108109110111112113114115116```markdown---library_name: sentence-transformerspipeline_tag: sentence-similarity1 unmodified line- sentence-transformers- feature-extraction- sentence-similarity- job-matching- skill-similarity- embeddings---# alvperez/skill-sim-modelThis is a fine-tuned [sentence-transformers](https://www.SBERT.net) model for **skill similarity** and **job matching**. It maps short skill phrases (e.g., `Python`, `Forklift Operation`, `Electrical Wiring`) into a 768-dimensional embedding space, where semantically related skills are closer together.It can be used for:- Matching candidates to job requirements- Measuring similarity between skills- Clustering and grouping skill sets- Resume parsing or job recommendation systems---## 🧪 Usage (Sentence-Transformers)To use this model:```bashpip install -U sentence-transformers``````pythonfrom sentence_transformers import SentenceTransformermodel = SentenceTransformer('alvperez/skill-sim-model')skills = ["Electrical Wiring", "Circuit Troubleshooting", "Machine Learning"]embeddings = model.encode(skills)print(embeddings.shape) # (3, 768)```---## 🧭 Evaluation ResultsThe model was evaluated on a labeled skill similarity dataset using the following metrics:| Metric | Value ||----------------------|---------|| Spearman Correlation | 0.8612 || ROC AUC | 0.9127 |These scores indicate strong alignment with human-labeled skill similarity ratings.---## 🧠 Training DetailsThe model was fine-tuned on a custom skill similarity dataset using `CosineSimilarityLoss`.### **DataLoader**`torch.utils.data.dataloader.DataLoader` of length 409 with parameters:```python{'batch_size': 32, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}```### **Loss**```pythonsentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss```### **Training Parameters**```python{"epochs": 5,"evaluation_steps": 100,"evaluator": "EmbeddingSimilarityEvaluator","max_grad_norm": 1,"optimizer_class": "AdamW","optimizer_params": {"lr": 2e-05},"scheduler": "WarmupLinear","warmup_steps": 100,"weight_decay": 0.01}```---## 🧬 Model Architecture```pythonSentenceTransformer((0): Transformer({'max_seq_length': 384, 'do_lower_case': False}) with Transformer model: MPNetModel(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False})1 unmodified line)```---## 📚 Citation & Attribution- Model fine-tuned by [@alvperez](https://huggingface.co/alvperez)- Built with [Sentence-Transformers](https://www.sbert.net/)- Inspired by semantic search and skill-matching use cases```
README.md+58-31