Agent SkillsML · ModelsOfficial

train-sentence-transformers

skills/train-sentence-transformers · huggingface/skills · by Hugging Face

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, hard-negative mining, evaluators, distillation, LoRA, Matryoshka, and Hugging Face Hub publishing. Use for any sentence-transformers training task.

Repo stars
11,351
huggingface/skills · 2026-11-15
Last commit
2026-08-18
to this skill folder
Files
31
14 scripts
License
Apache-2.0
repository license

Source · GitHub API and the SKILL.md frontmatter, read 2026-11-15 · stars are for the whole huggingface/skills repository

Ready-to-paste · from the repository README and the skill folder

# Copy this skill folder into your personal Claude Code skills
git clone --depth 1 --filter=blob:none --sparse --branch main https://github.com/huggingface/skills.git /tmp/train-sentence-transformers-src
git -C /tmp/train-sentence-transformers-src sparse-checkout set skills/train-sentence-transformers
mkdir -p ~/.claude/skills
cp -R /tmp/train-sentence-transformers-src/skills/train-sentence-transformers ~/.claude/skills/train-sentence-transformers
Claude Code reads skills from ~/.claude/skills/<name>/SKILL.md.Claude Code docs
Ecosystem · Agent Skills

Skill repositories from other publishers in the open Agent Skills format (agentskills.io) · a folder with a SKILL.md plus optional scripts and resources, read by any client that supports the format.

Files · 31
SKILL.mdreferences/base_model_selection.mdreferences/dataset_formats.mdreferences/evaluators_cross_encoder.mdreferences/evaluators_multi_vector_encoder.mdreferences/evaluators_sentence_transformer.mdreferences/evaluators_sparse_encoder.mdreferences/hardware_guide.mdreferences/hf_jobs_execution.mdreferences/losses_cross_encoder.mdreferences/losses_multi_vector_encoder.mdreferences/losses_sentence_transformer.mdreferences/losses_sparse_encoder.mdreferences/model_architectures.mdreferences/prompts_and_instructions.mdreferences/training_args.mdreferences/troubleshooting.mdscripts/mine_hard_negatives.pyscripts/train_cross_encoder_distillation_example.pyscripts/train_cross_encoder_example.pyscripts/train_cross_encoder_listwise_example.pyscripts/train_multi_vector_encoder_example.pyscripts/train_sentence_transformer_distillation_example.pyscripts/train_sentence_transformer_example.pyscripts/train_sentence_transformer_make_multilingual_example.pyscripts/train_sentence_transformer_matryoshka_example.pyscripts/train_sentence_transformer_multi_dataset_example.pyscripts/train_sentence_transformer_static_embedding_example.pyscripts/train_sentence_transformer_with_lora_example.pyscripts/train_sparse_encoder_distillation_example.pyscripts/train_sparse_encoder_example.py
Scripts · 14
scripts/mine_hard_negatives.pyscripts/train_cross_encoder_distillation_example.pyscripts/train_cross_encoder_example.pyscripts/train_cross_encoder_listwise_example.pyscripts/train_multi_vector_encoder_example.pyscripts/train_sentence_transformer_distillation_example.pyscripts/train_sentence_transformer_example.pyscripts/train_sentence_transformer_make_multilingual_example.pyscripts/train_sentence_transformer_matryoshka_example.pyscripts/train_sentence_transformer_multi_dataset_example.pyscripts/train_sentence_transformer_static_embedding_example.pyscripts/train_sentence_transformer_with_lora_example.pyscripts/train_sparse_encoder_distillation_example.pyscripts/train_sparse_encoder_example.py

Same repository · huggingface/skills · latest commit first

Drop into your README · links to this skill page

train-sentence-transformers · listed on BenchGecko
[![train-sentence-transformers · listed on BenchGecko](https://benchgecko.ai/badge/skill/huggingface-train-sentence-transformers.svg)](https://benchgecko.ai/skills/huggingface-train-sentence-transformers)
The badge shows the skill ecosystem label · BenchGecko does not rate skills.

Built from the GitHub data above

What is train-sentence-transformers?

train-sentence-transformers is a Agent Skills agent skill by Hugging Face, in the skills/train-sentence-transformers folder of the huggingface/skills repository (BenchGecko category: ML · Models). Its SKILL.md describes it as: 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, hard-negative mining, evaluators, distillation, LoRA, Matryoshka, and Hugging Face Hub publishing. Use for any sentence-transformers training task.

Where does this data come from?

From GitHub, read 2026-11-15: the name and description from the SKILL.md frontmatter, 31 files from the repository tree, the last commit to the folder on 2026-08-18, and 11,351 stars for the whole huggingface/skills repository. BenchGecko does not rate skills.

How do I install train-sentence-transformers?

Copy the skills/train-sentence-transformers folder into ~/.claude/skills/ for Claude Code, use the command from the huggingface/skills README, or point any client that supports the Agent Skills format at the folder. Ready-to-paste snippets are above.

Is train-sentence-transformers official?

train-sentence-transformers is published in huggingface/skills, a repository owned by the Hugging Face organization on GitHub.

Keep exploring the BenchGecko graph