fedml
Use FedML for setup, CLI operations, MLOps launch, distributed and federated training, model serving, and workflow orchestration.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- fedml
- license
- Apache 2.0
- metadata
- { "repo": "FedML", "package": "fedml", "version": "0.8.30", "disco-role": "operating", "generated_by": "create-repo-skill", "source_commit": "03e11dfee69a458a9820ec4e05b531a5f935eb2b" }
- description
- Use FedML for setup, CLI operations, MLOps launch, distributed and federated training, model serving, and workflow orchestration.
- disable-model-invocation
- true
02 资源文件 9
- 参考文档references/api-reference.md7.3 KB
- 参考文档references/backend-matrix.md4.1 KB
- 参考文档references/cli-reference.md3.5 KB
- 参考文档references/installation.md2.2 KB
- 参考文档references/repo-provenance.md1.5 KB
- 参考文档references/repo-routing-metadata.json508 B
- 参考文档references/troubleshooting.md5.7 KB
- 参考文档references/workflows.md5.4 KB
- 脚本scripts/check_install.py4.0 KB
03 SKILL.md 正文
FedML Repo Skill
Use this skill when the task involves the fedml Python package, the fedml CLI, FedML/TensorOpera MLOps jobs, FedML training examples, federated-learning simulation/cross-silo workflows, model serving, or FedML workflow DAGs.
First checks
-
Read
references/repo-provenance.mdif the task depends on the current source checkout. -
Read
references/installation.mdbefore installing or repairing the package. -
Run a minimal check in the target environment when needed:
python scripts/check_install.py -
If a command/API may contact the platform, ask before creating, stopping, killing, deploying, uploading, or launching remote resources.
Scope
Covered:
- Python package install/import and CLI command routing.
- Account, device, cluster, run, storage, network, and environment diagnostics.
- Build/package and launch-job workflows.
- Centralized, cross-cloud, and LLM training recipes.
- Federated learning: single-process simulation, cross-silo/cross-cloud patterns, security/privacy/analytics references.
- Model cards, local serving, remote deployment, streaming inference, and inference requests.
fedml.workflowDAGs and customized job wrappers.
Excluded from verified runtime coverage:
- Android, IoT, MNN/mobile client stacks.
- Maintainer release scripts and CI plumbing.
- Host-mutating MPI install scripts.
- Docker/AWS/PDSH cluster scripts unless the user explicitly asks for infrastructure setup.
Route by task
| Task shape | Read next | Why |
|---|---|---|
| Install, import, CLI help, login/logout, device binding, run/cluster/storage/env/network diagnostics | sub-skills/setup-and-cli/SKILL.md |
Owns package setup and platform CLI basics |
| Build local packages or launch YAML-defined jobs on FedML/TensorOpera | sub-skills/launch-and-packaging/SKILL.md |
Owns fedml build, fedml launch, and launch APIs |
Centralized training, cross-cloud training, LLM train scripts, FedMLRunner, data/model loading |
sub-skills/distributed-training/SKILL.md |
Owns non-FL training pipelines |
| Simulation, cross-silo/cross-device/cross-cloud FL, algorithm flow, privacy/security/analytics examples | sub-skills/federated-learning/SKILL.md |
Owns FL training modes and optional MPI/NCCL routing |
Model card lifecycle, local/on-prem/cloud serving, FedMLPredictor, FedMLInferenceRunner, streaming inference |
sub-skills/model-serving/SKILL.md |
Owns deployment and inference surfaces |
Multi-job DAGs, Workflow, Job, TrainJob, ModelDeployJob, ModelInferenceJob |
sub-skills/workflow-orchestration/SKILL.md |
Owns workflow dependency graphs and job wrappers |
Shared references
references/cli-reference.md— verified CLI command names and groups.references/api-reference.md— public Python APIs and network-bound calls.references/workflows.md— workflow routing map and source-script policy.references/backend-matrix.md— CPU/CUDA/MPI/remote-backend requirements.references/troubleshooting.md— import, CLI, backend, launch, training, serving, and workflow failures.references/repo-routing-metadata.json— structured router import metadata.
Repo-specific cautions
- The current CLI command for connectivity diagnostics is
fedml network, notfedml diagnosis. - The current CLI root does not expose
fedml jobs; usefedml launch,fedml run, orfedml.api.launch_job. - MPI and NCCL examples are optional backend variants. Do not claim they are verified unless the target runtime has the needed host tools.
fedml model deploy,fedml launch, remotefedml.api.*calls, storage operations, and workflow job wrappers can create or inspect remote state; require user approval and credentials.
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).