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
- If the user needs a full experiment command, config migration, algorithm recipe, or which training script/workflow to run, route to sibling sub-skill
post-training-experiments and return here only for the backend fields.
- If the user needs to start/stop/register/debug AReaL v2 services, gateways, workers, sessions, or CLI process lifecycle, route to sibling sub-skill
services-cli-operations; return here only for worker backend, allocation, and weight-sync constraints.
- If the user is authoring datasets, reward functions,
RolloutWorkflow, or agent workflow code, route to sibling sub-skill custom-data-rewards-workflows.
- Never claim that CPU import or CLI help proves GPU backend behavior. It only proves import/config surface availability.
Operating workflow
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.
Parse backend strings and compute GPU demand with scripts/check_backend_plan.py:
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.
Use references/backend-planning.md for backend syntax, install variants, parallelism capability, Ray/Slurm placement, LoRA, and FP8 planning.
Use references/engine-api-and-weight-sync.md for train/inference engine contracts, generation request behavior, weight versioning, and disk/xccl/awex update modes.
Use references/troubleshooting.md 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
- Backend field diffs or config snippets such as
rollout.backend=sglang:d2t4, actor.backend=megatron:(attn:d1p4t2c2|ffn:d1p4t1e4), actor.weight_update_mode=disk, or actor.megatron.bridge_type=megatron-bridge.
- A GPU-demand calculation and assumptions: separated roles sum GPU worlds; colocated roles require explicit placement and usually matching planned worlds.
- A validation checklist and one safe checker command.
- A clear skip/block statement for GPU-only, multi-node, model-download, service, or credentialed validation that was not actually run.
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.
1---2name: distributed-engines-backends3description: "Plan and debug AReaL distributed engines, inference backends,4 allocation strings, weight sync, LoRA/FP8, and GPU/Ray/Slurm backend5 failures."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/distributed-engines-backends9 disco-role: operating10license: Apache 2.011---1213# distributed-engines-backends1415Use 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.1617## Route first1819- If the user needs a full experiment command, config migration, algorithm recipe, or which training script/workflow to run, route to sibling sub-skill `post-training-experiments` and return here only for the backend fields.20- If the user needs to start/stop/register/debug AReaL v2 services, gateways, workers, sessions, or CLI process lifecycle, route to sibling sub-skill `services-cli-operations`; return here only for worker backend, allocation, and weight-sync constraints.21- If the user is authoring datasets, reward functions, `RolloutWorkflow`, or agent workflow code, route to sibling sub-skill `custom-data-rewards-workflows`.22- Never claim that CPU import or CLI help proves GPU backend behavior. It only proves import/config surface availability.2324## Operating workflow25261. 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.272. Parse backend strings and compute GPU demand with [`scripts/check_backend_plan.py`](scripts/check_backend_plan.py):2829 ```bash30 python scripts/check_backend_plan.py \31 rollout.backend=sglang:d2t4 actor.backend=fsdp:d8 \32 cluster.n_nodes=2 cluster.n_gpus_per_node=8 \33 actor.weight_update_mode=xccl34 ```3536 Add `--probe-env` only for safe CUDA visibility/import facts; it is still not a backend runtime proof.373. Use [`references/backend-planning.md`](references/backend-planning.md) for backend syntax, install variants, parallelism capability, Ray/Slurm placement, LoRA, and FP8 planning.384. Use [`references/engine-api-and-weight-sync.md`](references/engine-api-and-weight-sync.md) for train/inference engine contracts, generation request behavior, weight versioning, and `disk`/`xccl`/`awex` update modes.395. Use [`references/troubleshooting.md`](references/troubleshooting.md) to debug parse/config errors, optional dependency issues, CUDA/NCCL hangs, OOM, LoRA/FP8 failures, placement mistakes, and checkpoint/recovery mismatches.4041## Safe outputs to give users4243- Backend field diffs or config snippets such as `rollout.backend=sglang:d2t4`, `actor.backend=megatron:(attn:d1p4t2c2|ffn:d1p4t1e4)`, `actor.weight_update_mode=disk`, or `actor.megatron.bridge_type=megatron-bridge`.44- A GPU-demand calculation and assumptions: separated roles sum GPU worlds; colocated roles require explicit placement and usually matching planned worlds.45- A validation checklist and one safe checker command.46- A clear skip/block statement for GPU-only, multi-node, model-download, service, or credentialed validation that was not actually run.4748## Hard stops4950Do 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.