Chapter 65 — Project ideas by level
Beginner (consolidate this guide)
- Train a tiny LLM on your own writing; compare it to one trained on a novel.
- Build a semantic search engine over your notes/bookmarks.
- Compare 5 tokenizers on text in 3 languages; write up the fairness gap.
- A "which model should I use?" cost/latency/quality calculator.
- A CLI that summarises any URL, with token counting and a cost readout.
Intermediate
- RAG over a document collection you care about — with reranking, citations, and a 100-question eval set.
- Fine-tune a small model for one narrow task; prove it beats a bigger general model on that task, at lower cost.
- A prompt-injection test harness: collect payloads, run them against your app in CI.
- An LLM-as-judge evaluation pipeline with bias controls (position swapping, length normalisation).
- A router that sends easy queries to a cheap model and hard ones to a strong model; measure the savings.
Advanced
- Reproduce GPT-2 (124M) following Karpathy's video; document every deviation.
- Implement FlashAttention-style tiled attention yourself and benchmark it.
- Build a DPO pipeline: generate candidates, collect preferences, train, evaluate before/after.
- Quantize a model to 4-bit and measure the quality/speed/memory trade-off on your own eval set.
- An agent with tools, sandboxing, human-in-the-loop approval, full tracing, and a red-team suite.
- A long-running outer-loop agent (Chapter 79's shape) for a different job, such as fixing flaky tests or burning down lint debt, with pass^k measured on 20 historical tasks before it's switched on.
- Compare three decision approaches (a local LLM's yes/no probabilities, a fine-tuned small classifier, a hosted decision model) on the same 300 labelled cases: calibration, escalation rate, latency, cost.