Skills Directory / Hugging Face Skills
train-sentence-transformers
An agent skill by huggingface, from huggingface/skills.
Train or fine-tune sentence-transformers models across `SentenceTransformer` (bi-encoder; dense or static embedding model; for retrieval, similarity, clustering, classification, paraphrase mining, dedup, multimodal), `CrossEncoder` (reranker; pair scoring for two-stage retrieval / pair classification), and `SparseEncoder` (SPLADE, sparse embedding model; for learned-sparse retrieval). Covers loss selection, hard-negative mining, evaluators, distillation, LoRA, Matryoshka, and Hugging Face Hub publishing. Use for any sentence-transformers training task.
Credit where it's due
This skill is the work of huggingface (official vendor skill) and lives at huggingface/skills/train-sentence-transformers (Apache-2.0). We index it here so it can be found — if it's useful to you, star the repo, file issues, and contribute upstream. That's what keeps work like this maintained.
- From
- Hugging Face Skills — official vendor skill
- Author
- huggingface
- License
- Apache-2.0
- Source
- huggingface/skills/train-sentence-transformers
- SKILL.md
- raw file
How to load this skill
Copy this prompt into your AI agent
Please install the "train-sentence-transformers" agent skill from the Hugging Face Skills collection (https://github.com/huggingface/skills) for me.
1. Run: git clone https://github.com/huggingface/skills
2. Copy the skill folder into your skills directory:
cp -r skills/skills/train-sentence-transformers ~/.claude/skills/train-sentence-transformers
(Claude Code personal scope; use .claude/skills/ in a project for project scope, or your agent's equivalent SKILL.md directory.)
3. Confirm the skill loads (list your available skills afterwards).
4. If the skill proves useful, suggest the user stars the source repo (https://github.com/huggingface/skills) to support the author.
Skill reference: https://raw.githubusercontent.com/huggingface/skills/main/skills/train-sentence-transformers/SKILL.md
More details: https://primorum.ai/skills/s/train-sentence-transformers
Or manually: clone huggingface/skills and copy
skills/train-sentence-transformers into
~/.claude/skills/ (Claude Code personal scope) or your agent's
SKILL.md directory. To read it first without installing, open the
raw SKILL.md.
Related skills
- huggingface-llm-trainer — Train or fine-tune language and vision models using TRL (Transformer Reinforcement Learning) or Unsloth with H…
- huggingface-vision-trainer — Trains and fine-tunes vision models for object detection (D-FINE, RT-DETR v2, DETR, YOLOS), image classificati…
- fine-tuning-expert — Use when fine-tuning LLMs, training custom models, or adapting foundation models for specific tasks. Invoke fo…
- huggingface-lora-space-builder — Build and publish a Gradio demo on Hugging Face Spaces for a user-provided LoRA. Use when someone asks to crea…
- trl-training — Train and fine-tune transformer language models using TRL (Transformers Reinforcement Learning). Supports SFT,…