← All projects

GenAI foundations

GenAI Basics

The first notes: how a large language model works, which kinds of model exist, and what the tool ecosystem looks like.

01What it covers

Enough theory to build on.

  • 01How an LLM worksInput, tokenisation, prediction through self-attention, decoding and output.
  • 02Kinds of modelLarge, multi-modal, small and vision-language models; open and closed models.
  • 03ToolsChat assistants, AI code editors, Hugging Face and Ollama for running models locally.

02How it works

The LLM workflow.

  1. Input
  2. Tokenisation
  3. Self-attention prediction
  4. Decoding
  5. Output

03Where it stands

Foundations notes.

A written summary and key takeaways, not an application.