← TinyGPT · docs · devlog · roadmap · speedup
source: docs/prds/B21-micro-automixer.md · view on GitHub ↗

PRD — Micro-AutoMixer for specialist pretrain ratios

Goal

Replace the current “hand-wave a 50/30/20 code/web/math split” pattern with a small AutoMixer-style ratio search. Train ~6–12 short proxy runs across candidate ratios, score them on a fixed capability suite (BFCL + GSM8K + HumanEval + Pace unhappy-paths), fit a simple quadratic surrogate, propose the next mix. Stop when proposed gains fall below a threshold.

Scaled down from Poolside’s Laguna recipe (Laguna deep dive) to a single Mac.

Why now

Scope — in

Scope — out

Files to touch

FileChange
Sources/TinyGPT/AutoMix.swiftnew — orchestrator
Sources/TinyGPT/TinyGPT.swiftcase "automix"
Sources/TinyGPTModel/MixSampler.swiftnew — Dirichlet sampler over corpora
Sources/TinyGPTModel/SurrogateFit.swiftnew — quadratic fit + EI proposer
evals/automix-smoke.shnew — 3 corpora × 4 proxy runs × 200 steps on tiny model; assert final recommendation is sensible
docs/recipes/automix.mdnew — recipe + worked example
docs/PLAN.mdflip B21 ⬜ → ✅ when shipped

Don’t touch

Acceptance criteria

Reference patterns

Open questions