技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
distributed-training【数据与研究】Use FedML for centralized training, cross-cloud training, LLM training recipes, data/model loading, and FedMLRunner-based training workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill for non-FL training workflows: centralized single-process training, cross-cloud client/server training, launch-driven training jobs, LLM training scripts, fedml.init, fedml.data.load, fedml.model.create, and FedMLRunner.
../federated-learning/SKILL.md.../launch-and-packaging/SKILL.md.../model-serving/SKILL.md.launch-and-packaging when client/server code is packaged for the platform.python/examples/train/llm_train patterns; expect optional extras, GPUs, and model/data access.launch-and-packaging.The canonical local training shape is:
import fedml
args = fedml.load_arguments(training_type="simulation", comm_backend="sp")
args = fedml.init(args)
device = fedml.device.get_device(args)
dataset, output_dim = fedml.data.load(args)
model = fedml.model.create(args, output_dim)
runner = fedml.FedMLRunner(args, device, dataset, model)
runner.run()
Adapt the training_type, backend, dataset, model, trainer, and aggregator to the selected example.
python/examples/centralized/ — centralized training examples.python/examples/cross_cloud/ — cross-cloud client/server package patterns.python/examples/train/llm_train/ — LLM scripts, job YAML, bootstrap, DDP and DeepSpeed variants.python/fedml/runner.py — FedMLRunner orchestration.python/fedml/data/ and python/fedml/model/ — data/model factory surfaces.../../references/backend-matrix.md before selecting CUDA, DDP, DeepSpeed, or dataset-heavy examples.if __name__ == "__main__":.../launch-and-packaging/SKILL.md for YAML/package/launch.../federated-learning/SKILL.md unless the task is only about a shared model/data loader.A distributed-training task is complete when the training mode, backend, data/model path, launch-vs-local decision, and any GPU/network requirements are explicit, and the user has either runnable commands/code or a documented blocker.