add-memory-prints
OfficialInstrument memory profiling for MoE training.
Authormlc-ai
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Add detailed memory profiling instrumentation throughout the pithtrain training framework. This enables visibility into distributed setup, model creation, checkpoint loading, pipeline scheduling, per-layer activations, saved tensor profiling, expert MLP internals, and memory snapshot dumps to diagnose memory-related bottlenecks.
Core Features & Use Cases
- End-to-end memory profiling across distributed MoE training, including setup, pipeline steps, and per-layer execution.
- Memory snapshots and dumps for activations, weights, and caches to ground memory budgets and identify leaks.
- Targeted per-layer insight with optional detail layers to focus on specific network components during debugging.
- Use Case: You suspect a memory spike during the gating or expert MLP stage and want precise footprints to guide optimization.
Quick Start
Run the memory instrumentation on your training script to enable detailed memory profiling during a run.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: add-memory-prints Download link: https://github.com/mlc-ai/pith-train/archive/main.zip#add-memory-prints Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.