pipelines
Guides DeepPavlov configuration, CLI, training, evaluation, registry, and custom-component workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- pipelines
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides DeepPavlov configuration, CLI, training, evaluation, registry, and custom-component workflows.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-reference.md6.6 KB
- 参考文档references/config-workflows.md5.8 KB
- 参考文档references/custom-components.md3.7 KB
- 参考文档references/troubleshooting.md5.2 KB
- 脚本scripts/inspect_config_requirements.py5.2 KB
03 SKILL.md 正文
Pipelines
Use this sub-skill for DeepPavlov’s configuration-driven workflows: building a pipeline, training or evaluating it, inspecting config dependencies, and extending the registry with custom components or metrics.
Owns
- CLI modes:
install,download,train,evaluate,interact,predict, andcrossval. - Python APIs:
build_model,train_model,evaluate_model,train_evaluate_model_from_config,read_data_by_config,get_iterator_from_config,parse_config, anddeep_download. - Config mechanics:
chainer.in,chainer.out,chainer.pipe,in,out,in_y,id,ref, nestedconfig_path,overwrite,metadata.variables,metadata.imports, andmetadata.requirements. - Training config mechanics:
dataset_reader,dataset_iterator,train,metrics,fit_on,save_path,load_path,main, andrecursive. - Registry and metric extension patterns for custom components.
Does Not Own
- Model-family selection, input/output shapes, and dataset layout choices for
classifiers, NER, embeddings, ODQA, KBQA, ranking, or SQuAD-style tasks.
Route those questions to
../text-models/SKILL.mdor../retrieval-qa/SKILL.md. - REST or socket serving. Route
riseapiandrisesocketquestions to../serving/SKILL.md. - Cross-cutting install, backend, cache, or download problems that affect the whole package. Use the root skill’s troubleshooting reference when the issue is not specific to config parsing or training.
Read This First
references/config-workflows.mdfor end-to-end config loading, CLI modes, training, evaluation, cross-validation, and parameter search.references/api-reference.mdfor verified public signatures and config-field semantics.references/custom-components.mdfor registry, metric,id/ref, andmetadata.importsworkflows.references/troubleshooting.mdfor config, registry, and CLI failure modes.scripts/inspect_config_requirements.pywhen you need a no-download summary of a config’s nested pipelines, class names, requirement files, and download references.
Typical Entry Points
- Start with
build_model(<config>)when you need an inference-ready pipeline. - Use
train_model(<config>)when you need a trained Chainer back after the training run. - Use
evaluate_model(<config>)ortrain_evaluate_model_from_config(<config>, to_train=False)when you need metrics on the configured validation/test split. - Use
python -m deeppavlov train <config>for CLI training,evaluatefor metrics only, andpredictfor stdin/file batch inference. - Use
python -m deeppavlov.paramsearch <config> --folds ...for grid search oversearch_choicevalues. - Use
python -m deeppavlov crossval <config> --folds ...for plain cross-validation over the union of train and validation data.
Workflow Hints
- If the config name is only a stem, let DeepPavlov resolve it; aliases may be mapped to a newer config and emit a warning.
- If a config nests another config with
config_path, inspect the nested config first.overwriteuses dot notation, and list positions are numeric path segments. - If a component is shared across branches, give it an
idand reuse it withrefor#id-style references in later params. - If a config needs custom code, prefer
metadata.importsor a fully qualifiedmodule.submodule:ClassName/module.submodule:function_namereference. - If
predictsays to useinteract, you are on a terminal TTY and should switch modes instead of forcing stdin handling.
Routing Notes
- Use
../../references/troubleshooting.mdfor package-wide install/import issues once the root skill exists; keep config-specific symptoms here. - Use the sibling model-family skills for task-specific data shapes and backend-heavy model choices.
- Keep this sub-skill focused on how pipelines are wired and executed, not on which model family to choose.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp 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.
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.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
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()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert 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.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match 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).