计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
hf-training-reranking【效率与协作】Build safe SPLADE HuggingFace Trainer, reranker-training, rerank, and post-training handoff commands.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task asks for SPLADE HuggingFace Trainer training, DPR/dense-vs-sparse flags, multiple hard negatives, reranker training, or applying a reranker to a SPLADE run. The runtime entry points are python -m splade.hf_train, python -m splade.hf_train_reranker, and python -m splade.rerank.
references/hf-training.md and use scripts/splade_hf_command_builder.py hf-train.references/reranking.md and use scripts/splade_hf_command_builder.py hf-train-reranker or rerank.references/data-formats.md before forming overrides.references/troubleshooting.md.../hydra-pipelines/SKILL.md.../model-data-api/SKILL.md.../pruning-export-evaluation/SKILL.md.The bundled helper prints commands only; it does not train models, import SPLADE, or download checkpoints.
python skills/splade/sub-skills/hf-training-reranking/scripts/splade_hf_command_builder.py hf-train \
--config-name config_hf_splade_sigir23_32neg_distil \
--checkpoint-dir '<CHECKPOINT_DIR>' \
--index-dir '<INDEX_DIR>' \
--out-dir '<OUT_DIR>' \
--training-data-type json \
--training-data-path '<HARD_NEGATIVES_JSON>' \
--document-path '<COLLECTION_RAW_TSV>' \
--query-path '<QUERIES_RAW_TSV>' \
--qrels-path '<QRELS_JSON>' \
--n-negatives 4 \
--nproc-per-node 2
--config-name, config.checkpoint_dir, and all required hf.data.* paths when overriding data.training_data_type, the needed path files, and whether n_negatives is valid.hf.model.dense, hf.model.shared_weights, hf.model.splade_doc, and init_dict.model_type_or_dir_q when relevant.splade.hf_train saves the final model under config.checkpoint_dir/model, then classic splade.index and splade.retrieve consume that checkpoint via Hydra configs.