技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
splade【数据与研究】Route SPLADE sparse retrieval tasks across Hydra pipelines, HF training/reranking, model/data APIs, and export/pruning/evaluation workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a user asks about the SPLADE Python repository: sparse lexical retrieval with masked-language-model expansion, classic Hydra train/index/retrieve workflows, HuggingFace Trainer variants, reranking, Anserini export, static pruning, BEIR/PISA evaluation planning, or SPLADE data/API troubleshooting.
sub-skills/hydra-pipelines/SKILL.md for classic python -m splade.* workflows: all, train, index, retrieve, evaluate, flops, and create_anserini command construction.sub-skills/hf-training-reranking/SKILL.md for python -m splade.hf_train, python -m splade.hf_train_reranker, python -m splade.rerank, multiple hard negatives, dense/DPR variants, and reranker workflows.sub-skills/model-data-api/SKILL.md for programmatic model/data/index APIs, SPLADE representation behavior, toy-data validation, and no-download API inspection.sub-skills/pruning-export-evaluation/SKILL.md for Anserini export files, static pruning helpers, BEIR/PISA planning, Pyserini/Java/PISA prerequisites, and evaluation dependency troubleshooting.python -m pip install -e . from the checkout root.python -m pip install git+https://github.com/naver/splade.git and then add workflow-specific dependencies such as PyTorch, Hydra/OmegaConf, pytrec-eval, Pyserini, Java, or PISA only when the selected route needs them.references/troubleshooting.md.SPLADE and import package splade; the repo version is 2.1.transformers==4.18.0 and omegaconf==2.1.2, but current source uses some Hydra decorators with version_base="1.2"; see references/troubleshooting.md before diagnosing Hydra import errors.conf/ and typically needs config.checkpoint_dir, config.index_dir, and config.out_dir overrides because defaults leave them as ???.pytrec_eval; full metric execution may require building pytrec-eval and external trec_eval sources.python -c "import splade; print('ok')".python sub-skills/hydra-pipelines/scripts/splade_hydra_command_builder.py --help.python sub-skills/hf-training-reranking/scripts/splade_hf_command_builder.py --help.python sub-skills/model-data-api/scripts/validate_splade_toy_data.py <dataset-root>.sub-skills/pruning-export-evaluation/scripts/prune_doc_index.py or prune_quantile.py.references/repo-provenance.md to check the source commit, dirty state, version, and evidence baseline before deciding whether this skill is stale.references/troubleshooting.md for cross-cutting install/import, Hydra/OmegaConf, optional dependency, data/download, and hardware failures.references/repo-routing-metadata.json only when updating DisCo routing metadata.| User asks for | Read |
|---|---|
| "Run SPLADE on toy data", "train/index/retrieve", "Hydra override", "checkpoint config missing" | sub-skills/hydra-pipelines/SKILL.md |
| "HF Trainer", "hard negatives", "DPR/dense", "rerank a run", "RankT5/monoT5" | sub-skills/hf-training-reranking/SKILL.md |
| "What are the model signatures?", "validate raw.tsv/qrels", "content_id KeyError", "offline inference API" | sub-skills/model-data-api/SKILL.md |
| "create Anserini docs", "prune SPLADE index", "BEIR", "PISA", "pyserini/trec_eval" | sub-skills/pruning-export-evaluation/SKILL.md |
--help, schema validation, and tiny-fixture checks before GPU training, downloads, BEIR, Anserini, or PISA execution.