Goals of the course:
Syllabus from SIS:
The course is part of the inter-university programme prg.ai Minor.
SIS code: NPFL140
Semester: summer
E-credits: 3
Examination: 0/2 C
Guarantors: Jindřich Helcl, Jindřich Libovický
The course is held on Thursdays at 12:20 in S5.
1. Introductory notes and discussion on large language models Slides
2. The Transformer architecture Slides Notes Recording
4. LLM Inference Slides Code Recording
6. LLM Training Slides Recording
9. Mini-conference: Research for and with LLMs
Unless otherwise stated, teaching materials for this course are available under CC BY-SA 4.0.
Feb 19 Slides
Instructor: Zdeněk Kasner
Covered topics: aims of the course, passing requirements. We informally discussed what are (large) language models, what are they for, what are their benefits and downsides. We also gathered ideas on how to train the models, how to use them, and how to evaluate them.
Instructor: Jindřich Libovický
Learning objectives. After the lecture you should be able to...
Explain the building blocks of the Transformer architecture to a non-technical person.
Describe the Transformer architecture using equations, especially the self-attention block.
Implement the Transformer architecture (in PyTorch or another framework that does automated differentiation).
Additional materials.
Transformers explained by AI Coffee Break with Letitia (20 min)
Let's build GPT: from scratch, in code, spelled out by Andrej Karpathy (2 hours)
The Illustrated Transformer by Jay Alammar
MicroGPT Project: Complete Transformer training and inference code in 200 lines of Python
Mar 5 Slides
Instructors: Ondřej Dušek & Patrícia Schmidtová
Learning objectives:
Additional materials:
A survey of datasets for LLMs
A blog post on evaluation -- a little different take than what we showed at the lecture, but very well written
Instructor: Zdeněk Kasner
Learning objectives. After the class you should be able to...
Additional materials.
Mar 19 Exercise Shared Report
Instructor: Zdeněk Kasner
Learning objectives. After the class, you should be able to...
Additional materials.
Instructor: Ondřej Dušek
Learning objectives:
Apr 2 Slides
Instructor: Jindřich Libovický
Learning objectives. After the class, you should be able to...
Apr 9
Instructor: Jindřich Libovický
Apr 16
Researchers from ÚFAL will briefly present their recent projects that involve LLMs.
You will work on a team project during the semester. Teams of 4-6 students will work on the following topics.
In addition, write a log every week from the start until the end (the earlier you submit the less logs to do).
Each team will submit a report, consisting of:
The length of the report should be maximum 4 pages plus references and contributions. You might want to use the ACL paper template.
You will be asked at least once to read a paper before the class.
You need to take part in a final written test that will not be graded.