Sentence Similarity
sentence-transformers
PyTorch
TensorBoard
Safetensors
Transformers
English
German
t5
text-embedding
embeddings
information-retrieval
beir
text-classification
language-model
text-clustering
text-semantic-similarity
text-evaluation
prompt-retrieval
text-reranking
feature-extraction
English
Sentence Similarity
natural_questions
ms_marco
fever
hotpot_qa
mteb
Run this model with HF Jobs
Run pascalhuerten/instructor-skillfit 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/pascalhuerten/instructor-skillfit. 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/pascalhuerten/instructor-skillfit 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 pascalhuerten/instructor-skillfit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use pascalhuerten/instructor-skillfit with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("pascalhuerten/instructor-skillfit") 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] - Transformers
How to use pascalhuerten/instructor-skillfit with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("pascalhuerten/instructor-skillfit") model = AutoModel.from_pretrained("pascalhuerten/instructor-skillfit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add short description and example for skill retrieval task
Browse files2522 unmodified lines252325242525252625272528252925302522 unmodified lines- type: max_f1value: 78.39889075384951---# hkunlp/instructor-baseWe introduce **Instructor**👨🏫, an instruction-finetuned text embedding model that can generate text embeddings tailored to any task (e.g., classification, retrieval, clustering, text evaluation, etc.) and domains (e.g., science, finance, etc.) ***by simply providing the task instruction, without any finetuning***. Instructor👨 achieves sota on 70 diverse embedding tasks!The model is easy to use with **our customized** `sentence-transformer` library. For more details, check out [our paper](https://arxiv.org/abs/2212.09741) and [project page](https://instructor-embedding.github.io/)!2522 unmodified lines252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482522 unmodified lines- type: max_f1value: 78.39889075384951---# pascalhuerten/instructor-skillfitA finetuning of hkunlp/instructor-base specialized on performing retrival of relevant skills based on a given learning outcome.## Skill RetrievalYou can use **customized embeddings** for skill retrieval.```pythonimport numpy as npfrom sklearn.metrics.pairwise import cosine_similarityquery = [['Represent the learning outcome for retrieval: : ','WordPress installieren\nWebsite- oder Blogplanung\nPlugins und Widges einfügen']]corpus = [['Represent the skill for retrieval: ','WordPress'],['Represent the skill for retrieval: ','Website-Wireframe erstellen'],['Represent the skill for retrieval: ','Software für Content-Management-Systeme nutzen']]query_embeddings = model.encode(query)corpus_embeddings = model.encode(corpus)similarities = cosine_similarity(query_embeddings,corpus_embeddings)retrieved_doc_id = np.argmax(similarities)print(retrieved_doc_id)```## hkunlp/instructor-baseWe introduce **Instructor**👨🏫, an instruction-finetuned text embedding model that can generate text embeddings tailored to any task (e.g., classification, retrieval, clustering, text evaluation, etc.) and domains (e.g., science, finance, etc.) ***by simply providing the task instruction, without any finetuning***. Instructor👨 achieves sota on 70 diverse embedding tasks!The model is easy to use with **our customized** `sentence-transformer` library. For more details, check out [our paper](https://arxiv.org/abs/2212.09741) and [project page](https://instructor-embedding.github.io/)!
README.md+19-1