AI engineering roadmap

Foundations

How text turns into numbers a model can work with: tokens, then vectors. 2 topics, about 6 hours.

  1. Tokenisation

    About 3 h.

    • Train byte-pair encoding by hand on a small corpus and list its merges
    • Explain why some languages and code cost more tokens than English
    • Compare character, word and subword tokenisers on vocabulary size and unknown words

    Visualisers: Tokenisation (BPE)

  2. Embeddings and similarity

    About 3 h.

    • Compute cosine similarity, dot product and Euclidean distance and say when they disagree
    • Find nearest neighbours and solve a vector analogy
    • Explain what PCA keeps and loses when vectors are drawn in 2D

    Visualisers: Embeddings