Qatar AI Institute
← Back to courses

Foundations of Large Language Models: From N-grams to LLMs

From QAR 73· Beginner to Intermediate· 31 minutes of video · 10 lessons· Online: live sessions and recordings
Foundations of Large Language Models: From N-grams to LLMs

A beginner-friendly video course on how language models work, from counting words to transformers and AI assistants. No machine learning background needed.

How does a model like ChatGPT or Claude actually work? This course answers that question from the ground up. You start with the simplest idea, predicting the next word by counting, and build step by step to neural networks, attention, and the transformer, then see how a raw model becomes a helpful assistant.

What you will learn

  • How text is split into tokens and turned into numbers
  • How n-gram models predict the next word, and why they fall short
  • How a model learns weights from examples, and how embeddings give words meaning
  • How neural networks learn with loss and gradient descent
  • How attention and the transformer power modern LLMs
  • How instruction tuning and human feedback create assistants, and where retrieval, agents and interpretability fit

Who it is for

College students and working professionals who want a clear mental model of LLMs. No machine learning background is needed, and basic high-school math is enough.

Lessons

10 video lessons · 31 minutes · the first 3 are free

🔒

How Neural Networks Learn

Enroll to unlock this lesson and the rest of the course.

7. How Neural Networks Learn

Neurons, layers, gradient descent, and backpropagation.

  1. 1IntroductionFree2:01
  2. 2How This Course Is OrganizedFree1:18
  3. 3Why Text Must Be Turned Into TokensFree4:13
  4. 4How Machines Predict the Next Word🔒5:42
  5. 5From Counting Words to Learning Weights🔒3:17
  6. 6Words as Vectors: Embeddings🔒2:53
  7. 7How Neural Networks Learn🔒2:48
  8. 8Attention and the Transformer🔒3:03
  9. 9Instruction Tuning and Human Feedback🔒2:59
  10. 10Your Roadmap: Retrieval, Agents, and Interpretability🔒3:01