← All skills
train-sentence-transformers
75 / 100 · Review before installing
Check before installing.
By huggingface/skills (GitHub) · other · 11,321 stars · scanned at commit 25910b3
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), `SparseEncoder` (SPLADE, sparse embedding model for learned-sparse retrieval), and `MultiVectorEncoder` (ColBERT / late-interaction, per-token embeddings scored with MaxSim). Covers loss selection…
Works with any agent that supports SKILL.md skills.
What this skill can do
Downloads and installs other software
The author does not mention this.
Found in 18 places.
Show 15 more
- skills/train-sentence-transformers/references/hf_jobs_execution.md, line 9
- Access to the `hf_jobs()` MCP tool, or the `hf` CLI (`curl -LsSf https://hf.co/cli/install.sh | bash -s`). - skills/train-sentence-transformers/references/model_architectures.md, line 141
Install multimodal extras: `pip install "sentence-transformers[image]"` (or `[audio]`, `[video]`). - skills/train-sentence-transformers/references/training_args.md, line 192
- **W&B** for larger teams or sweep / report features. `pip install wandb && wandb login` (or set `WANDB_API_KEY`). - skills/train-sentence-transformers/references/training_args.md, line 251
Install a backend: `pip install optuna` (or `ray[tune]`). - skills/train-sentence-transformers/references/troubleshooting.md, line 90
- Trackio: confirm `pip install trackio` succeeded. No login step. Trackio uses your `HF_TOKEN` (set by `hf auth login` or the `HF_TOKEN` env var). On HF Jobs, - skills/train-sentence-transformers/scripts/train_cross_encoder_distillation_example.py, line 34
pip install "sentence-transformers[train]>=5.0" - skills/train-sentence-transformers/scripts/train_cross_encoder_example.py, line 24
pip install "sentence-transformers[train]>=5.0" - skills/train-sentence-transformers/scripts/train_cross_encoder_listwise_example.py, line 36
pip install "sentence-transformers[train]>=5.0" - skills/train-sentence-transformers/scripts/train_multi_vector_encoder_example.py, line 23
pip install "sentence-transformers[train]>=6.0" - skills/train-sentence-transformers/scripts/train_sentence_transformer_example.py, line 23
pip install "sentence-transformers[train]>=5.0" - skills/train-sentence-transformers/scripts/train_sentence_transformer_matryoshka_example.py, line 21
pip install "sentence-transformers[train]>=5.0" - skills/train-sentence-transformers/scripts/train_sentence_transformer_static_embedding_example.py, line 39
pip install "sentence-transformers[train]>=5.0" - skills/train-sentence-transformers/scripts/train_sentence_transformer_with_lora_example.py, line 70
`pip install bitsandbytes` first. Linux-only for bitsandbytes (Windows: the - skills/train-sentence-transformers/scripts/train_sparse_encoder_distillation_example.py, line 30
pip install "sentence-transformers[train]>=5.0" - skills/train-sentence-transformers/scripts/train_sparse_encoder_example.py, line 23
pip install "sentence-transformers[train]>=5.0"
Runs commands on your computer
The author does not mention this.
Found in 1 place.
Sends data to these websites: hf.co
The author does not mention this.
Found in 1 place.
Safer alternatives
Low-risk skills in the same category (other) that look related. Check that one does what you need.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'train-sentence-transformers' ] || [ -L ~/.agents/skills/'train-sentence-transformers' ]; then echo 'A skill folder named train-sentence-transformers already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/huggingface/skills' "$d" && git -C "$d" checkout --quiet '25910b3d0ba31a2ba102f901cdc9e008c278a69c' -- 'skills/train-sentence-transformers' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/train-sentence-transformers' ~/.agents/skills/'train-sentence-transformers' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'train-sentence-transformers' ~/.claude/skills/'train-sentence-transformers' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
The badge for huggingface/skills shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/huggingface/skills/)
Score history
| Date | Version | Score |
|---|
| 2026-11-08 | 25910b3 | 75 |
| 2026-11-06 | 25910b3 | 55 |