train-sentence-transformers

Train and fine-tune sentence-transformers models for retrieval, similarity, and clustering tasks.

Updated Jun 15, 2026
One-click install
npx skills add https://github.com/Andrew-Girgis/token-holdem --skill train-sentence-transformers-andrew-girgis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: train-sentence-transformers
Source: https://github.com/Andrew-Girgis/token-holdem/tree/main/.agents/skills/train-sentence-transformers
Command: npx skills add https://github.com/Andrew-Girgis/token-holdem --skill train-sentence-transformers-andrew-girgis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sentence-transformers, trackio, datasets, transformers, torch, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenge of training and fine-tuning sentence-transformers models across a range of applications, including retrieval, similarity, clustering, classification, paraphrase mining, deduplication, and multimodal tasks.

Core Features & Use Cases

  • Model Training: Offers a comprehensive guide for training sentence-transformers models.
  • Fine-tuning: Provides instructions for fine-tuning models for specific tasks.
  • Loss Selection: Assists in choosing the appropriate loss functions for different tasks.
  • Evaluator Usage: Offers guidance on selecting and using evaluators for model assessment.
  • Use Case: For example, if you need a model for paraphrase mining, this Skill helps you select the appropriate loss function, evaluator, and training script.

Quick Start

To train a sentence-transformers model for a specific task, first identify the model type (e.g., SentenceTransformer, CrossEncoder, SparseEncoder). Then, load the required references and example scripts from the references/ and scripts/ directories. Follow the guidelines in the SKILL.md file to proceed with the training process.

Frequently Asked Questions about train-sentence-transformers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fine-tune sentence-transformers models for a specific NLP task?

To fine-tune sentence-transformers models, you load example scripts and references, identify your model type, select the appropriate loss function, and follow the training script structure to proceed with the training process.

How do I choose the right loss function for training a sentence-transformers retrieval model?

Choosing the right loss function for sentence-transformers retrieval depends on your specific task, and this Skill provides guidance on loss selection to match your use case, such as retrieval, clustering, or paraphrase mining.

Can I train sentence-transformers for multimodal tasks using PyTorch and the Hugging Face transformers library?

Yes, you can train sentence-transformers for multimodal tasks using PyTorch and the Hugging Face transformers library, as these are listed dependencies required for the training and evaluation process.

What is the best way to evaluate sentence-transformers models during fine-tuning?

The best way to evaluate sentence-transformers models during fine-tuning is by using built-in evaluators, and this Skill offers guidance on selecting and using evaluators for accurate model assessment.

Do I need the trackio and datasets libraries to train a sentence-transformers model?

Yes, you need the trackio and datasets libraries along with sentence-transformers, transformers, and torch, as these dependencies are required for training and evaluating your models.

What NLP tasks can I train sentence-transformers models for besides semantic similarity?

Besides semantic similarity, you can train sentence-transformers models for retrieval, clustering, classification, paraphrase mining, deduplication, and multimodal tasks using the provided training scripts.