-
Notifications
You must be signed in to change notification settings - Fork 170
/
Copy path_quarto.yml
416 lines (367 loc) · 14.1 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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
project:
type: book
output-dir: _book
preview:
browser: true
navigate: true
website:
announcement:
icon: book
dismissable: true
position: below-navbar
content: |
🔔 <b>What's New in the Book?</b></br>
📅 <b>[02 Feb 2025]</b> Chapter 12 (Benchmarking AI 📊). Learn how to evaluate AI performance effectively.</br>
📅 <b>[28 Jan 2025]</b> Updated Chapter 8 & 9 (AI Training 🏋️♀️ & Efficient AI ⚡).</br>
📅 <b>[16 Jan 2025]</b> Updated Chapter 6 & 7 (AI Frameworks 🛠️ & Data Engineering 🔢).</br>
📅 <b>[03 Jan 2025]</b> Happy New Year 2025! Chapters 1-5 have been expanded and improved, in addition to a brand-new Chapter 4!</br>
🗒️ See the full <a href="contents/frontmatter/changelog/changelog.html">Changelog</a>.
<div style="height: 1px; background-color: #ccc; margin: 10px 0;"></div>
🚀 <b>Our Mission:</b> Empowering the next generation of ML systems engineers --- one GitHub ⭐ at a time.</br>
🙏 <b>Thank You for Your Support!</b> Every ⭐ inspires and supports a new learner. Help us reach 10,000!</br>
✍️ <b>Fun Fact:</b> A ⭐ a day keeps Vijay writing all day! → <a href="https://github.com/harvard-edge/cs249r_book">Star the book on GitHub to show your support.</a>
book:
google-analytics:
tracking-id: "G-M21L0CBCVN"
anonymize-ip: true
version: 4
comments:
hypothesis:
theme: clean
openSidebar: true
search:
keyboard-shortcut: ["~", "/"]
location: sidebar
navbar:
banner:
text: "Welcome to My Website!"
href: "https://example.com" # Optional link for the banner text
background-color: "#FF5733" # Optional background color
text-color: "#FFFFFF" # Optional text color
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: 1
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/changelog/changelog.qmd
- contents/frontmatter/acknowledgements/acknowledgements.qmd
- text: "---"
- contents/frontmatter/ai/socratiq.qmd
- text: "---"
- part: "<div class=\"part\">AI 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\">AI 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\">AI Best Practices</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
- part: "<div class=\"part\">AI Perspectives</div>"
- contents/core/ai_for_good/ai_for_good.qmd
- contents/core/conclusion/conclusion.qmd
- text: "---"
- part: "LABS"
- 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: "Appendix"
chapters:
- contents/appendix/phd_survival_guide.qmd
- text: "---"
- part: "REFERENCES"
- 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/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
- diagram
diagram:
engine:
dot: true
mermaid: false
asymptote: false
tikz:
execpath: lualatex
header-includes:
- \usetikzlibrary{angles}
- \usetikzlibrary{arrows.meta}
- \usetikzlibrary{arrows}
- \usetikzlibrary{backgrounds}
- \usetikzlibrary{calc}
- \usetikzlibrary{fit}
- \usetikzlibrary{intersections}
- \usetikzlibrary{positioning}
- \usetikzlibrary{shapes.geometric}
- \usetikzlibrary{shapes}
editor:
render-on-save: true
pdf-engine: lualatex
format:
html:
lightbox: true
mermaid:
theme: default
theme:
light:
- sandstorm
- 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: 7
fig-height: 5
number-depth: 3
toc: true
toc-depth: 4
include-in-header:
text: |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<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>
<script type="module" src="/scripts/ai_menu/dist/sqlite3-opfs-async-proxy-B_ImRJXp.js"></script>
<script type="module" src="/scripts/ai_menu/dist/sqlite3-worker1-bundler-friendly-CbDNa4by.js"></script>
<script type="module" src="/scripts/ai_menu/dist/worker-voUF5YDa.js"></script>
citeproc: true
titlepage-pdf:
use-rsvg-convert: true
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-footer: "Introduction to"
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
header-style: "none"
date-style: "none"
title-fontsize: 57
title-left: "0.075\\paperwidth"
title-bottom: "0.35\\paperwidth"
title-width: "0.9\\paperwidth"
footer-fontsize: 25
footer-left: "0.075\\paperwidth"
footer-bottom: "0.42\\paperwidth"
footer-width: "0.9\\paperwidth"
footer-align: "left"
titlepage: true
titlepage-theme:
elements: [ "\\titleblock",
"Prof. Vijay Janapa Reddi",
"School of Engineering and Applied Sciences",
"Harvard University",
"\\vspace{80mm}",
"With heartfelt gratitude to the community for their invaluable contributions and steadfast support.",
"\\vfill",
"{{< meta date >}}",
"\\vfill"]
date: "today"
date-format: long
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
number-sections: true
toc-depth: 3
number-depth: 2
keep-tex: true
citation-package: natbib
link-citations: true
biblio-title: "References"
cite-method: citeproc
title-block-style: none
indent: 0px
fontsize: 9pt
colorlinks: true
reference-location: margin
citation-location: block
fig-caption: true
cap-location: margin
fig-cap-location: margin
tbl-cap-location: margin
tbl-colwidths: auto
hyperrefoptions:
- linktoc=all
- pdfwindowui
- pdfpagemode=FullScreen
- pdfpagelayout=TwoPageRight
include-in-header:
- file: "tex/header-includes.tex"
resources:
- CNAME