part III · chapter 14 of 17

Deployment and LLMOps

Taking an AI app from a laptop to thousands of users, and keeping it running.

why it matters

A demo is not a product. This is how the work becomes something people use.

before this: chapter 13, Observability and tracing

being written

This chapter is being written. Here is what it will cover; until then, the full topic list is in our notes.

  • containers, proxies, gateways
  • cloud, GPUs, serverless, Kubernetes basics
  • CI/CD, environments, secrets
  • versioning, canary releases, recovery
the topic list on GitHub (opens in a new tab)

you reached the end of the chapter

build this

Containerize Project 3, deploy it, and ship it through a CI/CD pipeline.

the maths underneath

  • maths note 12

    Transformer maths, end to end

    Attention(Q,K,V)=softmax(QK⊤dk)V\text{Attention}(Q, K, V) = \text{softmax}\left(\frac{QK^\top}{\sqrt{d_k}}\right) V

    Read the attention formula, size a GPU for a model and explain why long contexts cost so much.

check yourself

Tick what you could explain to someone else, out loud, without notes.