# PithTrain: A Compact and Agent-Native MoE Training System

- **ID:** 481
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2605.31463
- **Authors:** Ruihang Lai, Hao Kang, Haozhan Tang, Akaash R. Parthasarathy, Zichun Yu, Junru Shao, Todd C. Mowry, Chenyan Xiong, Tianqi Chen
- **Venue:** arXiv / Carnegie Mellon University / NVIDIA
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **License:** CC BY 4.0 (paper); Apache-2.0 (PithTrain code)
- **License family:** Permissive (auto-classified)
- **Tags:** pithtrain, moe, agent-native, megatron, ate-bench, cmu, mlc
- **Topics:** MoE training systems, coding agents
- **Added:** 2026-08-14
- **Verified:** 2026-08-14
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/481

## Summary

Defines agent-task efficiency (ATE) and ships PithTrain, an ~11K-line Python-native MoE stack (PP, FSDP DP, CP, EP, DualPipeV overlap, torch.compile, FP8) built on compactness, no implicit indirection, and in-repo agent skills. Matches or exceeds Megatron-LM tokens/s on GPT-OSS-20B, Qwen3-30B-A3B, and DeepSeek-V2-Lite on H100/B200 (e.g. 280.0K vs 264.1K tok/s on 4×8 H100 Qwen3-30B-A3B PP4/EP8). ATE-Bench (12 Q&A, 4 operate/profile, 4 new-feature ports) with Claude Opus 4.7: up to 62% fewer agent turns and 64% less active GPU time vs production frameworks on the hardest new-feature tasks. Code Apache-2.0 https://github.com/mlc-ai/pith-train.

## Attributes

- **Purpose:** Make an MoE trainer both throughput-competitive and cheap for coding agents to understand, operate, and extend
- **Scale:** ~11K LoC vs Megatron-LM 149K / DeepSpeed 167K / TorchTitan 38K; ATE-Bench 20 tasks × 3 frameworks × 3 attempts; throughput table on 8–32 GPU H100/B200 configs
- **Used for:** Unknown
- **Time period:** 2026-05-29 (arXiv 2605.31463 v1). GitHub mlc-ai/pith-train 332 stars at check.
- **Author type:** human

## From the source (fetched 2026-10-03)

- **Published:** May 29, 2026 (arXiv)
- **arXiv categories:** cs.LG, cs.AI, cs.CL, cs.DC (arXiv)
- **Citations:** 0 (Semantic Scholar)
- **References:** 39 (Semantic Scholar)

## Abstract

Mixture-of-Experts (MoE) has become the dominant architecture for frontier language models. To meet this demand, production frameworks have built optimized MoE training stacks over years of engineering effort. Yet evolving these stacks for new architectures and system optimizations remains expensive. With the rise of AI coding agents, they could automate parts of training-framework development and accelerate this evolution. But applying them to these existing frameworks carries hidden costs, invisible to today's throughput-only evaluations. We name this missing dimension agent-task efficiency (ATE): the cost of using coding agents to understand, operate, and extend a framework. Grounded in four agent-native design principles, we build PithTrain, a compact, agent-native MoE training framework. We further introduce ATE-Bench, covering real-world training-framework tasks. Our evaluation shows PithTrain matches the throughput of production frameworks, and on ATE-Bench, PithTrain enables higher agent-task efficiency, with up to 62% fewer Agent Turns and 64% less Active GPU Time.

## Research notes

- Primary: arxiv abs (CC BY 4.0, cs.LG/AI/CL/DC). Code Apache-2.0 https://github.com/mlc-ai/pith-train (332 stars at check). CMU with NVIDIA (Shao, Chen). HF paper page 1 upvote; no linked models/datasets. ATE-Bench is a task suite over existing frameworks, not a standalone public corpus, so no datasets_local row. Discord posted abs link.

## Cites, within this collection

- [Dynamic Mixture of Experts: An Auto-Tuning Approach for Efficient Transformer Models](https://papers.projxon.ai/entries/523) (paper 2024, #523)
- [MoBA: Mixture of Block Attention for Long-Context LLMs](https://papers.projxon.ai/entries/707) (paper 2025, #707)
- [TorchTitan: One-stop PyTorch native solution for production ready LLM pre-training](https://papers.projxon.ai/entries/956) (paper 2024, #956)

## Related entries

- Discussed in: [Mixture-of-experts language models: where the work is (overview)](https://papers.projxon.ai/entries/1206) (note, #1206)

## Similar entries

- [GLM-5: from Vibe Coding to Agentic Engineering](https://papers.projxon.ai/entries/532) (paper, #532)
- [Xor (juspay/xor) — TypeSafe-compatible System One MoE for typed decisions](https://papers.projxon.ai/entries/1027) (model, #1027)
- [FreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution](https://papers.projxon.ai/entries/694) (paper, #694)
- [ID Balancing: Stable Training of Extremely Sparse MoE via PID-Based Load Control](https://papers.projxon.ai/entries/833) (paper, #833)
- [K2 Horizon: six fully open models from 0.9B to 375B (IFM)](https://papers.projxon.ai/entries/761) (model, #761)
- [Ling and Ring 2.6 Technical Report: Efficient and Instant Agentic Intelligence at Trillion-Parameter Scale](https://papers.projxon.ai/entries/622) (paper, #622)
