技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
fine-tuning【数据与研究】Prepare FlagEmbedding fine-tuning data and safe training commands for embedders and rerankers.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to prepare or validate FlagEmbedding fine-tuning data, choose the correct training module for an embedder or reranker, or build a bounded torchrun command without launching training automatically.
Read first:
references/data-formats.md for JSONL schemas, hard negatives, teacher scores, prompt, and embedder ICL type handling.references/training-commands.md for module entry points, command patterns, DeepSpeed config shapes, LoRA flags, flash-attn caveats, and bge-m3 unified fine-tuning.references/troubleshooting.md when JSONL validation, optional finetune extras, CUDA, DeepSpeed, flash-attn, cache/token, OOM, or distributed launch issues appear.Bundled helpers:
scripts/validate_train_jsonl.py validates embedder or reranker JSONL before training. Use --knowledge-distillation only when score fields are intended for KD.scripts/split_jsonl_by_text_length.py splits JSONL by safe character or token-estimate length without downloading tokenizers.Route away:
inference.evaluation.Operational constraints:
FlagEmbedding[finetune] extra adds DeepSpeed and flash-attn, but full GPU training and flash-attn compatibility were not verified by this sub-skill.