← TinyGPT · docs · devlog · roadmap · speedup
source: docs/prds/B2-B7-router-family.md · view on GitHub ↗

PRD — Mini-router on real BFCL data + bake-off + FSM-injection (B2-B3-B7)

Goal

Bundle the four router items from PLAN.md Tier B into one coordinated PRD because they are sequentially dependent on each other:

ItemWhatSequence
B2Train + eval the existing mini-router on real BFCL data (today it trains on synthetic seeds)1
B2bBake-off — classifier-head router vs the pure-GPT-with-FSM alternative2
B3If B2b says classifier wins: wire FSM constraint-injection from the router’s prediction3
B7A higher-level “specialist routing model” that picks A1 vs B1 vs B8 vs cloud4

Each is small. Together they answer the architectural question: “is the per-task classifier head worth the deviation from one unified-model + grammar?”

Why now

Scope — in

B2 (mini-router on real BFCL data):

B2b (bake-off):

B3 (FSM constraint-injection):

B7 (specialist routing):

Scope — out

Files to touch

FileChange
scripts/recipes/b2-router-train.shnew
evals/router-bakeoff.shnew
Sources/TinyGPTServe/RouterFsmInject.swiftnew (only if B2b winner = classifier)
Sources/TinyGPT/TrainExtractor.swiftextend if needed for real-BFCL data shape
docs/specialists/b2-router-bakeoff.mdnew — the decision document
docs/PLAN.mdflip B2, B2b, B3, B7 statuses based on outcome

Acceptance criteria

Reference patterns

Open questions