infermatrixlab/inferrsi/choose-parallel-training-plan
Claude Code and agent skill by infermatrixlab/inferrsi
- community
Checking that the SKILL.md file is still in the repository.
Compare stage, device-mesh and operator-sharding candidates for static distributed training while accounting for memory, topology, resharding and planning cost.
Install
npx vskill@latest install infermatrixlab/inferrsi/choose-parallel-training-planSKILL.md
The same SKILL.md was published earlier as openjiuwen-ai/agent-infer/choose-parallel-training-plan.
Choose a parallel training plan
Use when heterogeneous stage memory/work or communication cost makes a uniform data/tensor/pipeline plan suspect. This candidate is derived from historical Alpa, not a current compiler configuration guide. Read source notes.
Evidence and decision
Require model/operator graph and shapes; global batch, microbatch and accumulation; precision/optimizer; physical links and contention; candidate shard layouts; stage latency, workspace and in-flight activation memory; and the objective/expected run length. A device count without topology is insufficient.
- Preserve a simple reference plan and the same training semantics/global batch. Distinguish fixed-model scaling from model-size weak scaling.
- Compare sharding at the operator level, including input/output layout conversions. Equal arithmetic work does not imply equal kernel time; Alpa's zero compute-cost simplification is not a measured fact for this workload.
- Consider uneven stage boundaries and mesh sizes where activation/weight intensity changes. Include multiple in-flight activation sets and the largest per-rank peak, not just mean memory. Reject infeasible stage/mesh pairs.
- Evaluate first-microbatch cost and repeated bottleneck-stage time with actual cross-stage transfers and overlap limits. Historical Alpa omits inter-stage transfer from its optimization and takes microbatch count externally; report these gaps rather than treating its objective as complete.
- Where destinations replicate tiles, compare repeated slow-link sends with one necessary cross-mesh transfer plus local allgather. Count local collective/staging cost and correctness of destination shards. Separate inter-node Network traffic from intra-node accelerator links.
- Return the best supported candidate and a simpler fallback, memory/critical-path ledger, planning cost/amortization, semantic invariants, counter-signals and missing evidence. Do not claim global optimality outside the declared search space.
Limits and future verification
A homogeneous model may already favor equal stages; a shorter job may not amortize planning; dynamic shapes, asymmetric devices or changing communication contention may invalidate static cost estimates. Historical Alpa's reported 9.7× MoE ratio reflects a specific weak-scaling workload and baseline without inter-op parallelism on a 25-Gbps cluster.
Propose a later authorized comparison with matched model/global batch/precision and topology. Check numerical correctness, full-step time, per-rank memory and exposed resharding/collective time. Stop at the plan in paper-only mode; no compiler/solver install or run, parallelism reconfiguration, repository edit, hardware task or benchmark is authorized by this skill. Current engine/NPU support requires separate evidence.
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 repositoryCheckingsrc/inferrsi/data/skill_library/methods/choose-parallel-training-plan/SKILL.md
Popularity
- Repository stars
- 43
- Repository forks
- 7
- 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/infermatrixlab/inferrsi/choose-parallel-training-plan)