Syllabus
This course gives a practical and conceptual tour of modern token-based generative AI systems, starting from large language models (LLMs) and extending to text-to-speech (TTS). We’ll cover model architectures (tokenization, transformers, attention), how they are trained, and how they are deployed in production.
#### Lecture 1 – Foundations of Large Language Models (2h)
1. What a language model is: inputs, outputs, and internal components
2. Decoder-only transformers: how GPT-style architectures are structured
3. Tokenization and embeddings: from human-readable text to machine-readable symbols
4. Multi-head attention mechanisms
5. Three training steps of GPT: pre-training, fine-tuning and RLHF
6. Final reflections on “psychology” of LLM and limitations
#### Lecture 2 – LoRA Fine-Tuning and Hallucination Mitigation (2h)
1. Source of hallucination in LLM and RAG systems
2. LoRA: full fine-tuning vs. parameter-efficient methods
3. Building a hallucination-mitigation dataset
4. Hands on session on LoRA
#### Lecture 3 – Deploying LLMs in Production (2h)
1. Introduction to REST APIs and communication between applications over the internet
2. From LLM to service: high-level inference serving architecture
3. Performance metrics for LLM services
4. KV cache: what it is, and how it speeds up decoding
5. Introduction to vLLM as inference engines
6. PagedAttention for high throughput
#### Lecture 4 – Text-to-Speech Model (2h)
1. Introduction to text-to-speech (TTS) systems
2. Overview of main TTS model families: adapter-based, diffusion-based, and token-based approaches
3. Audio tokenization
4. Moshi: modern TTS architectures
5. Zero-shot voice cloning vs. fine-tuning
6. Data preparation for TTS
7. Training a TTS model
### Prerequisites
– Basic programming knowledge in Python.
– Familiarity with basic machine learning concepts.