pipeline-workflows
Service-backed FATE-Client Pipeline workflows for data upload, Reader/PSI, preprocessing, model training, evaluation, deploy/predict, and upload-config validation.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- pipeline-workflows
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Service-backed FATE-Client Pipeline workflows for data upload, Reader/PSI, preprocessing, model training, evaluation, deploy/predict, and upload-config validation.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/component-catalog.md14.2 KB
- 参考文档references/data-formats.md7.1 KB
- 参考文档references/pipeline-workflows.md13.2 KB
- 参考文档references/troubleshooting.md9.0 KB
- 脚本scripts/validate_upload_config.py11.9 KB
03 SKILL.md 正文
pipeline-workflows
Use this sub-skill when a user wants to author, adapt, or debug a service-backed FATE-Client Pipeline workflow: upload local data into FATE storage, construct Reader/PSI and downstream components, train/evaluate a model, dump/deploy it, run prediction, or validate example upload configuration shape before contacting a service.
Route here for
- Uploading CSV/example data with
FateFlowPipeline.transform_local_file_to_dataframe(...)and mapping it to FATE tablenamespace/namepairs. - Building pipeline DAGs with
Reader,PSI,DataSplit,FeatureScale,HeteroFeatureBinning,HeteroFeatureSelection,HeteroSecureBoost,HomoLR,HomoNN,HeteroNN,SSHELR,SSHELinR,CoordinatedLR,CoordinatedLinR,Evaluation,Union, and example-backed statistics/sample/correlation components. - Handling table naming, namespace conventions, guest/host/arbiter party ids, and multi-host
reader.hosts[...]mapping. - Saving and reusing trained pipelines with
dump_model,load_model,deploy,get_deployed_pipeline, andpredict. - Safely checking upload-config YAML structure without contacting FateFlow.
Route elsewhere
- FateFlow service installation/startup, Docker/host deployment, port conflicts, or
fate_flow/pipeline initsetup: use../deployment/SKILL.md. - Service-free direct module execution with
fate.arch.launchersorfate.ml: use../local-launchers/SKILL.md. - Low-level
python -m fate.componentsCLI descriptors,task-schema, custom component internals, or component execution configs: use../component-runtime/SKILL.md.
Operating constraints
- These workflows require a running FateFlow service and initialized pipeline client. The verified CLI surfaces are
fate_flow init|restart|start|status|stop|versionandpipeline init|show|site-info;fate_flow initaccepts--ip,--port,--home, andpipeline initaccepts--ip,--port,--path. - The inspected package set was
pyfate==2.2.0(import fate),fate_client==2.2.0,fate_flow==2.2.0, andfate_utils==0.1.0. Treat GPU and DeepSpeed as optional and unverified here; the minimum verified drafting/inspection backend is CPU. - Service-backed training and upload examples are normally not run during skill generation or environment preparation. Use them as recipes unless the user supplies a live FateFlow service, uploaded data, party ids, and an execution budget.
- Do not route deployment shell scripts or service mutation into this sub-skill. Keep runtime actions at the Python pipeline API level after service prerequisites are satisfied.
Fast workflow map
- Service gate: confirm FateFlow is initialized/running and pipeline is initialized. If not, route to
deployment. - Data gate: validate upload configs with
scripts/validate_upload_config.py; then upload/transform local files usingFateFlowPipeline().set_parties(local="0")andtransform_local_file_to_dataframe(...). - Reader/PSI gate: construct
Readerwith exactnamespace/namefor each role; addPSIfor hetero alignment when parties have overlapping match ids. - Feature/model DAG: choose preprocessing and model components from
references/component-catalog.md, wire outputs by explicit artifact names, thenadd_tasks,compile, andfit. - Inspect/save: use
get_task_info(task_name)for metrics/models anddump_model(file_path)for reuse. - Deploy/predict: reload with
FateFlowPipeline.load_model(file_path), calldeploy([...])on the trained components that should be reused, attach a freshReader, then build a prediction pipeline and callpredict().
Bundled references and helper
references/pipeline-workflows.md— stepwise upload, Reader/PSI, train/evaluate, deploy/predict recipes.references/component-catalog.md— component cheat sheet with verified method/constructor call shapes and common use cases.references/data-formats.md— table naming, namespaces, role conventions, upload YAML fields, and sample/match id rules.references/troubleshooting.md— service, table/namespace, party, model, deploy, and predict diagnostics.scripts/validate_upload_config.py— local YAML parser/validator; it never contacts FateFlow.
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).