Skip to content
Back to skills

Reranker Training

ASecurity

"Set up and validate BERT or LLM reranker training, dataset

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 17 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill reranker-training --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reranker Training?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reranker Training
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-reranker-training/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-reranker-training)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reranker-training
description: "Set up and validate BERT or LLM reranker training, dataset
  formats, ranking losses, and LLM-to-BERT distillation for RAG-Retrieval."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Reranker Training

Use this sub-skill when a user wants to train or fine-tune a RAG-Retrieval reranker, choose between pointwise and grouped training data, configure BERT or LLM reranker models, debug ranking-loss behavior, or distill an LLM reranker teacher into BERT reranker data.

Natural triggers include: “train reranker”, “fine-tune bge/bce reranker”, “pointwise vs grouped reranker data”, “RankNet/listwise CE”, “Qwen LLM decoder reranker”, and “distill LLM reranker to BERT”.

## Route By Task

- For JSONL training-data shape, labels, `label_key`, `max_label`, `min_label`, group sizes, and skipped samples, read [references/data-formats.md](references/data-formats.md).
- For `training_bert.yaml`, `training_llm.yaml`, model/loss compatibility, LLM prompt formatting fields, mixed precision, distributed configs, and logging, read [references/configuration.md](references/configuration.md).
- For bundled command building, BERT and LLM training flow, validation order, saved checkpoints, and handoff to inference, read [references/workflows.md](references/workflows.md).
- For LLM teacher scoring and converting teacher outputs into BERT pointwise data, read [references/distillation.md](references/distillation.md).
- For common failures such as missing labels, disappearing grouped samples, incompatible loss/data choices, LLM formatting, DeepSpeed save issues, and memory pressure, read [references/troubleshooting.md](references/troubleshooting.md).

## Bundled Helper

Run the bundled validator before launching training:

```bash
python skills/rag-retrieval/sub-skills/reranker-training/scripts/validate_reranker_training_config.py \
  --config <training-config.yaml> \
  --data <train-data.jsonl>
```

The helper only reads YAML and JSONL. It does not import model code, instantiate tokenizers, download checkpoints, or allocate GPU memory.

## Scope Boundaries

- This sub-skill covers `train_reranker.py`, `PointwiseRankerDataset`, `GroupedRankerDataset`, `ranking_loss.py`, BERT encoder training, LLM decoder training, training configs, LLM-to-BERT distillation planning, and `scripts/build_reranker_training_command.py` for path-checked launch commands.
- It intentionally excludes embedding and ColBERT data formats except for shared Accelerate, DeepSpeed, and mixed-precision concepts.
- It intentionally excludes inference API details except for handing saved reranker checkpoints to the sibling reranker inference guidance.

Files in this skill

  • SKILL.md2.7 KB
  • references/configuration.md5.5 KB
  • references/data-formats.md4.2 KB
  • references/distillation.md4.1 KB
  • references/troubleshooting.md5.6 KB
  • references/workflows.md4.6 KB
  • scripts/build_reranker_training_command.py3.9 KB
  • scripts/training_bundle/config/training_bert.yaml1.2 KB
  • scripts/training_bundle/config/training_llm.yaml1.3 KB
  • scripts/training_bundle/data.py9.9 KB
  • scripts/training_bundle/model_bert.py5.2 KB
  • scripts/training_bundle/model_llm.py6.8 KB
  • scripts/training_bundle/ranking_loss.py2.9 KB
  • scripts/training_bundle/train_reranker.py10.1 KB
  • scripts/training_bundle/trainer.py9.5 KB
  • scripts/training_bundle/utils.py5.4 KB
  • scripts/validate_reranker_training_config.py18.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.