界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

pfllib

pfllib

【数据与研究】Routes PFLlib tasks for dataset preparation, federated-learning experiments, and library extension.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: "pfllib" description: "Routes PFLlib tasks for dataset preparation, federated-learning experiments, and library extension." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

PFLlib

Use this skill for PFLlib dataset generation, experiment execution, and code extension tasks.

Start here

  1. Create or verify a Python 3.11 environment with the PFLlib runtime stack: PyTorch, torchvision, torchtext, cvxpy, NumPy < 2, and the scientific stack used by the repository.
  2. Run scripts/check_install.py --repo-root <checkout> to confirm imports and CUDA availability.
  3. Run scripts/scan_registry.py --repo-root <checkout> when you need a quick view of the supported dataset, model, and algorithm surface.
  4. Pick the sub-skill that matches the task family below.

Routes

data-preparation

Use this route to generate or validate client-split datasets such as MNIST, AG News, Amazon Review, HAR, and the other built-in scenario generators. Read sub-skills/data-preparation/SKILL.md first.

experiments

Use this route to launch FL runs, tune CLI flags, inspect results, or check privacy/system-condition settings. Read sub-skills/experiments/SKILL.md first.

extension

Use this route when you need to add a new algorithm, dataset, model, or optimizer to the repo. Read sub-skills/extension/SKILL.md first.

Shared helpers

  • scripts/check_install.py — run this first when the environment or CUDA stack is in doubt.
  • scripts/scan_registry.py — use this to inspect the supported registry before editing or launching.

Read these references

  • references/repo-provenance.md when you need to compare the skill against a checkout or decide whether it should be refreshed.
  • references/troubleshooting.md for cross-cutting install, import, CUDA, cvxpy, and working-directory problems.
  • references/repo-routing-metadata.json for the router placement data used by the live repo-skills router.

Notes

  • This repository is script-driven rather than a packaged library; use the bundled check and launch helpers against a local checkout.
  • If a dataset tree is missing, route to data-preparation before launching an experiment.
  • If the task is to change the codebase, not just run it, route to extension.
我的收藏