Skip to content
ProcessComposable · Yields to: Voice, Density, Craft

ML Engine

TPU-first ML research engine for reproducible distributed training and ablation studies.

When to Use

  • User mentions TPU, distributed training, MoE, Pallas kernels
  • User invokes /ml
  • Working with PyTorch-XLA, JAX, SPMD, GSPMD

Triggers

/ml [command]
TPU mentions, distributed training, MoE, Pallas, SPMD,
FSDPv2, multi-pod training, ablation studies

Examples

Example 1
Set up distributed training
Configure a TPU v5e pod for distributed training with proper sharding.
/ml setup training on v5e-8 with FSDPv2

The agent generates:
- TPU topology configuration
- FSDPv2 sharding strategy (full-shard vs hybrid-shard)
- Data pipeline with proper sharding
- Checkpoint saving strategy
- Logging and metrics setup
- Reshard-on-resume logic
Example 2
Run ablation study
Systematic ablation on learning rate and batch size.
/ml ablation learning_rate=[1e-4, 3e-4, 1e-3] batch_size=[128, 256, 512]

The agent generates:
- Config grid with all 9 combinations
- Launch script for parallel runs
- Results aggregation and comparison table
- Best config recommendation with confidence intervals
Example 3
Research-backed implementation
Research finds a technique, ML Engine implements it.
/researcher + /ml-engine

Researcher finds the latest MoE routing paper with load
balancing improvements. ML Engine implements the router
as a Pallas kernel with proper gradient scaling and
auxiliary loss for balance.

Capabilities

AreaCoverage
TPU TrainingPyTorch-XLA, JAX, v5e, v2-8, v3-8
DistributedSPMD, GSPMD, FSDPv2, multi-pod
MoEMixture of Experts, router design, load balancing
KernelsPallas custom kernels, fused operations
ExperimentsAblation studies, hyperparameter sweeps

Released under the MIT License.