-
Notifications
You must be signed in to change notification settings - Fork 163
/
_quarto.yml
363 lines (318 loc) · 12 KB
/
_quarto.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
project:
type: book
output-dir: _book
preview:
browser: true
navigate: true
website:
announcement:
icon: star-half
dismissable: true
content: |
📘 <b>What's new?</b> 🎉 Happy New Year 2025! Chapters 1–5 expanded and improved, with a brand new Chapter 4!</br>
🚀 <b>Every learner deserves to be a ⭐</b> 1 GitHub ⭐ = 1 👩🎓 Learner. Your support fuels free, impactful educational resources on AI.</br>
🙏 <b>Thank you for your support!</b> Every GitHub star shows a learner engaging or a supporter driving our mission. You can click <a href="https://github.com/harvard-edge/cs249r_book">here</a> to star us.
position: below-navbar
book:
google-analytics:
tracking-id: "G-M21L0CBCVN"
anonymize-ip: true
version: 4
comments:
hypothesis:
theme: clean
openSidebar: true
search:
keyboard-shortcut: ["~", "/"]
location: sidebar
navbar:
pinned: false
collapse: true
back-to-top-navigation: true
favicon: favicon.png
cover-image: cover-image-transparent.png
cover-image-alt: "Cover image."
bread-crumbs: true
sidebar:
collapse-level: 2
border: true
pinned: false
search: true
page-navigation: true
title: "Machine Learning Systems"
subtitle: "Principles and Practices of Engineering Artificially Intelligent Systems"
date: today
date-format: long
author:
name: Vijay Janapa Reddi
email: [email protected]
url: https://www.google.com/search?q=Vijay+Janapa+Reddi
affiliations: Harvard University
corresponding: true
roles: "Author, editor and curator."
abstract: |
Machine Learning Systems presents a comprehensive approach to understanding and engineering machine learning (ML). While many resources focus on ML algorithms and model architectures, this book serves as a bridge between theoretical foundations and practical engineering. It emphasizes the systems context that engineers need to master when building AI solutions in the real world. The text progresses from foundational concepts to advanced system design, integrating topics such as data engineering, model optimization, hardware-aware training approaches, and inference acceleration strategies. Throughout the book, readers develop a principled understanding of ML systems engineering, learning to reason about system architectures and address critical challenges in areas including security, privacy, and reliability. While ML applications and tools evolve rapidly, the engineering principles for building ML systems remain largely consistent. This book distills these enduring concepts, making it a resource for anyone seeking to build flexible, efficient, and robust ML systems.
----
🎙 Listen to the **AI Podcast**,
created using Google's Notebook LM and inspired by insights drawn from our
[IEEE education viewpoint paper](https://web.eng.fiu.edu/gaquan/Papers/ESWEEK24Papers/CPS-Proceedings/pdfs/CODES-ISSS/563900a043/563900a043.pdf).
This podcast provides an accessible overview of what this book is all about.
<audio controls>
<source src="contents/frontmatter/media/notebooklm_podcast_mlsysbookai.mp3" type="audio/mpeg">
</audio>
----
repo-url: https://github.com/harvard-edge/cs249r_book
repo-branch: dev
repo-actions: [edit, issue, source]
downloads: [pdf]
sharing: [twitter, facebook]
reader-mode: true
page-footer:
left: |
Written, edited and curated by Prof. Vijay Janapa Reddi (Harvard University)
right: |
This book was built with <a href="https://quarto.org/">Quarto</a>.
chapters:
- text: "---"
- index.qmd
- contents/frontmatter/foreword.qmd
- contents/frontmatter/about/about.qmd
- contents/frontmatter/acknowledgements/acknowledgements.qmd
- text: "---"
- contents/frontmatter/ai/socratiq.qmd
- text: "---"
- part: "<div class=\"part\">The Essentials</div>"
- contents/core/introduction/introduction.qmd
- contents/core/ml_systems/ml_systems.qmd
- contents/core/dl_primer/dl_primer.qmd
- contents/core/dnn_architectures/dnn_architectures.qmd
- part: "<div class=\"part\">Engineering Principles</div>"
- contents/core/workflow/workflow.qmd
- contents/core/data_engineering/data_engineering.qmd
- contents/core/frameworks/frameworks.qmd
- contents/core/training/training.qmd
- contents/core/efficient_ai/efficient_ai.qmd
- contents/core/optimizations/optimizations.qmd
- contents/core/hw_acceleration/hw_acceleration.qmd
- contents/core/benchmarking/benchmarking.qmd
- contents/core/ops/ops.qmd
- part: "<div class=\"part\">Best Practices in AI</div>"
- contents/core/ondevice_learning/ondevice_learning.qmd
- contents/core/privacy_security/privacy_security.qmd
- contents/core/responsible_ai/responsible_ai.qmd
- contents/core/sustainable_ai/sustainable_ai.qmd
- contents/core/robust_ai/robust_ai.qmd
# - contents/core/generative_ai/generative_ai.qmd
- part: "<div class=\"part\">Closing Perspectives</div>"
- contents/core/ai_for_good/ai_for_good.qmd
- contents/core/conclusion/conclusion.qmd
- text: "---"
- part: contents/labs/labs.qmd
chapters:
- contents/labs/overview.qmd
- contents/labs/getting_started.qmd
- part: contents/labs/arduino/nicla_vision/nicla_vision.qmd
chapters:
- contents/labs/arduino/nicla_vision/setup/setup.qmd
- contents/labs/arduino/nicla_vision/image_classification/image_classification.qmd
- contents/labs/arduino/nicla_vision/object_detection/object_detection.qmd
- contents/labs/arduino/nicla_vision/kws/kws.qmd
- contents/labs/arduino/nicla_vision/motion_classification/motion_classification.qmd
- part: contents/labs/seeed/xiao_esp32s3/xiao_esp32s3.qmd
chapters:
- contents/labs/seeed/xiao_esp32s3/setup/setup.qmd
- contents/labs/seeed/xiao_esp32s3/image_classification/image_classification.qmd
- contents/labs/seeed/xiao_esp32s3/object_detection/object_detection.qmd
- contents/labs/seeed/xiao_esp32s3/kws/kws.qmd
- contents/labs/seeed/xiao_esp32s3/motion_classification/motion_classification.qmd
- part: contents/labs/raspi/raspi.qmd
chapters:
- contents/labs/raspi/setup/setup.qmd
- contents/labs/raspi/image_classification/image_classification.qmd
- contents/labs/raspi/object_detection/object_detection.qmd
- contents/labs/raspi/llm/llm.qmd
- contents/labs/raspi/vlm/vlm.qmd
- part: contents/labs/shared/shared.qmd
chapters:
- contents/labs/shared/kws_feature_eng/kws_feature_eng.qmd
- contents/labs/shared/dsp_spectral_features_block/dsp_spectral_features_block.qmd
- text: "---"
- part: REFERENCES
chapters:
- contents/core/references.qmd
bibliography:
- contents/core/introduction/introduction.bib
- contents/core/ai_for_good/ai_for_good.bib
- contents/core/benchmarking/benchmarking.bib
- contents/core/data_engineering/data_engineering.bib
- contents/core/dl_primer/dl_primer.bib
- contents/core/dnn_architectures/dnn_architectures.bib
- contents/core/efficient_ai/efficient_ai.bib
- contents/core/ml_systems/ml_systems.bib
- contents/core/frameworks/frameworks.bib
- contents/core/generative_ai/generative_ai.bib
- contents/core/hw_acceleration/hw_acceleration.bib
- contents/core/ondevice_learning/ondevice_learning.bib
- contents/core/ops/ops.bib
- contents/core/optimizations/optimizations.bib
- contents/core/privacy_security/privacy_security.bib
- contents/core/responsible_ai/responsible_ai.bib
- contents/core/robust_ai/robust_ai.bib
- contents/core/sustainable_ai/sustainable_ai.bib
- contents/core/training/training.bib
- contents/core/workflow/workflow.bib
- contents/core/conclusion/conclusion.bib
comments:
giscus:
repo: harvard-edge/cs249r_book
crossref:
appendix-title: "Appendix"
appendix-delim: ":"
custom:
- kind: float
reference-prefix: Lab
key: labq
latex-env: lab
- kind: float
reference-prefix: Exercise
key: exr
latex-env: exr
- kind: float
reference-prefix: Video
key: vid
latex-env: vid
citation: true
license: CC-BY-NC-SA
filters:
- custom_callout.lua
editor:
render-on-save: true
format:
html:
lightbox: true
mermaid:
theme: default
theme:
light:
- default
- style.scss
- style-light.scss
dark:
- darkly
- style.scss
- style-dark.scss
code-block-bg: true
#code-block-border-left: "#A51C30"
table:
classes: [table-striped, table-hover]
language:
title-block-author-single: "Author, Editor & Curator"
title-block-published: "Last Updated"
reference-location: margin
citation-location: margin
sidenote: true Enable sidenotes for Tufte style
linkcolor: "#A51C30"
urlcolor: "#A51C30"
highlight-style: github
code-link: true
link-external-icon: false
link-external-newwindow: true
anchor-sections: true
smooth-scroll: false
citations-hover: false
footnotes-hover: false
fig-width: 8
fig-height: 6
number-depth: 3
toc: true
toc-depth: 4
include-in-header:
text: |
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M21L0CBCVN"></script>
<script type="module" src="/scripts/ai_menu/dist/bundle.js" defer></script>
citeproc: true
titlepage-pdf:
documentclass: scrbook
classoption: [abstract,titlepage]
coverpage: true
coverpage-title: "Machine Learning Systems"
coverpage-bg-image: "cover-image-transparent.png"
coverpage-author: ["Vijay", "Janapa Reddi"]
coverpage-theme:
page-text-align: "center"
bg-image-left: "0.225\\paperwidth"
bg-image-bottom: 7
bg-image-rotate: 0
bg-image-opacity: 1.0
author-style: "plain"
author-sep: "newline"
author-fontsize: 20
author-align: "right"
author-bottom: "0.15\\paperwidth"
author-left: 7in
author-width: 6in
footer-style: "none"
header-style: "none"
date-style: "none"
title-fontsize: 57
title-left: "0.075\\paperwidth"
title-bottom: "0.375\\paperwidth"
title-width: "0.9\\paperwidth"
titlepage: true
titlepage-theme:
elements: [ "\\titleblock",
"Prof. Vijay Janapa Reddi",
"School of Engineering and Applied Sciences",
"Harvard University",
"\\vfill",
"With heartfelt gratitude to the community for their invaluable contributions and steadfast support.",
"\\vfill"]
page-align: "left"
title-style: "plain"
title-fontstyle: ["huge", "bfseries"]
title-space-after: "4\\baselineskip"
title-subtitle-space-between: "0.05\\textheight"
subtitle-fontstyle: ["large", "textit"]
author-style: "superscript-with-and"
author-fontstyle: "large"
affiliation-style: "numbered-list-with-correspondence"
affiliation-fontstyle: "large"
affiliation-space-after: "0pt"
footer-style: "plain"
footer-fontstyle: "large"
logo-size: "0.15\\textheight"
logo-space-after: "1\\baselineskip"
vrule-width: "2pt"
vrule-align: "left"
vrule-color: "black"
toc: true
lof: false
lot: false
top-level-division: chapter
latex-engine: xelatex
number-sections: true
toc-depth: 3
keep-tex: true
citation-package: natbib
link-citations: true
biblio-title: "References"
cite-method: citeproc
title-block-style: none
indent: 0px
fontsize: 10pt
reference-location: margin
citation-location: block
fig-caption: true
cap-location: margin
fig-cap-location: margin
tbl-cap-location: margin
hyperrefoptions:
- linktoc=all
- pdfwindowui
- pdfpagemode=FullScreen
- pdfpagelayout=TwoPageRight
include-in-header:
- file: "tex/header-includes.tex"
resources:
- CNAME