estimate-memory

Estimate peak GPU memory usage for DualPipeV MoE training runs.

327|31|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/mlc-ai/pith-train --skill estimate-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: estimate-memory
Source: https://github.com/mlc-ai/pith-train/tree/main/.agents/skills/estimate-memory
Command: npx skills add https://github.com/mlc-ai/pith-train --skill estimate-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This memory estimation skill provides precise peak GPU memory predictions for DualPipeV MoE training runs, enabling users to plan resources and avoid OOMs.

Core Features & Use Cases

  • Analyze natural-language training configurations to produce exact CLI invocations for memory estimation.
  • Supports common configurations (pp/ep/cp, total GPUs, batch sizes, sequence length, and GPU memory) and yields a per-component memory breakdown and a pass/fail verdict.
  • Use case: before launching a training job on 32 GPUs, estimate peak memory to ensure sufficient headroom and adjust batch sizes or parallelism accordingly.

Quick Start

Run the memory estimator by providing the model config, pipeline, and batch parameters to generate a memory usage estimate.

Frequently Asked Questions about estimate-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I estimate peak GPU memory for MoE training before launching a job?

You can estimate peak GPU memory for MoE training by translating natural-language configurations into exact CLI invocations, which produces a per-component memory breakdown and a pass/fail verdict to prevent OOMs.

What parameters are needed to calculate GPU memory usage for DualPipeV training?

Calculating GPU memory usage for DualPipeV training requires validating parameters including model config, total GPUs, pp-size, ep-size, cp-size, micro-batch-size, global-batch-size, sequence-length, and gpu-memory-gb.

Can I use natural language to configure memory estimation for large-scale pipeline parallelism?

Yes, you can use natural language to configure memory estimation for large-scale pipeline parallelism, as the tool translates natural-language descriptions into the exact CLI invocation for memory planning across varying pipeline and expert parallelism configurations.

Does the memory estimator support varying expert and context parallelism configurations?

The memory estimator supports varying expert and context parallelism configurations, applying directly to memory planning for large-scale MoE setups across varying pipeline, expert, and context parallelism environments.

How do I avoid out-of-memory errors when configuring batch sizes and parallelism for 32 GPUs?

To avoid out-of-memory errors on 32 GPUs, estimate peak memory usage beforehand to ensure sufficient headroom and adjust micro-batch sizes or pipeline parallelism accordingly before launching the training run.