Distributed engines backends

From VectorSpaceLab/AREX-Skill · View interactive version

Distributed engines backends is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Plan and debug AReaL distributed engines, inference backends, allocation strings, weight sync, LoRA/FP8, and GPU/Ray/Slurm backend failures.

How to use this skill

Skill file

distributed-engines-backends

Use this sub-skill when the task is about AReaL backend selection or backend failure modes: FSDP2, Megatron, Archon, SGLang, vLLM, backend strings, GPU allocation, parallelism dimensions, weight-update modes, LoRA, FP8, CUDA/NCCL hangs, OOM, Ray/Slurm placement, or backend install variants.

Route first

Operating workflow

  1. Establish the user's target roles (rollout, actor, optional critic, ref, teacher), cluster shape, backend strings, install variant, weight-update mode, LoRA/FP8 flags, and whether actor/rollout are separated or colocated.
  2. Parse backend strings and compute GPU demand with CODE0:

```bash

python scripts/check_backend_plan.py \

rollout.backend=sglang:d2t4 actor.backend=fsdp:d8 \

cluster.n_nodes=2 cluster.n_gpus_per_node=8 \

actor.weight_update_mode=xccl

```

Add --probe-env only for safe CUDA visibility/import facts; it is still not a backend runtime proof.

  1. Use CODE0 for backend syntax, install variants, parallelism capability, Ray/Slurm placement, LoRA, and FP8 planning.
  2. Use CODE0 for train/inference engine contracts, generation request behavior, weight versioning, and disk/xccl/awex update modes.
  3. Use CODE0 to debug parse/config errors, optional dependency issues, CUDA/NCCL hangs, OOM, LoRA/FP8 failures, placement mistakes, and checkpoint/recovery mismatches.

Safe outputs to give users

Hard stops

Do not start training, launch SGLang/vLLM/Ray/Slurm services, download models/datasets, run native repo tests, mutate driver/CUDA stacks, or guess cluster-specific placement. Ask for cluster/model/runtime decisions when they are required to choose between incompatible backends or install variants.

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.