add-new-model

Create MoE model skeletons for PithTrain and wire them into training and inference workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables seamless addition of a new MoE language model to PithTrain, covering model implementation, framework wiring, and optional checkpoint conversion to run full training and inference cycles.

Core Features & Use Cases

  • End-to-end model integration: create the model class, wire it into the training framework, and configure MoE routing and experts.
  • Checkpoint conversion support: add an HF2dcp/dcp2hf converter when necessary to align layouts or quantify weights for quantized checkpoints.
  • Validation workflow: execute the standard phase ladder from HF reference inventory to distributed training and inference checks.

Quick Start

Add a new MoE model to PithTrain by creating the model skeleton, wiring it into the training framework, optionally adding a checkpoint converter, and validating with the standard phase ladder.

Frequently Asked Questions about add-new-model

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

FAQPage Schema
How do I integrate a new MoE language model into PithTrain?

Adding a new MoE model to PithTrain requires creating the model skeleton, wiring it into the training framework, optionally adding an HF2dcp checkpoint converter, and validating the workflow using the standard phase ladder from single-GPU to distributed setups.

What is the process for converting Hugging Face checkpoints for distributed training?

Converting Hugging Face checkpoints for distributed training involves implementing an optional HF2dcp or dcp2hf converter to align model layouts or quantify weights, ensuring correct round-trips and naming parity between frameworks.

Do I need to implement checkpoint converters to add a new model to PithTrain?

Checkpoint converters are optional when adding a new model to PithTrain, but you must implement an HF2dcp or dcp2hf converter when necessary to align layouts or quantify weights for quantized checkpoints.

How does PithTrain validate end-to-end MoE model training and inference?

PithTrain validates MoE model training and inference by executing a standard phase ladder that starts with an HF reference inventory, progresses through distributed training checks, and enforces diagnostic checks to ensure correct round-trips.

Why does my new model integration fail the phase-based gating checks?

Model integration fails phase-based gating checks when the implementation lacks naming parity with Hugging Face or violates the diagnostic checks described in the reference files required to ensure correct round-trips.