AGENT SKILL

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

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, and crossval.
  • Python APIs: build_model, train_model, evaluate_model, train_evaluate_model_from_config, read_data_by_config, get_iterator_from_config, parse_config, and deep_download.
  • Config mechanics: chainer.in, chainer.out, chainer.pipe, in, out, in_y, id, ref, nested config_path, overwrite, metadata.variables, metadata.imports, and metadata.requirements.
  • Training config mechanics: dataset_reader, dataset_iterator, train, metrics, fit_on, save_path, load_path, main, and recursive.
  • 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.md or ../retrieval-qa/SKILL.md.
  • REST or socket serving. Route riseapi and risesocket questions 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

  1. references/config-workflows.md for end-to-end config loading, CLI modes, training, evaluation, cross-validation, and parameter search.
  2. references/api-reference.md for verified public signatures and config-field semantics.
  3. references/custom-components.md for registry, metric, id/ref, and metadata.imports workflows.
  4. references/troubleshooting.md for config, registry, and CLI failure modes.
  5. scripts/inspect_config_requirements.py when 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>) or train_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, evaluate for metrics only, and predict for stdin/file batch inference.
  • Use python -m deeppavlov.paramsearch <config> --folds ... for grid search over search_choice values.
  • 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. overwrite uses dot notation, and list positions are numeric path segments.
  • If a component is shared across branches, give it an id and reuse it with ref or #id-style references in later params.
  • If a config needs custom code, prefer metadata.imports or a fully qualified module.submodule:ClassName / module.submodule:function_name reference.
  • If predict says to use interact, you are on a terminal TTY and should switch modes instead of forcing stdin handling.

Routing Notes

  • Use ../../references/troubleshooting.md for 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

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351