Clients want proof before investing in fine-tuning: does LoRA actually move the needle on domain tasks, can we trust the eval gate, and at what volume does self-hosting beat an API?
LLM_tuning_demonstration + llm-eval-gateQwen/Qwen2.5-1.5B-Instruct, 600 train / 100 val / 100 held-out PubMedQA test, 6.64 GB VRAM, 10.3 min) with full JSON results committed.llm-eval-gate): Cohen's κ judge calibration, exact McNemar + bootstrap 95% CIs, hard safety/schema gates.| Colab T4 QLoRA (PubMedQA, N=100) | Strict JSON verdict acc 58.0% → 68.0% (+10.0 pp) · Macro-F1 0.389 → 0.477 · JSON validity 98% → 100% · Val loss 2.037 → 1.522 |
|---|---|
| Paired McNemar & Throughput | 17 improved vs. 7 regressed (exact McNemar p=0.0639 at N=100) · 96.3 → 44.9 tok/s unmerged PEFT (proving merge necessity) |
| Judge Calibration Audit (llm-eval-gate) | Rejects lenient judge (κ=0.500, +15 pp bias); approves calibrated judge (κ=0.867, 0 pp bias) |
| Build-vs-Buy Crossover | Mid-tier API wins 10k–250k req/mo ($10–$260/mo); self-hosted fine-tune wins ≥1M req/mo ($950 vs $1,040–$5,200/mo) |
maybe (0/12 gold items) without class weighting/oversampling.pubid 12068831): emitted verdict: yes before writing a rationale concluding no evidence existed — solved by generating rationale before verdict.