← TinyGPT · docs · devlog · roadmap · speedup
source: docs/learn/mac-mastery-map.md · view on GitHub ↗

Mac-local AI mastery map

The north-star (AGENTS.md): be best-in-class at Mac-local AI, learn the whole space like a sponge (including the single-machine ↔ distributed boundary), build everything buildable on a Mac, and position for future scale. This is the living agenda — the checklist of what to learn/build and what’s already covered.

Legend: ✅ built/learned · 🟡 partial / scaffolded · ⬜ to learn or build. Each area links the canonical doc/source — we don’t re-teach here (DRY).

1. Foundations

The ground-up curriculum — mostly ✅. See curriculum and sessions 0108

2. Training & post-training

Canonical: advanced-llm-training.

3. Inference & serving

Canonical: advanced-llm-inference.

4. Evaluation & judgment ← the differentiated moat

Canonical: advanced-ml-systems-eval §11–13.

5. Interpretability

6. Modalities

7. Agents & tools

Canonical: advanced-ml-systems-eval §9–10, agent-context-hierarchy, model-vs-agent.

8. Compression & efficiency ← the validated lane

9. Distribution & packaging


The single-machine ↔ distributed boundary

What one Mac can do, what it can’t, and why — the line to own. Theory: advanced-llm-training (ZeRO/FSDP/3D parallelism), advanced-llm-inference §15–16 (disaggregation, TP/EP).

Fully on a MacThe hard middle (Mac barely)Needs distributed — and why
LoRA/QLoRA ≤~8B · distillation · quantization · pruning · eval · interp · ANE/CoreML serve · small from-scratch · agents/RAG · WebGPUQLoRA on a 30B MoE (memory-tight) · frontier→small distillation · “many Macs as one” (teale/Petals — hits the latency wall)Pretrain ≥10B from scratch (tensor/pipeline parallel, GPU-weeks) · 1000-GPU async RL + 2,500 envs (Prime Intellect prime-rl) · million-QPS serving — all compute/bandwidth-bound, not cleverness-bound

Case studies to learn from (boundary-mapping, not detours):

Buildable hands-on (you don’t need a cluster to learn the primitives) — DP PoC ran 2026-06-17: MLX ships mx.distributed (all_sum / all_gather / sum_scatter / send / recv) + mlx.launch. scripts/archive/dist_dp_poc.py ran data-parallel all-reduce across n=2/4 ranks on one Mac and proved replicas stay bit-identical (per-rank param checksums matched; effective batch scaled 64→128→256). So all-reduce, sharded data, and lockstep replicas are learned firsthand; next rung = toy ZeRO (shard optimizer state via sum_scatter, re-gather with all_gather). The scale needs a cluster, the concepts don’t. (n=1 baseline hits a launcher JSON-init bug — minor.)

Learning gaps — the ⬜ shortlist (what to learn/build next)

  1. Inference depth — batching + KV-SSD paging + prefix cache (B34); read the PagedAttention + FlashAttention papers, then build the batched eval-runtime.
  2. RL/reward — close the full GRPO loop on a small model; understand reward modeling + over-optimization; RL environments as reward functions.
  3. Distributed boundary — read the HF Ultra-Scale Playbook end-to-end; be able to whiteboard ZeRO stages, 3D parallelism, and why decode won’t shard.
  4. Compression — logit-level distillation; fp8; the cost/quality frontier.
  5. Agents — trajectory recording (B22) + agent-eval protocol (B23).

Next up — direction chosen 2026-06-17

Agentic tool-calling is now mined deep: frontier-parity distillation (4B 58→100, beats Gemma-12B)

  1. Single-machine ↔ distributed boundary [CHOSEN] — §boundary above; buildable via mx.distributed
    • mlx.launch (data-parallel + toy ZeRO across processes on one Mac). The named thesis gap; positions for scale.
  2. Interpretability — §5; open the box on the distilled 4B (where the agentic skill lives; the mechanism of the measured negative transfer — journey §8.4–8.5).
  3. Vision-language — §6; qwen3-vl-2b already local; a Pace pillar.
  4. Mac-local serving systems — §3; continuous batching + KV-cache + speculative decoding (also ~10× the ReST rollouts — fixes the throughput bottleneck this session hit).

Step-back taken 2026-06-17 (inventory + ROI menu): the agentic-tool-calling lane is mined deep — file-ops saturated at frontier, breadth is a long-tail grind (+5pp from ReST), and shipping into Pace needs re-distillation on its action surface, not a wire-up. Verified this session: ReST self-improvement (breadth 65%), Apple on-device floor (can’t ground actions), VibeThinker reasoning (GSM8K 100%) + its training recipe, and the distributed DP PoC. ROI menu ranked; owner’s call pending. Diminishing product returns on agentic → next move is either the cheap specialist-merge verdict, a real re-distill-for-Pace project, or a pivot (distributed/serving) for fresh learning.

Living doc — correct coverage markers as reality changes. New learning lands as a focused page elsewhere in docs/learn/; this map just indexes + tracks.