train-sentence-transformers
A Hugging Face skill for training or fine-tuning models with the sentence-transformers library: dense or static embedding models, cross-encoder rerankers, SPLADE-style sparse encoders and ColBERT-style multi-vector encoders.
What the skill teaches
A Hugging Face skill for training or fine-tuning models with the sentence-transformers library: dense or static embedding models, cross-encoder rerankers, SPLADE-style sparse encoders and ColBERT-style multi-vector encoders. The SKILL.md acts as a router: it helps the agent pick the model type, lists the reference files to read in full, sets defaults and constraints, and tells the agent to start from one of the bundled example training scripts rather than writing one from scratch. Bundled scripts cover distillation, LoRA, Matryoshka, multilingual and multi-dataset training, plus hard-negative mining.
Capabilities
- Fine-tune embedding models with sentence-transformers
- Train cross-encoder rerankers
- Train sparse and multi-vector encoders
- Mine hard negatives for training data
About
- Publisher
- Hugging Face
- Tool
- Hugging Face
Works with
Install
- Run this to add it to Any client:
hf skills add train-sentence-transformers
What's inside
- references/base_model_selection.md
- references/dataset_formats.md
- references/evaluators_cross_encoder.md
- references/evaluators_multi_vector_encoder.md
- references/evaluators_sentence_transformer.md
- references/evaluators_sparse_encoder.md
- references/hardware_guide.md
- references/hf_jobs_execution.md
- references/losses_cross_encoder.md
- references/losses_multi_vector_encoder.md
- references/losses_sentence_transformer.md
- references/losses_sparse_encoder.md
- references/model_architectures.md
- references/prompts_and_instructions.md
- references/training_args.md
- references/troubleshooting.md
- scripts/mine_hard_negatives.py
- scripts/train_cross_encoder_distillation_example.py
- scripts/train_cross_encoder_example.py
- scripts/train_cross_encoder_listwise_example.py
- scripts/train_multi_vector_encoder_example.py
- scripts/train_sentence_transformer_distillation_example.py
- scripts/train_sentence_transformer_example.py
- scripts/train_sentence_transformer_make_multilingual_example.py
- scripts/train_sentence_transformer_matryoshka_example.py
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
This skill includes scripts that your agent may run.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Hugging Face | |
| Publisher | Hugging Face | source |
| Official status | OfficialHugging Face Hub docs link to the huggingface/skills repository | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | Yes | source |
| Platforms | Not stated in its documentation | |
| AI clients | Claude Code, Cursor, Codex, Gemini CLI | source |
| Licence | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 202611,334 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from Hugging Face
1 server · 26 skills
- hf-mcp (Skill)
- hf-cli (Skill)
- hf-mem (Skill)
- huggingface-best (Skill)
- huggingface-community-evals (Skill)
- huggingface-datasets (Skill)
Sources
- README (README.md)github.com/huggingface/skills · Backs: AI clientsNov 13, 2026
- Skill file (SKILL.md)github.com/huggingface/skillsNov 10, 2026
- Licence file (LICENSE)github.com/huggingface/skills · Backs: LicenceNov 13, 2026
- Web pagehuggingface.co · Backs: Official statusNov 13, 2026
- GitHub repositorygithub.com/huggingface/skills · Backs: Publisher, Activity, LicenceNov 11, 2026
- Folder in the repository (train-sentence-transformers)github.com/huggingface/skills · Backs: Includes scriptsNov 10, 2026