技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
reranker-training【数据与研究】Set up and validate BERT or LLM reranker training, dataset formats, ranking losses, and LLM-to-BERT distillation for RAG-Retrieval.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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”.
label_key, max_label, min_label, group sizes, and skipped samples, read references/data-formats.md.training_bert.yaml, training_llm.yaml, model/loss compatibility, LLM prompt formatting fields, mixed precision, distributed configs, and logging, read references/configuration.md.Run the bundled validator before launching training:
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.
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.