ai-modcon/prism/prism-distributed-strategy
Claude Code and agent skill by ai-modcon/prism
- community
Checking that the SKILL.md file is still in the repository.
Choose and configure PRISM's distributed training strategy on Aurora XPU. Use when picking DDP vs FSDP vs HSDP vs DeepSpeed ZeRO, setting per-strategy batch- size ceilings, re-exporting CCL/XCCL env after module load, or debugging a collective hang / throughput collapse. Triggers: "DDP vs FSDP vs HSDP", "full_shard vs shard_grad_op", "ZeRO-2 / ZeRO-3", "CCL env vars", "xccl", "static_graph", "find-unused-params", "backward collective slow", "AllGather hang".
Install
npx vskill@latest install ai-modcon/prism/prism-distributed-strategySKILL.md
PRISM — Distributed Strategy (Aurora XPU)
Pick the strategy by model size and how comm-bound you are. For generic FSDP/DDP/NCCL/XCCL hang & OOM debugging, use the installed `distributed-training-debugging` skill; this skill is PRISM's choices and validated numbers on XPU.
Which strategy
| Strategy | Use when | Notes | |
|---|---|---|---|
| DDP (default) | Projector-only / frozen-backbone; model fits per-GPU | xccl backend; static_graph=True requires fixed modalities | |
FSDP full_shard | 7B+ E2E; single node or high compute intensity | bf16 mixed precision; needs --no-pil4dfs over DAOS | |
HSDP shard_grad_op | Comm-bound small models across nodes | Often beats FSDP full_shard by ~42–47% for 0.6B/seq-512 | |
| DeepSpeed ZeRO-2 | Alt to DDP for proj-only | ~92% DDP parity proj-only; ~9.8 samp/s 1N E2E | |
| DeepSpeed ZeRO-3 | Max sharding | ~14.9 samp/s @ BS=8; auto-enables --no-pil4dfs |
`full_shard` efficiency does not transfer between regimes. AGPT's ~94%full_shardefficiency is a compute-bound (2B, seq 8192) result; PRISM at0.6B/seq-512 is comm-bound, so keep HSDPshard_grad_opthere. Re-measure —don't inherit the number.
Batch-size ceilings (OLMo-7B, measured)
| Config | Max BS | Note | |
|---|---|---|---|
| DDP projector | 3 | higher OOMs | |
| FSDP 2-node | 16 | PRISM-OLMO3-E2E-PROD design BS is sized for 8N | |
| FSDP 2-node smoke | 4 | design BS=16 OOMs on 2N — smoke scripts drop to 4 |
Also: --max-seq-length 1024 for E2E (2048 OOMs); --grad-ckpt-freq 1 required at seq=1024 (do NOT set 2).
XPU / CCL rules (each has cost a run)
- Re-export CCL env vars after `module load frameworks` — the module
overrides them. Validated config: CCL_WORKER_COUNT=1, no RS=ring, no TORCH_XPU_ALLOC_CONF, no empty_cache() inside FSDP.
- Do NOT pass `device_id` to `init_process_group` on XPU — causes DataLoader
worker hangs.
- `--find-unused-params` disables `static_graph` and costs ~30%. Avoid unless
a multi-modality 2N run actually crashes without it.
- Current CCL/XCCL:
frameworks/2025.3.1(XCCL 2025.3.1) is clean — the April
2026 ccl_check_usm_pointers bug is gone; launchers moved off the 2025.2.0 pin.
- After a hung job:
pkill -9 python3; sleep 10to clear stale XCCL state.
Not viable (don't re-litigate)
- Multi-node `torch.compile`: oneCCL deadlock. Single-node compile is fine.
The compile "storm" is scale-dependent (appears at 10N+, not 2N).
- IPEX varlen for training: no OLMo dispatch, no training-mode/autograd
kernel (IPEX 2.10.10). Use bucketing for padding reduction instead. Varlen is fine for inference/eval.
- DeepSpeed + compile: NaN / AttributeError.
Watch out: intermittent backward-collective collapse
2N HSDP eager sometimes holds ~252 samp/s and sometimes collapses to 25–75 (backward grows 1s→12s after ~step 20). Mechanism unknown; it predates torch 2.13. It masquerades as a "bad node" or "eager hang." If a scaling curve looks noisy, suspect this before blaming a config change.
See also
- Deep references: `docs/results/scaling_study.md`,
- prism-scaling-and-isoflop, prism-daos-storage.
- Generic installed skill:
distributed-training-debugging.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdocs/skills/prism-distributed-strategy/SKILL.md
Popularity
- Repository stars
- 12
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ai-modcon/prism/prism-distributed-strategy)