计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
distributed-training-backends【效率与协作】Select, configure, and diagnose Accelerate distributed training backends including DeepSpeed, FSDP/FSDP2, Megatron-LM, torch native parallelism, TPU/XLA, FP8, quantization, compilation, Local SGD, and DDP communication hooks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when an agent must choose or configure an Accelerate backend beyond a plain single-process training loop: DeepSpeed ZeRO, FSDP/FSDP2, Megatron-LM, torch native tensor/context/sequence parallelism, TPU/XLA, Gaudi/HPU, FP8 or low precision, bitsandbytes/torchao quantization, torch.compile, Local SGD, or DDP communication hooks.
accelerate config, accelerate launch, config-file locations, or generic CLI flag syntax, use ../configuration-and-cli/ first, then return here for backend-specific keys and compatibility.Accelerator, how to call prepare, backward, accumulate, or unwrap models in a training loop, use ../training-loop-integration/.save_state, load_state, FSDP weight merging, DeepSpeed checkpoint folders, or tracker artifacts, use ../checkpointing-and-tracking/.references/deepspeed-fsdp.md.transformer_based_wrap, state-dict control, CPU-RAM-efficient Transformers loading, and FSDP2 composition with native parallelism; see references/deepspeed-fsdp.md.parallelism_config for data replication/sharding, tensor parallelism, context parallelism, or DeepSpeed sequence parallelism; see references/parallelism-and-precision.md.torch_xla and TPU runtime are available; CPU-only inspection can validate config shape, not TPU execution.references/deepspeed-fsdp.md — DeepSpeed, FSDP/FSDP2 selection, launch/config implications, and plugin usage.references/parallelism-and-precision.md — torch native parallelism, Megatron-LM, TPU/XLA, Gaudi/HPU, FP8, low precision, quantization, compilation, Local SGD, and DDP hooks.references/api-reference.md — primary Accelerate plugin/config classes, common constructor fields, environment/config key mapping, and minimal snippets.references/troubleshooting.md — dependency, hardware, ZeRO/offload, FSDP wrapping, FP8 mismatch, multi-node, and precedence diagnostics.Use scripts/validate_backend_config.py to statically validate JSON or YAML snippets for backend key shape and common contradictions:
python sub-skills/distributed-training-backends/scripts/validate_backend_config.py path/to/config.yaml
python sub-skills/distributed-training-backends/scripts/validate_backend_config.py --format deepspeed deepspeed.json
python sub-skills/distributed-training-backends/scripts/validate_backend_config.py --check-imports config.yaml
The helper does not launch distributed jobs, import Accelerate, initialize process groups, or require GPUs/TPUs. It reports missing optional packages only as hints when --check-imports is passed.
accelerate config/launch workflows. If both are present, check precedence and mismatch rules in references/troubleshooting.md.