Distributed and performance

From VectorSpaceLab/AREX-Skill · View interactive version

Distributed and performance is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Guides agents configuring and troubleshooting Axolotl multi-GPU, DeepSpeed, FSDP, Ray, SLURM, parallelism, OOM, kernels, profiling, and performance tuning.

How to use this skill

Skill file

Distributed and Performance

Use this sub-skill when the task mentions multi GPU Axolotl, DeepSpeed ZeRO, FSDP or FSDP QLoRA, Ray Train, SLURM/HPC/cloud launch, multi-node networking, context parallelism, tensor parallelism, expert parallelism, OOM, Flash Attention, Liger, Cut Cross Entropy, profiling, or distributed checkpoint save/load issues.

Read First

Quick Workflow

  1. Identify the launch topology first: single process, one-node multi-GPU, Ray cluster, torchrun multi-node, SLURM batch, or cloud/HPC scheduler.
  2. Choose one primary sharding stack: FSDP2 for new PyTorch-native sharding and FSDP+QLoRA, DeepSpeed ZeRO for existing DeepSpeed configs, Ray only as an orchestration layer, and N-D parallelism for advanced FSDP+TP/CP/EP meshes.
  3. Set topology fields coherently: deepspeed, fsdp_version, fsdp_config, dp_shard_size, dp_replicate_size, tensor_parallel_size, context_parallel_size, expert_parallel_size, use_ray, and ray_num_workers.
  4. Tune memory and throughput next: bf16, fp16, tf32, fp8, attn_implementation, sample_packing, gradient_checkpointing, activation_offloading, layer_offloading, kernel plugin flags, and batch/accumulation sizes.
  5. Run python scripts/check_distributed_config.py config.yaml --world-size N for static conflicts, then validate in the user's Axolotl environment with axolotl preprocess config.yaml before launching axolotl train.
  6. For method-specific loss, reward, dataset, adapter, or model-family fields, route to the sibling training, data, and model-loading sub-skills before changing distributed settings.

Boundaries

Evidence Notes

This guidance is distilled from Axolotl distributed, multi-node, FSDP QLoRA, sequence/N-D parallelism, optimization, attention, precision, NCCL, Ray, HPC, checkpoint, source mixin, integration, example, and multigpu test evidence. The inspection environment proved package metadata and namespace import only; do not claim live distributed training, GPU kernels, model downloads, or full ML runtime verification unless the user runs those checks separately.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.