| Member | Role | Office Hours |
|---|---|---|
| Xu, Hong | Prof | Tue 9:00-11:00 pm, SHB 914. By appointment |
| Deng, Yangtao (ytdeng25@cse) | Head TA | Thu 9:30am - 11:30am, SHB 117 |
| Jia, Chaobo (cbjia25@cse) | TA | Tue 3:00pm -5:00pm, SHB 117 |
[NOTE]: Due to the large class size, please do not email us individually. Ed should be used for all Q&A.
The Ed page for this course is here. All communication about this course is done over Ed. This includes questions, discussions, announcements, as well as private messages.
This graduate course will introduce you to the key concepts and the state-of-the-art in large-scale software systems for LLMs and agents, and encourage you to think about either building new tools or how to apply existing ones in various domains.
Since datacenters and cloud computing form the backbone of modern computing, we will start with an overview of the two. We will then take a deep dive into three key aspects of the landscape: systems for LLM, systems for agents, and the common infra. Our topics will include: basics on generative models and agentic AI from a systems perspective; systems for LLMs such as pre-training, inference; systems for agents such as post-training, sandbox; and common infra issues such as reliability, simulation; etc. We will cover topics primarily from top conferences that take a systems view to the relevant challenges.
Note that this course is NOT focused on ML/AI algorithms or methods. Instead, we will focus on how one can build software systems so that existing AI methods can be used in practice and new AI methods can emerge.
Students are expected to have good programming skills and must have taken at least one undergraduate-level systems-related course (from operating systems, databases, distributed systems, and networking). This is not formally enforced but without some background students may find this course quite challenging. Having an undergraduate ML/AI course may be helpful, but not required or necessary.
This course has no textbooks. We will read recent papers from top venues to understand trends in scalable GenAI and agentic systems, and their applications.
This is an evolving list and subject to changes due to the breakneck pace of agentic and generative AI innovations.
| Week | Date | Topic | TA |
|---|---|---|---|
| 1 | Sep 7 | Introduction to Machine Learning Systems | TAO Yeyao (in place of Yangtao) |
| 2 | Sep 14 | ML system and GPU architecture overview | Yangtao |
| 3 | Sep 21 | Triton and graph optimization | Yangtao |
| 4 | Sep 28 | Data parallelism and Zero redundancy | Yangtao |
| 5 | Oct 5 | Pipeline parallelism | Yangtao |
| 6 | Oct 12 | ML compiler | Yangtao |
| 7 | Oct 26 | RL frameworks | Chaobo |
| 8 | Nov 2 | Transformers, LLMs, serving | Chaobo |
| 9 | Nov 9 | FlashAttention and FlashLinearAttention | Chaobo |
| 10 | Nov 16 | Continuous batching and PagedAttention | Chaobo |
| 11 | Nov 23 | Speculative Decoding | Chaobo |
| 12 | Nov 30 | LLM agents | Chaobo |
The format of this course is heavily borrowed from Prof. Mosharaf Chowdhury's CSE 585 from U. Michigan with his consent.
Adverse weather: The University has approved revised arrangements regarding suspension of face-to-face class meetings under adverse weather conditions. Details of the revised arrangements have been included in the updated Postgraduate Student Handbook. In light of this, this course adopts the following weather policy by default: when a lecture or tutorial is affected as a result of adverse weather, we will switch to online teaching using Zoom for that lecture or tutorial at the scheduled time; the paper presentations and discussions will be done in the Zoom meeting. The Zoom detail will be emailed to all students well before the scheduled time. The Zoom session will also be recorded in full so students can review the materials. By registering the course students are aware of and agree to this policy.
Academic honesty: CUHK policy; Engineering faculty policy
All activities of this course will be performed in groups of 5 students. Remaining students will be grouped randomly. We will take it into consideration during grading for groups with fewer students.
Register your group information here: https://forms.gle/QfSWSvF7NHtutVC56, by 23:59 Sep 13. After the deadline we will add remaining students to the groups randomly. Final grouping information: https://docs.google.com/spreadsheets/d/1SXECiKS-mpcFCk9n-cZX8UQtq69UT6HkRK8D4z_xIhA/edit?usp=sharing.
Online bidding for papers will start on Sep 14 following the finalization of groups.
Each lecture will have two/three required readings that everyone must read.
There will be two or more optional related reading(s) that only the presenter(s) should be familiar with.
They are optional for the rest of the class.
The course will be conducted as a seminar. Only one group will present in each class. Each group will be assigned at least one lecture over the course of the semester. Presentations should succinctly cover all required papers for that lecture. The duration of the presentation should be at most 40 minutes for each paper with short clarifying questions and interruptions. The rest of the lecture time will be dedicated toward discussion on the papers and the broader topic(s) covered by the papers.
In the presentation, you should:
The instructor team will review and suggest improvements for the presentations before each lecture. Therefore, the slides for a presentation must be emailed to the instructor team at least 24 hours prior to the corresponding class. To enable suggestions, use Google Slides and allow the instructor team give in-line comments.
Each group will also be assigned to write summaries for at least one student lecture. The summary assigned to a group will not be the reading they gave the lecture on. The group will write a summary for all presented papers (required readings) for that lecture.
A paper summary must address the following questions in sufficient details (2-3 pages):
The paper summary must be submitted to https://docs.google.com/forms/d/e/1FAIpQLScedf8xuxkDfueS7x7s3-uSYwtBvu9iBLPAsKB3ax364nvaKw/viewform?usp=publish-editor within 24 hours after the class ends at 1:15pm. Late summaries will not be counted. You should use this format for writing your summary.
Allocate enough time for your reading, discuss as a group, write the summary carefully, and finally, include key observations from the class discussion.
To foster a deeper understanding of the papers and encourage critical thinking, each lecture will be followed by a panel discussion. This discussion will involve three distinct roles played by different student groups (presenters, reviewers, and summarizers), simulating an interactive and dynamic scholarly exchange.
Given the discussion-based nature of this course, participation is required both for your own understanding and to improve the overall quality of the course. You are expected to attend all lectures (you may skip up to 2 lectures due to legitimate reasons), and more importantly, participate in class discussions. There will be random events to gauge attendance.
A key part of participation will be in the form of discussion in Ed. The group in charge of the summary should initiate the discussion and the rest should participate. Not everyone has to add something every day, but it is expected that everyone has something to say over the semester.
You will have to complete substantive work on an instructor-approved problem and have original contribution. Surveys are not permitted as projects; instead, each project must contain a survey of background and related work.
You must meet the following milestones (unless otherwise specified in future announcements) to ensure a high-quality project at the end of the semester:
ssh linux1-15
export SLURM_CONF=/opt1/slurm/gpu-slurm.conf
srun --account gpu --qos csci5540 -p csci5540 --gres=gpu:1 --pty /bin/bash
| Weight | |
|---|---|
| Paper Presentation | 20% |
| Paper Summary | 10% |
| Participation | 10% |
| Project Report | 40% |
| Project Presentation | 20% |
| Member | Role | Office Hours |
|---|---|---|
| Xu, Hong | Prof | Tue 9:00-11:00 pm, SHB 914. By appointment |
| Deng, Yangtao (ytdeng25@cse) | Head TA | Thu 9:30am - 11:30am, SHB 117 |
| Jia, Chaobo (cbjia25@cse) | TA | Tue 3:00pm -5:00pm, SHB 117 |
[NOTE]: Due to the large class size, please do not email us individually. Ed should be used for all Q&A.
The Ed page for this course is here. All communication about this course is done over Ed. This includes questions, discussions, announcements, as well as private messages.
This graduate course will introduce you to the key concepts and the state-of-the-art in large-scale software systems for LLMs and agents, and encourage you to think about either building new tools or how to apply existing ones in various domains.
Since datacenters and cloud computing form the backbone of modern computing, we will start with an overview of the two. We will then take a deep dive into three key aspects of the landscape: systems for LLM, systems for agents, and the common infra. Our topics will include: basics on generative models and agentic AI from a systems perspective; systems for LLMs such as pre-training, inference; systems for agents such as post-training, sandbox; and common infra issues such as reliability, simulation; etc. We will cover topics primarily from top conferences that take a systems view to the relevant challenges.
Note that this course is NOT focused on ML/AI algorithms or methods. Instead, we will focus on how one can build software systems so that existing AI methods can be used in practice and new AI methods can emerge.
Students are expected to have good programming skills and must have taken at least one undergraduate-level systems-related course (from operating systems, databases, distributed systems, and networking). This is not formally enforced but without some background students may find this course quite challenging. Having an undergraduate ML/AI course may be helpful, but not required or necessary.
This course has no textbooks. We will read recent papers from top venues to understand trends in scalable GenAI and agentic systems, and their applications.
This is an evolving list and subject to changes due to the breakneck pace of agentic and generative AI innovations.
| Week | Date | Topic | TA |
|---|---|---|---|
| 1 | Sep 7 | Introduction to Machine Learning Systems | TAO Yeyao (in place of Yangtao) |
| 2 | Sep 14 | ML system and GPU architecture overview | Yangtao |
| 3 | Sep 21 | Triton and graph optimization | Yangtao |
| 4 | Sep 28 | Data parallelism and Zero redundancy | Yangtao |
| 5 | Oct 5 | Pipeline parallelism | Yangtao |
| 6 | Oct 12 | ML compiler | Yangtao |
| 7 | Oct 26 | RL frameworks | Chaobo |
| 8 | Nov 2 | Transformers, LLMs, serving | Chaobo |
| 9 | Nov 9 | FlashAttention and FlashLinearAttention | Chaobo |
| 10 | Nov 16 | Continuous batching and PagedAttention | Chaobo |
| 11 | Nov 23 | Speculative Decoding | Chaobo |
| 12 | Nov 30 | LLM agents | Chaobo |
The format of this course is heavily borrowed from Prof. Mosharaf Chowdhury's CSE 585 from U. Michigan with his consent.
Adverse weather: The University has approved revised arrangements regarding suspension of face-to-face class meetings under adverse weather conditions. Details of the revised arrangements have been included in the updated Postgraduate Student Handbook. In light of this, this course adopts the following weather policy by default: when a lecture or tutorial is affected as a result of adverse weather, we will switch to online teaching using Zoom for that lecture or tutorial at the scheduled time; the paper presentations and discussions will be done in the Zoom meeting. The Zoom detail will be emailed to all students well before the scheduled time. The Zoom session will also be recorded in full so students can review the materials. By registering the course students are aware of and agree to this policy.
Academic honesty: CUHK policy; Engineering faculty policy
All activities of this course will be performed in groups of 5 students. Remaining students will be grouped randomly. We will take it into consideration during grading for groups with fewer students.
Register your group information here: https://forms.gle/QfSWSvF7NHtutVC56, by 23:59 Sep 13. After the deadline we will add remaining students to the groups randomly. Final grouping information: https://docs.google.com/spreadsheets/d/1SXECiKS-mpcFCk9n-cZX8UQtq69UT6HkRK8D4z_xIhA/edit?usp=sharing.
Online bidding for papers will start on Sep 14 following the finalization of groups.
Each lecture will have two/three required readings that everyone must read.
There will be two or more optional related reading(s) that only the presenter(s) should be familiar with.
They are optional for the rest of the class.
The course will be conducted as a seminar. Only one group will present in each class. Each group will be assigned at least one lecture over the course of the semester. Presentations should succinctly cover all required papers for that lecture. The duration of the presentation should be at most 40 minutes for each paper with short clarifying questions and interruptions. The rest of the lecture time will be dedicated toward discussion on the papers and the broader topic(s) covered by the papers.
In the presentation, you should:
The instructor team will review and suggest improvements for the presentations before each lecture. Therefore, the slides for a presentation must be emailed to the instructor team at least 24 hours prior to the corresponding class. To enable suggestions, use Google Slides and allow the instructor team give in-line comments.
Each group will also be assigned to write summaries for at least one student lecture. The summary assigned to a group will not be the reading they gave the lecture on. The group will write a summary for all presented papers (required readings) for that lecture.
A paper summary must address the following questions in sufficient details (2-3 pages):
The paper summary must be submitted to https://docs.google.com/forms/d/e/1FAIpQLScedf8xuxkDfueS7x7s3-uSYwtBvu9iBLPAsKB3ax364nvaKw/viewform?usp=publish-editor within 24 hours after the class ends at 1:15pm. Late summaries will not be counted. You should use this format for writing your summary.
Allocate enough time for your reading, discuss as a group, write the summary carefully, and finally, include key observations from the class discussion.
To foster a deeper understanding of the papers and encourage critical thinking, each lecture will be followed by a panel discussion. This discussion will involve three distinct roles played by different student groups (presenters, reviewers, and summarizers), simulating an interactive and dynamic scholarly exchange.
Given the discussion-based nature of this course, participation is required both for your own understanding and to improve the overall quality of the course. You are expected to attend all lectures (you may skip up to 2 lectures due to legitimate reasons), and more importantly, participate in class discussions. There will be random events to gauge attendance.
A key part of participation will be in the form of discussion in Ed. The group in charge of the summary should initiate the discussion and the rest should participate. Not everyone has to add something every day, but it is expected that everyone has something to say over the semester.
You will have to complete substantive work on an instructor-approved problem and have original contribution. Surveys are not permitted as projects; instead, each project must contain a survey of background and related work.
You must meet the following milestones (unless otherwise specified in future announcements) to ensure a high-quality project at the end of the semester:
ssh linux1-15
export SLURM_CONF=/opt1/slurm/gpu-slurm.conf
srun --account gpu --qos csci5540 -p csci5540 --gres=gpu:1 --pty /bin/bash
| Weight | |
|---|---|
| Paper Presentation | 20% |
| Paper Summary | 10% |
| Participation | 10% |
| Project Report | 40% |
| Project Presentation | 20% |