Below the API

AI in Go

ExpertModule9 topics~9h 15m
completed

Topics, in order

About this module

Everything so far, applied. This module builds the core pieces of an AI system in Go using nothing but the standard library: the arithmetic, a network that learns, a tokenizer, a transformer that generates, and the services around them.

None of it is meant to replace PyTorch or a production inference engine. It is meant to make those systems legible — and to show where Go genuinely is the right tool: the clients, servers, schedulers and pipelines around the model.

#LessonThe question it answers
01Go in the AI StackWhere does Go fit, and what exists today?
02Tensors and MatmulHow is a tensor stored, and how fast can pure Go multiply matrices?
03A Neural Network from ScratchHow does a network compute, and how does it learn?
04A TokenizerHow does text become integers and back?
05A Transformer Forward PassWhat does an LLM compute for each token, and what does the KV cache save?
06Calling LLMsHow do I call a model API robustly: streaming, retries, structured output?
07Embeddings and Vector SearchHow do I find the nearest vectors among a million?
08Serving Models from GoHow do I batch requests and apply backpressure in front of a model?
09A Tool-Calling LoopWhat is the loop at the heart of an agent?

When you finish you can read an inference engine’s source and recognize every part, and you can build the Go services that surround a model in production.

Where a lesson stops, Inference Engineering continues: its projects build a full engine, continuous batching, a KV-cache manager and a gateway — also in Go.

↑↓ navigate ↵ open