← TinyGPT · docs · devlog · roadmap · speedup
source: docs/prds/B25-scaledown-specialist.md · view on GitHub ↗

PRD — Extractive context-compression specialist for ScaleDown leaderboard

Goal

Train a Mac-runnable specialist that takes (query, long_context) and returns the subset of sentences relevant to the query — i.e. extractive compression. Submit to the public ScaleDown Challenge leaderboard as “competitive task SLM trained from scratch on a Mac.” A second publicly-scored proof-point alongside A1’s BFCL.

The architectural trick is a token-level relevance classifier head on the residual stream → sentence-level aggregation → threshold-keep (no autoregressive generation). Different from A1’s tool-caller in shape: not a generic chat model, a domain-shaped specialist.

Why now

Scope — in

Scope — out

Files to touch

FileChange
Sources/TinyGPTModel/RelevanceHead.swiftnew — classification head
Sources/TinyGPTModel/PeftVariants.swiftwire “relevance-head + LoRA on top blocks” composite path
Sources/TinyGPT/Compress.swiftnew — subcommand
Sources/TinyGPT/TinyGPT.swiftcase "compress"
Sources/TinyGPT/SFT.swiftoptional --loss relevance-bce mode
scripts/recipes/b25-scaledown.shnew — end-to-end recipe
docs/specialists/b25-scaledown.mdnew — user-facing brief
docs/recipes/b25-scaledown.mdupdate — now points at the recipe instead of being the recipe
docs/PLAN.mdB25 ⬜ → ✅ on ship + leaderboard rank

Don’t touch

Acceptance criteria

Reference patterns

Open questions