[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7940Z5RMS6T6FD6A5J0Q2E7":3,"skill-same:01M7940Z5RMS6T6FD6A5J0Q2E7":114},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":45},"01M7940Z5RMS6T6FD6A5J0Q2E7","reranker-training",null,"Set up and validate BERT or LLM reranker training, dataset formats, ranking losses, and LLM-to-BERT distillation for RAG-Retrieval.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"MIT","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: reranker-training\ndescription: \"Set up and validate BERT or LLM reranker training, dataset\n  formats, ranking losses, and LLM-to-BERT distillation for RAG-Retrieval.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# Reranker Training\n\nUse 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.\n\nNatural triggers include: “train reranker”, “fine-tune bge\u002Fbce reranker”, “pointwise vs grouped reranker data”, “RankNet\u002Flistwise CE”, “Qwen LLM decoder reranker”, and “distill LLM reranker to BERT”.\n\n## Route By Task\n\n- For JSONL training-data shape, labels, `label_key`, `max_label`, `min_label`, group sizes, and skipped samples, read [references\u002Fdata-formats.md](references\u002Fdata-formats.md).\n- For `training_bert.yaml`, `training_llm.yaml`, model\u002Floss compatibility, LLM prompt formatting fields, mixed precision, distributed configs, and logging, read [references\u002Fconfiguration.md](references\u002Fconfiguration.md).\n- For bundled command building, BERT and LLM training flow, validation order, saved checkpoints, and handoff to inference, read [references\u002Fworkflows.md](references\u002Fworkflows.md).\n- For LLM teacher scoring and converting teacher outputs into BERT pointwise data, read [references\u002Fdistillation.md](references\u002Fdistillation.md).\n- For common failures such as missing labels, disappearing grouped samples, incompatible loss\u002Fdata choices, LLM formatting, DeepSpeed save issues, and memory pressure, read [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md).\n\n## Bundled Helper\n\nRun the bundled validator before launching training:\n\n```bash\npython skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Fvalidate_reranker_training_config.py \\\n  --config \u003Ctraining-config.yaml> \\\n  --data \u003Ctrain-data.jsonl>\n```\n\nThe helper only reads YAML and JSONL. It does not import model code, instantiate tokenizers, download checkpoints, or allocate GPU memory.\n\n## Scope Boundaries\n\n- 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\u002Fbuild_reranker_training_command.py` for path-checked launch commands.\n- It intentionally excludes embedding and ColBERT data formats except for shared Accelerate, DeepSpeed, and mixed-precision concepts.\n- It intentionally excludes inference API details except for handing saved reranker checkpoints to the sibling reranker inference guidance.\n","# Reranker Training\n\nUse 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.\n\nNatural triggers include: “train reranker”, “fine-tune bge\u002Fbce reranker”, “pointwise vs grouped reranker data”, “RankNet\u002Flistwise CE”, “Qwen LLM decoder reranker”, and “distill LLM reranker to BERT”.\n\n## Route By Task\n\n- For JSONL training-data shape, labels, `label_key`, `max_label`, `min_label`, group sizes, and skipped samples, read [references\u002Fdata-formats.md](references\u002Fdata-formats.md).\n- For `training_bert.yaml`, `training_llm.yaml`, model\u002Floss compatibility, LLM prompt formatting fields, mixed precision, distributed configs, and logging, read [references\u002Fconfiguration.md](references\u002Fconfiguration.md).\n- For bundled command building, BERT and LLM training flow, validation order, saved checkpoints, and handoff to inference, read [references\u002Fworkflows.md](references\u002Fworkflows.md).\n- For LLM teacher scoring and converting teacher outputs into BERT pointwise data, read [references\u002Fdistillation.md](references\u002Fdistillation.md).\n- For common failures such as missing labels, disappearing grouped samples, incompatible loss\u002Fdata choices, LLM formatting, DeepSpeed save issues, and memory pressure, read [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md).\n\n## Bundled Helper\n\nRun the bundled validator before launching training:\n\n```bash\npython skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Fvalidate_reranker_training_config.py \\\n  --config \u003Ctraining-config.yaml> \\\n  --data \u003Ctrain-data.jsonl>\n```\n\nThe helper only reads YAML and JSONL. It does not import model code, instantiate tokenizers, download checkpoints, or allocate GPU memory.\n\n## Scope Boundaries\n\n- 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\u002Fbuild_reranker_training_command.py` for path-checked launch commands.\n- It intentionally excludes embedding and ColBERT data formats except for shared Accelerate, DeepSpeed, and mixed-precision concepts.\n- It intentionally excludes inference API details except for handing saved reranker checkpoints to the sibling reranker inference guidance.\n",{"name":5,"license":14,"metadata":23,"description":7,"disable-model-invocation":25},{"disco-role":24},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":25},[35,38,41],{"tool":36,"command":37},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill reranker-training",{"tool":39,"command":40},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill reranker-training",{"tool":42,"command":43},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill reranker-training","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002FSKILL.md",[46,52,56,60,64,68,74,78,82,86,90,94,98,102,106,110],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fconfiguration.md","REFERENCE","参考文档",5612,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Freferences\u002Fconfiguration.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fdata-formats.md",4283,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Freferences\u002Fdata-formats.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fdistillation.md",4197,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Freferences\u002Fdistillation.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Ftroubleshooting.md",5771,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Freferences\u002Ftroubleshooting.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fworkflows.md",4711,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Freferences\u002Fworkflows.md",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fbuild_reranker_training_command.py","SCRIPT","脚本",3973,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Fbuild_reranker_training_command.py",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Ftraining_bundle\u002Fconfig\u002Ftraining_bert.yaml",1237,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Ftraining_bundle\u002Fconfig\u002Ftraining_bert.yaml",{"path":79,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Ftraining_bundle\u002Fconfig\u002Ftraining_llm.yaml",1284,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Ftraining_bundle\u002Fconfig\u002Ftraining_llm.yaml",{"path":83,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Ftraining_bundle\u002Fdata.py",10108,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Ftraining_bundle\u002Fdata.py",{"path":87,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Ftraining_bundle\u002Fmodel_bert.py",5295,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Ftraining_bundle\u002Fmodel_bert.py",{"path":91,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Ftraining_bundle\u002Fmodel_llm.py",6954,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Ftraining_bundle\u002Fmodel_llm.py",{"path":95,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Ftraining_bundle\u002Franking_loss.py",2943,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Ftraining_bundle\u002Franking_loss.py",{"path":99,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Ftraining_bundle\u002Ftrain_reranker.py",10327,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Ftraining_bundle\u002Ftrain_reranker.py",{"path":103,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Ftraining_bundle\u002Ftrainer.py",9685,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Ftraining_bundle\u002Ftrainer.py",{"path":107,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Ftraining_bundle\u002Futils.py",5565,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Ftraining_bundle\u002Futils.py",{"path":111,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Fvalidate_reranker_training_config.py",18713,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Frag-retrieval\u002Fsub-skills\u002Freranker-training\u002Fscripts\u002Fvalidate_reranker_training_config.py",[115,123,130,137,144,151],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":119,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":119,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","passnet-solve","END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":119,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":119,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","passnet-pattern-fusion","Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":119,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":119,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]