Agent skill · AI & Agents

train-sentence-transformers

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...

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorships scriptsMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill train-sentence-transformers --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 28
SKILL.md size: 9 KB
Bundled scripts: yes
Path: skills/train-sentence-transformers/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Train a sentence-transformers Model ## When to Use Use this skill when you need 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... **This SKILL.md is a router, not a manual.** It tells you which references and example scripts to load for your task. The actual content — recommended losses, evaluators, training-script structure, model selection, training-arg knobs, troubleshooting — lives in `references/` and `scripts/`. **Do not synthesize a training script from this file alone.** Open the per-type production template (`scripts/train_<type>_example.py`) and copy it as your starting point. The templates contain load-bearing scaffolding (autocast helper, model-card class, logger silencing list, `force=True`, `seed`, TF32, version-compatible imports, named-evaluator metric handling) that prior agent runs have repeatedly missed when rolling their own from a synthesized snippet. ## 1. Identify the model type | Tag | Class | What it does | When to pick

What's inside
Steps it walks through
  1. When to Use
  2. 1. Identify the model type
  3. 2. Required reading
  4. Per-type — always required
  5. Cross-cutting — always required (regardless of task)
  6. Cross-cutting — load when applicable
  7. Variant scripts (open when the task matches)
  8. 3. Defaults
  9. 4. Constraints the produced script must satisfy
  10. 5. Workflow
  11. Prerequisites
  12. Limitations
Ships with 24 files
  • references/base_model_selection.md
  • references/dataset_formats.md
  • references/evaluators_cross_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_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_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
  • scripts/train_sentence_transformer_multi_dataset_example.py
  • scripts/train_sentence_transformer_static_embedding_example.py
first 24 of 28
Commands it runs
pip install "sentence-transformers[train]>=5.0"        # add [train,image] / [audio] / [video] for [SentenceTransformer] multimodal
pip install trackio                                    # optional tracker; or wandb / tensorboard / mlflow
hf auth login                                          # or set HF_TOKEN with write scope (for Hub push)
More from agentic-awesome-skills
All skills →
About this skill
What does the train-sentence-transformers skill do?

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...

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill train-sentence-transformers --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going