- Description
- Learning Outcomes
- Contacts
- Delivery of the Learning module
- Schedule
- Requirements
- Assessment
- Requirements
- Resources
- Folder Structure
This microcredential provides an overview of the Design of AI Systems which are embedded in data products and applications. It covers the fundamental components of the infrastructure, systems, and methods necessary to implement and maintain AI systems.
The course has two components:
- A discussion of the main issues and challenges faced in production, together with some approaches to address them.
- A live lab with demonstrations of implementation techniques.
The course is based on Chip Huyen's book, AI Engineering. We will cover the following areas:
- Part 1. Fundamentals. The first part of the course will be devoted to building fundamental knowledge about AI models. We explore their evolution from Machine Learning system and highlight the differences between Machine Learning and the Foundation Models which lie behind most AI applications.
- Session 1: Introduction to AI Systems
- What is an AI System?
- Use cases and planning an AI application
- The AI engineering Stack
- Session 2: An overview of Foundation Models
- From machine learning to foundation models via deep learning
- Model architectures
- Training, pre-training, post-training models
- Sampling, hallucinations, and the probabilistic nature of AI
- Session 3: Model Evaluation and System Evaluation
- Performance metrics
- Exact evaluation and using AI as a judge
- Designing an evaluation pipeline
- Session 1: Introduction to AI Systems
- Part 2. Working with AI Systems. Foundation models are expensive and, most of the time, are impractical to train by organizations and users. In the current state of engineering, the majority of AI applications will be built on pre-trained models. This portion of the course will cover the main techniques to build AI applications and systems.
- Session 4: Prompt Engineering
- System vs user prompt, context length and context efficiency
- Prompt engineering best practices
- Defensive prompt engineering
- Session 5: Retrieval Augmented Generation (RAG)
- RAG Architecture
- Retrieval Algorithms and optimization
- Session 6: Agents
- Planning
- Interacting with APIs and MCP
- Agent failure modes and evaluation
- Session 4: Prompt Engineering
- Part 3. Optimization and System Design. Enhancing AI systems can be achieved by finetuning them on specific tasks or to provide outputs that avoid undesired results. As well, good design practices can be used to reduce latency and cost and provide consistent experiences to users.
- Session 7: Finetuning
- Finetuning overview
- Finetuning techniques
- Session 8: Data Engineering
- Data curation
- Data augmentation and synthesis
- Data processing
- Session 9: Optimization and System Design
- Inference optimization
- AI engineering architecture
- User feedback
- Session 7: Finetuning
We will discuss the tools and techniques required to do the above in good order and at scale. However, we will not discuss the inner working of models, advantages, and so on. As well, we will not discuss the theoretical aspects of feature engineering or hyperparameter tuning. We will focus on tools and reproducibility.
By the end of this module, participants will be able to:
- Define foundation models and describe the main characteristics of AI systems that are based on foundation models. Explain how AI systems differ from other systems based on Machine Leanring.
- Describe the main components of an AI system architecture.
- Explain the main methods to enhance the performance and security of AI systems, including prompt engineering, fine tuning, and retrieval augmented generation.
- Contrast and evaluate different approaches of implementing foundation models.
- Implement data flows and processes to automate tasks using foundation models, including conversational interfaces, agents, and retrieval augmented generation, among others.
Questions can be submitted to the help channel on Slack
-
Technical Facilitator:
-
Learning Support:
This module will include live learning sessions and optional, asynchronous work periods. During live learning sessions, the Technical Facilitator will introduce and explain key concepts and demonstrate core skills. Learning is facilitated during this time. Before and after each live learning session, the instructional team will be available for questions related to the core concepts of the module. Optional work periods are to be used to seek help from peers, the Learning Support team, and to work through the homework and assignments in the learning module, with access to live help. Content is not facilitated, but rather this time should be driven by participants. We encourage participants to come to these work periods with questions and problems to work through. Participants are encouraged to engage actively during the learning module. They key to developing the core skills in each learning module is through practice. The more participants engage in coding along with the instructional team, and applying the skills in each module, the more likely it is that these skills will solidify.
| Type | Date | Topic |
|---|---|---|
| Live | Oct. 21 | Introduction |
| Live | Oct. 22 | Foundation Models |
| Live | Oct. 23 | Evaluation |
| Work | Oct. 24 | Work Period |
| Live | Oct. 28 | Prompt Engineering |
| Live | Oct. 29 | Retrieval Augmented Generation |
| Live | Oct. 30 | Tools and Agents |
| Work | Oct. 31 | Work Period |
| Deadline | Nov. 3 (@3pm) | Assignment 1 Due |
| Live | Nov. 4 | Fine Tuning |
| Live | Nov. 5 | Dataset Engineering |
| Live | Nov. 6 | Optimization |
| Work | Nov. 7 | Work Period |
| Deadline | Nov. 10 (@3pm) | Assignment 2 Due |
- Participants are not expected to have any coding experience; the learning content has been designed for beginners.
- Participants are encouraged to ask questions, and collaborate with others to enhance their learning experience.
- Participants must have a computer and an internet connection to participate in online activities.
- Participants must not use generative AI such as ChatGPT to generate code in order to complete assignments. It should be used as a supportive tool to seek out answers to questions you may have.
- We expect participants to have completed the instructions mentioned in the onboarding repo.
- We encourage participants to default to having their camera on at all times, and turning the camera off only as needed. This will greatly enhance the learning experience for all participants and provides real-time feedback for the instructional team.
Your performance on this module will be assessed using six quizzes and two assignments.
Quizzes will help you build key concepts in foundation models and AI Engineering. In our experience, learners take 5-10 minutes to answer each quiz to obtain an average score of +80%.
- Each quiz will contain material from each live learning session.
- You will receive a link to each quiz during the respective live learning session. The links are personalized, please do not share them. If you did not receive a link, contact any member of the course delivery team.
- Each quiz will contain about 10 questions of different types: true/false, multiple choice, simple selection, etc.
- All quizzes are mandatory and should be submitted by their due date.
- The quizzes will remain open until their respective due dates, after which you will not have access to them.
Assignments will help you develop coding and debuging skills. They will cover foundational skills and will extend to advanced concepts. We recommend that you attempt all assignments and submit your work even if it is incomplete (partial submissions will get you partial marks).
- Each assigment should be submitted using the usual method in DSI via a Pull Request.
- The assigments and their respective rubrics are:
All participants will receive a pass or fail mark. The mark will be determined as follows:
- Quizzes' average score - 60%
- Assginment 1 - 20%
- Assignment 2 - 20%
Assignments' assessment can be transformed to a numeric grade using:
- Complete - 100 points
- Incomplete / Partially Complete - 50 points
- Missing / Not submitted - 0 points
For this course, 60 points are required to receive a "pass" mark.
For example, a learner with the following grades would receive "pass":
- Quizzes 80
- Assignment 1 - Complete (100)
- Assignment 2 - Incomplete (50)
- (0.6 * 80) + (0.2 * 100) + (0.2 * 50) = 48 + 20 + 10 = 78 > 60
A different learner with grades as shown bellow would receive "fail":
- Quizzes 80
- Assignment 1 - Incomplete (50)
- Assignment 2 - Missing (0)
- (0.6 * 80) + (0.2 * 50) + 0 = 48 + 10 + 0 = 58 < 60
- Python 101, by Mike Driscoll
-
uv's documentation page
- Installation instructions for most popular operating systems.
- First steps after installing uv
- Features
-
Managing Python Projects With uv: An All-in-One Solution, by Real Python
-
Getting Started with Docker
-
Installation instructions:
-
Docker Desktop Documnetation
-
What is Docker? on Youtube
-
A playlist with tutorials about Docker on YouTube
.
├── .github
├── 01_materials
├── 02_activities
├── 03_instructional_team
├── 04_this_cohort
├── 05_src
├── .gitignore
├── LICENSE
├── SETUP.md
├── pyproject.toml
└── README.md- .github: Contains issue templates and pull request templates for the repository.
- materials/slides: Module slides and interactive notebooks (.ipynb files) used during learning sessions.
- activities: Contains graded assignments, exercises, and homework to practice concepts covered in the learning module.
- instructional_team: Resources for the instructional team.
- this_cohort: Additional materials and resources for this cohort, including live coding files.
- src/data: Source code, databases, logs, and required dependencies (requirements.txt) needed during the module.
- .gitignore: Files to exclude from this folder, specified by the Technical Facilitator
- LICENSE: The license for this repository.
- SETUP.md: Contains the steps required to set up this repo for the module.
- pyproject.toml: Tells Python which packages this repo needs to run.
- README.md: This file.