Skip to main content
  1. Tags/

LLM

Self-Tuning Prompts: Adapting Karpathy's Autoresearch Loop to Writing Quality

·6 mins
Andrej Karpathy recently showed that an AI can improve itself in a tight, unattended loop: propose a change, test it, keep it if it helps, throw it away if it doesn’t. That works beautifully when there’s a fast, objective number to check the result against. It’s a much harder question when the thing you’re trying to improve is writing quality, which nobody has ever reduced to a single trustworthy number. We tried it anyway, on the written instructions — the “prompts” — that steer two AI writing assistants, and the results are a useful lesson in where this kind of automation belongs, and where it doesn’t.

The original idea: a loop with no human in it #

Karpathy’s project lets an AI rewrite its own training code, run a short training job, and check the result against a single number that measures how well the resulting model performs — lower is strictly better, and it’s cheap to compute after every attempt. If the number improves, the AI keeps its change. If it doesn’t, the change is thrown away and reverted. Repeat, unattended, many times an hour. One independent write-up of a real run found the loop working through hundreds of attempts unsupervised, keeping a good number of genuine improvements along the way, and meaningfully cutting the time needed to reach a target level of quality. The whole idea rests on one condition: a fast, trustworthy number you can check the AI’s work against every single time.

Running Local LLMs at Home: RTX 3060 vs 4090 vs 5090 on Qwen3 and Gemma 4

·7 mins

A handful of consumer GPUs now sit at the center of serious homelab inference. The interesting question is no longer “can I run a 30B-class model” but “which card should I buy for the workload I actually have.” Below is a method-grounded look at three tiers — the RTX 3060 12GB, RTX 4090 24GB, and RTX 5090 32GB — running today’s small-active-parameter mixture-of-experts models: Qwen3.5-35B-A3B and its newer sibling Qwen3.6-35B-A3B, Gemma 4 26B-A4B, and the dense Gemma 4 31B.