AGENT SKILL

local-launchers

Run and author service-free local FATE launchers with fate.arch.launchers, dataframe readers, and direct fate.ml module APIs.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
local-launchers
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Run and author service-free local FATE launchers with fate.arch.launchers, dataframe readers, and direct fate.ml module APIs.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Local Launchers

Use this sub-skill when the task is to run, inspect, or author service-free local FATE launchers for direct fate.ml modules. These launchers simulate federated parties with local multiprocessing and do not require FateFlow, Pipeline, Docker, or a running FATE service.

Route map

  • Read references/launcher-recipes.md for local launcher structure, party/data rules, and recipes for SSHE LR/LinR, SecureBoost, Pearson, Hetero/Homo NN, FedPass, and SMPC-style proc launchers.
  • Read references/module-api.md when selecting imports, checking constructor signatures, choosing CSVReader/PandasReader/TableReader, or wiring create_context, launch, HfArgumentParser, and fate.ml trainers.
  • Run scripts/check_launcher_imports.py for cheap import/signature checks before any training. It is safe by default and will not spawn launcher training unless an explicit heavy-run flag is supplied.
  • Read references/troubleshooting.md for missing fate_utils/setuptools, bad party tuples, missing CSVs, local-vs-cluster context mistakes, GPU-only assumptions, and SMPC import issues.

Use this instead of service-backed routes when

  • The user says “local launcher”, “without FateFlow”, “no Pipeline service”, “direct fate.ml API”, “multiprocess launcher”, or “local federated simulation”.
  • The user has local CSV/Pandas data and wants to test a FATE algorithm module without uploading tables through FateFlow.
  • The task is to adapt launcher patterns around launch(run_fn), create_context(...), CSVReader, PandasReader, TableReader, or local TrainingArguments.

Route elsewhere

  • For installing PyPI packages, starting/stopping FateFlow services, Docker/Compose, cluster service ports, or service smoke checks, use ../deployment/SKILL.md.
  • For service-backed FateFlowPipeline workflows, upload/Reader/components, model deployment, or service prediction, use ../pipeline-workflows/SKILL.md.
  • For python -m fate.components, component descriptors, component task-schema, or component CLI execution planning, use ../component-runtime/SKILL.md.

Safe default workflow

  1. Confirm this is a local launcher task, not a FateFlow Pipeline task.
  2. Select the party layout:
    • Hetero algorithms: usually guest:9999 host:10000.
    • Homo NN FedAVG: guest, host, and arbiter; the arbiter is the server.
    • SMPC-style proc wrappers: parties must match the target MPC module’s expectation.
  3. Check imports and signatures before training:
    python scripts/check_launcher_imports.py --check-standard
    python scripts/check_launcher_imports.py \
      --module fate.ml.glm.hetero.sshe --object SSHELogisticRegression
    
  4. Prepare tiny local data first. Guest-side hetero tabular recipes normally carry labels; host-side hetero recipes normally omit labels but share the match-id column.
  5. Only after import/data checks pass, run launch(run_fn) or an explicit launcher command. Treat this as a heavy training run because it spawns one process per party and may run cryptographic or neural-network code.

Backend caveat

The verified construction baseline was CPU-only. Local launcher imports, dataframe readers, component-free algorithms, and CPU PyTorch patterns are in scope. GPU and DeepSpeed-on-Eggroll are documented optional/advanced paths, not required or verified defaults for this sub-skill.

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