Working with Claude Code
The Win-Win Strategy in AI for Engineers
I never learn a technology and AI separately. AI tutors me in the new language, then I build an AI project in that language, so each hour pays twice. That is how I went from Java to Scala, fine-tuned a model without being a maths person, and shipped anthropic4s.
Local AI
Decision models in llama.cpp: asking a 4B model to choose instead of talk
llama.cpp v1.0.0 can serve decision models through /v1/systemone: one pass, zero output tokens, a probability per option. I ran Kev-4B on a Strix Halo iGPU, worked out the choice, score and noul fields, and measured what batching really costs.
Ideas
My AI twin lives in a browser tab: LFM3-Omni on WebGPU and my cloned voice
A 3D avatar with my face that hears me through LFM3-Omni on WebGPU and answers in a Pocket TTS clone of my voice, plus the three audio bugs between the model and the mouth.
Security and privacy, in practice
Adding Claude Haiku to my CV builder: sign-in first, a spend cap, and a fallback
BuildCV ran entirely in the browser. Here is how I added four opt-in Claude Haiku 5.5 actions on my own API credit: behind LinkedIn sign-in, capped three ways, falling back to built-in coaching when the money runs out, plus what the first real calls got wrong.
LLMs, the whole thing
·
Part 11
Training GPT from Scratch: Loss, Learning, and the Next Token
Chapter 5 connects next-token loss to real parameter updates, then separates training from decoding. My notes on batches, perplexity, validation, sampling, checkpoints, and pretrained GPT-2 weights.
LLMs, the whole thing
·
Part 10
Building GPT from Scratch: LayerNorm, GELU, Shortcuts, and the First Generated Token
Chapter 4 is the moment attention becomes a complete GPT. I build the model one inspectable component at a time, count its parameters, and trace the gloriously untrained first token.
LLMs, the whole thing
·
Part 9
Multi-head attention, one shape at a time
Part 9 of LLMs, the whole thing: two heads, one token, and the difference between computing attention and organizing its tensors. A concrete PyTorch walkthrough of view, transpose, concatenation and the output projection.
LLMs, the whole thing
·
Part 8
Causal attention and the two masks: one hides the future, one cuts links on purpose
Section 3.5 of Raschka's book on seven real GPT-2 tokens: why masking after softmax breaks the row sums, why -inf on the scores fixes it in one pass, and how dropout is a second, random mask that doubles its survivors.
LLMs, the whole thing
·
Part 7
Trainable self-attention: query, key, value, and a thermostat on the softmax
Section 3.4 of Raschka's book on six tokens with real PyTorch output: three shared learned matrices, eighteen private q/k/v vectors, why d_in is forced, why scores are divided by the square root of d_k, and why 'weights' now means two different things.
Working with Claude Code
OpenKB: knowledge that compiles
Most 'chat with your docs' tools retrieve fragments at query time. OpenKB compiles the synthesis once, at ingest - into a Markdown wiki you can read, diff, and ship as an installable Claude Code skill.