experiments
Routes PFLlib federated-learning runs, CLI tuning, privacy evaluation, GPU smoke checks, and result summarization.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- experiments
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes PFLlib federated-learning runs, CLI tuning, privacy evaluation, GPU smoke checks, and result summarization.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/cli-reference.md5.2 KB
- 参考文档references/model-overview.md1.6 KB
- 参考文档references/results-and-logs.md1.3 KB
- 参考文档references/troubleshooting.md2.9 KB
- 参考文档references/workflows.md1.9 KB
- 脚本scripts/run_experiment.py1.6 KB
- 脚本scripts/summarize_results.py3.1 KB
03 SKILL.md 正文
Experiments
Use this route when you want to launch, tune, or summarize a PFLlib federated learning run.
Use this when
- You need to run FedAvg, FedProx, FedPAC, FedCP, GPFL, FedDBE, or any other built-in algorithm on a prepared dataset split.
- You need to pick a model for a dataset family, adjust rounds or client ratios, or switch between CPU and CUDA execution.
- You need privacy evaluation (
-dlg/ DLG) or system-condition knobs such as client dropout, slow trainers, slow senders, or network TTL. - You need to understand where results and model checkpoints are written.
- You want to summarize a run from an
.h5result file or a.outlog.
Read these references
references/cli-reference.mdfor the main launch flags and the common option groups.references/model-overview.mdfor dataset-to-model compatibility.references/results-and-logs.mdfor saved outputs and summary formats.references/workflows.mdfor quickstart, privacy, and text-task recipes.references/troubleshooting.mdfor CUDA, cvxpy, layout, and log-path issues.
Run these helpers
scripts/run_experiment.pyto launchsystem/main.pyfrom a checkout without hard-coding the source path.scripts/summarize_results.pyto read h5 or text-log outputs and print best accuracy summaries.scripts/check_install.pyfrom the root route before the first run or after any dependency change.scripts/scan_registry.pyfrom the root route when you need to inspect the supported dataset, model, and algorithm registry.
What belongs here
Include existing experiment workflows, evaluation settings, and result-reading workflows:
- dataset + model + algorithm selection
- CUDA / CPU execution choice
- multi-GPU selection via
-did - privacy evaluation and DLG settings
- client dropout, slow trainer, slow sender, and TTL settings
- checkpoint and h5 result inspection
- log summarization and run comparison
What does not belong here
- Creating or validating the dataset splits themselves; route that to
data-preparation. - Adding a new algorithm, model, or dataset; route that to
extension. - Host install / package resolution failures before PyTorch imports work; read the root troubleshooting and check-install helper first.
Common workflow
- Confirm that the dataset split exists and matches the intended scenario.
- Confirm the runtime stack with the install checker.
- Launch the experiment through the bundled wrapper.
- Summarize the output with the bundled result helper.
- Move to extension guidance only if you need to add new code paths.
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).