Teaching
Courses, programs and lecture slides.
How modern foundation models are built, trained and used, covering both large language models and vision-language models. Core course of the M.Sc. in Artificial Intelligence Systems (DISI), 2nd year, first semester · 6 CFU · taught in English.
Taught with Jacopo Staiano (LLM block) and Federico Bartsch (practice labs). Announcements, materials and report submission are on Moodle.
Program
What you'll learn
- Read a research paper critically and take a position on it
- Explain the design choices behind current LLMs and multimodal models
- Run inference and training experiments yourself, on the department GPU cluster
- Present a paper and write a paper-style report
What you should already know
Solid Python, the basics of machine learning and deep learning, linear algebra and probability. PyTorch helps, but other frameworks are fine.
How the course runs
| Block | Content |
|---|---|
| Intro | Why foundation models, and how to read a paper |
| LLM lectures | Language modelling, transformers, question answering, generation, tuning and reasoning |
| VLM lectures | Multimodal understanding, training and alignment, reasoning and agents, generation, responsible AI, vision-language-action models |
| Practice labs | Hands-on sessions on the GPU cluster: 2 on LLMs, 2 multimodal |
| Paper presentations | One paper each, 8 minutes + 5 of questions, presented from the paper itself |
| Project work | You bring a topic and leave with a plan |
Half of the 24 sessions are lectures; the other half are you working.
Exam
A final project in groups of 2–4: a paper-style report (NeurIPS template, max 6 pages) handed in one week before the exam, plus a 10-minute presentation and discussion on the exam date. Paper presentations during the semester earn bonus points, which can't be recovered later.
Materials
No textbook, because the field moves too fast. Readings are research papers and these slides. For background: Goodfellow, Bengio & Courville, Deep Learning (MIT Press, 2016).
A first course in programming, M.Sc. Cognitive Science. We go from "what even is a program?" to reading text off the web and processing it. No prior experience needed: the only requirement is being willing to be precise, and to be wrong often.
Taught with Ester Riccardi (practice labs).
6 CFU · 14 lectures of 3 hours, 16 September to 30 October 2026 · Polo di Rovereto, Palazzo Piomarta. Slides, worked solutions and announcements are on Moodle.
Program
How the course runs
Ten taught lectures and four practicals (sessions 5, 8, 11 and 14) with the tutor. Lectures are live coding: you write code yourself in class, and every lecture ends with exercises. Worked solutions, as notebooks, follow afterwards. Attendance isn't compulsory, but the practicals are hands-on, so come.
Topics
| Block | What we cover |
|---|---|
| Thinking like a machine | How code runs, state, expressions and scope |
| Data & control flow | Variables and data types, conditionals and loops |
| Structuring code | Functions, files and the command line, modules, objects and classes |
| Text & the web | Regular expressions, transforming text, reading web pages |
Exam
One individual practical exam on the classroom computers: you solve a series of programming exercises on the topics of the course. There's no theory paper and no syntax to recite from memory. Exam dates are published from around December.
Materials
No compulsory textbook; the slides and worked solutions are the course material. Optional reading, both available through the UniTrento libraries: - Sweigart, Automate the Boring Stuff with Python (No Starch Press, 2015), if you want a second voice on the basics - Hammond, Python for Linguists (Cambridge University Press, 2020), for the linguistic angle the course picks up later
Lectures
-
01
Introduction to Programming I: how code runs
-
02
Introduction to Programming II: state, expressions and scope
-
03
Variables & Data Types
-
04
Control Flow: conditionals & loops
-
05
Functions
-
06
Input & Output: files, JSON and the command line
-
07
Modules
-
08
Objects & Classes
-
09
Regular Expressions