Skip to content

AI

AI Sizer for beginners: how many GPUs does your LLM need?

Ask AI Sizer how many GPUs a document Q&A assistant for 1,000 employees needs, and it says six NVIDIA H100s. Correct one guess on the form and it says two. By the tool's own prices, that's a difference of about $157,000 over three years.

I built AI Sizer to turn a description of your users into a first GPU estimate. This post explains what it does, what the words on its form mean, and which inputs to get right before you trust the answer.

Build your own software factory on Claude Code: codeagent's design, read from the code

I typed a three-line idea for a weather page into Claude Code. One hour and fifty-three minutes later the product had its own GitHub repo with 14 merged pull requests, 7 ticket issues, a VERIFIED report and a release candidate passing its smoke test in QA. Production waited for me to merge one more pull request.

The factory that did this is called codeagent. This post explains the idea behind each part, why it's there and what goes wrong without it, so you can design your own version. I've left the code out, and each section links to the files if you want to read them.

Agentic Engineering on GitHub: One Ticket Through Plan, Build, Verify, Observe

GitHub says it took in more than 1.2 billion commits in one week this October — up over 400% year on year, and more than all of 20251. Meanwhile Faros AI's telemetry shows median time in PR review up 441.5% when the same teams go from low to high AI adoption2.

Agents made typing free and review expensive. This post walks one real-sized ticket through GitHub's four-stage loop — Plan, Build, Verify, Observe — with the exact commands, files, and settings for each stage, plus the fine print the launch post skips.

LLM Field Guide 01 — How an LLM Reads Text: Next-Token Prediction, Tokens, and Embeddings

An LLM is a function that takes a list of integers and returns a probability for every possible next token, then gets called in a loop. It never sees your text: a tokenizer turns it into IDs, and an embedding table turns those IDs into vectors. Those three pieces (the loop, the tokens, the vectors) decide your bill, your context budget, and a surprising number of the model's "dumb" mistakes.

LLM Field Guide 02 — Inside the Transformer: Position, Attention, and Feed-Forward Layers

Every LLM you'll deploy in 2026 is the same machine: one decoder block, copied 28 to 100+ times, with an embedding table on one end and a vocabulary-sized classifier on the other. Inside each block, attention lets tokens read each other and a feed-forward network rewrites each token on its own, while RoPE tells attention who sits where. Learn the block once and you can read any model's config.json, predict its memory footprint, and say where its 8 billion parameters live.

LLM Field Guide 03 — Training and Generation: Where Weights Come From and How Tokens Get Picked

Every one of an 8B model's 8 billion weights starts as random noise and ends up useful because of one loop: predict the next token, measure the error, nudge every weight a tiny bit, repeat about a million times. At inference time the same model outputs a probability for every token in its vocabulary, and a sampler you configure per request picks one. This post works both halves with real numbers on "The cat sat": logits, loss, gradients, AdamW, the cost of a pretraining run, then temperature, top-p, min-p, constrained decoding, and why temperature=0 still isn't deterministic.

LLM Field Guide 04 — Memory Is the Bottleneck: KV Cache, Attention Variants, and Long Context

The KV cache makes generation fast by never recomputing the past, and it costs memory that grows with every token in flight. On a Llama-3.1-8B-class model, one 128K-token conversation needs about 16 GiB of cache, roughly as much as the weights. Almost every modern attention variant, serving trick, and context-length caveat exists to manage this one cache.