setup-and-cli
Install and inspect FedML, then operate the FedML CLI for login, devices, runs, clusters, storage, network diagnostics, and environment checks.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- setup-and-cli
- license
- Apache 2.0
- metadata
- { "disco-role": "operating", "parent_skill": "fedml" }
- description
- Install and inspect FedML, then operate the FedML CLI for login, devices, runs, clusters, storage, network diagnostics, and environment checks.
- disable-model-invocation
- true
03 SKILL.md 正文
FedML Setup and CLI
Use this sub-skill for package installation, import repair, CLI discovery, account login/logout, device binding, run/cluster inspection, storage operations, backend network diagnostics, and environment snapshots.
Do not use this for
- Building or launching job packages: use
../launch-and-packaging/SKILL.md. - Training loop implementation: use
../distributed-training/SKILL.md. - Federated-learning algorithm/workflow setup: use
../federated-learning/SKILL.md. - Model cards and serving endpoints: use
../model-serving/SKILL.md. - Workflow DAG composition: use
../workflow-orchestration/SKILL.md.
Setup path
-
Read
../../references/installation.md. -
Install with
pip install fedmlorpip install -e pythonfrom a source checkout. -
Run the offline smoke check from the root skill directory:
python scripts/check_install.py -
If the import fails, read
../../references/troubleshooting.md#import-and-dependency-failures.
CLI discovery path
Use only help/version commands until the user approves remote side effects:
fedml --help
fedml version
fedml login --help
fedml run --help
fedml cluster --help
fedml storage --help
fedml network --help
fedml env --help
Important repo-specific command facts:
- Connectivity diagnostics are under
fedml network, notfedml diagnosis. - The current CLI root does not expose
fedml jobs; usefedml launchandfedml runinstead.
Account and platform operations
Before running any command that changes remote state:
- Confirm the target backend version (
release,test,dev, orlocal). - Confirm the API key/source of credentials.
- Confirm whether remote state changes are allowed.
Typical commands:
fedml login <api-key>
fedml logout
fedml device bind --help
fedml cluster list
fedml run list
fedml run status --help
fedml run logs --help
fedml storage list --help
Destructive commands such as cluster stop, cluster kill, run stop, storage delete, and logout require explicit approval.
Python API equivalents
Read ../../references/api-reference.md#public-fedmlapi-helpers when converting CLI work into Python. The usual setup/inspection APIs are:
fedml.api.fedml_login(api_key)fedml.api.run_list(...),run_status(...),run_logs(...),run_stop(...)fedml.api.cluster_list(...),cluster_status(...),cluster_start/stop/kill/autostop(...)fedml.api.upload(...),download(...),list_storage_objects(...),get_storage_metadata(...)
Exit criteria
A setup/CLI task is complete when the correct target environment is active, import fedml works, offline help/version checks pass, and any remote operation has a clear credential/side-effect decision recorded.
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).