pipelines-cli
Use Fengshen public pipeline APIs and the fengshen-pipeline console command for safe prediction/training orchestration, fixtures, and troubleshooting.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- pipelines-cli
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Fengshen public pipeline APIs and the fengshen-pipeline console command for safe prediction/training orchestration, fixtures, and troubleshooting.
- disable-model-invocation
- true
02 资源文件 9
- 参考文档references/cli-reference.md5.4 KB
- 参考文档references/sequence-tagging.md4.5 KB
- 参考文档references/tcbert.md3.6 KB
- 参考文档references/text-classification.md5.2 KB
- 参考文档references/troubleshooting.md6.0 KB
- 参考文档references/unimc-uniex-ubert.md5.5 KB
- 脚本scripts/inspect_pipeline_cli.py8.9 KB
- 脚本scripts/make_classification_fixture.py5.5 KB
- 脚本scripts/make_sequence_tagging_fixture.py4.6 KB
03 SKILL.md 正文
Fengshen Pipelines and CLI
Use this sub-skill when the task is to run, adapt, inspect, or troubleshoot Fengshen public pipeline surfaces or the fengshen-pipeline console command.
Start here
- Read references/cli-reference.md before using
fengshen-pipeline; the console command is generic, but not every pipeline class is console-compatible. - For classification prediction/training data, read references/text-classification.md and generate a tiny local fixture with scripts/make_classification_fixture.py.
- For NER/sequence tagging, read references/sequence-tagging.md and generate the expected
labels.txtplus*.all.bmeslayout with scripts/make_sequence_tagging_fixture.py. - For UniMC, UniEX, and Ubert programmatic routes, read references/unimc-uniex-ubert.md.
- For TCBert prompt classification, read references/tcbert.md.
- When behavior is surprising, use references/troubleshooting.md before assuming the installed package is broken.
Safe checks first
These checks do not download models, start training, or mutate checkpoints:
python scripts/inspect_pipeline_cli.py --pipeline text_classification --pipeline sequence_tagging
python scripts/inspect_pipeline_cli.py --pipeline unknown_name
python scripts/make_classification_fixture.py --out-dir ./fengshen-classification-fixture
python scripts/make_sequence_tagging_fixture.py --out-dir ./fengshen-sequence-tagging-fixture
Use fengshen-pipeline text_classification predict --help only as a help/import check. Real predict and train calls may download model weights or datasets unless all paths are local and cached.
Route boundaries
- Model class selection, custom configs, tokenizers, and
fengshen_model_typemapping belong tomodel-zoo. UniversalDataModule, checkpoints, optimizers, PyTorch Lightning Trainer flags, Deepspeed, CUDA, and low-level dataloaders belong todata-training.- Large example command families, CLUE recipes, Stable Diffusion, Ziya, and checkpoint conversion planning belong to
examples-conversion. - This sub-skill owns pipeline entry points, parser shapes, task data schemas, safe fixtures, and CLI misuse diagnosis.
Do not do these from this sub-skill
- Do not run original repository tests or example shell scripts as a smoke check; several have hard-coded local paths or GPU assumptions.
- Do not treat
--helpsuccess as proof that model downloads, CUDA execution, Deepspeed training, or checkpoint loading are verified. - Do not use unsupported pipeline names or programmatic-only classes through
fengshen-pipelinewithout first checking their route in references/cli-reference.md.
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).