Skip to content

Commit 2b042fa

Browse files
committed
fix(syllabus): update course number, schedule, and PDF layout
- Fix course number 51.07 → 51.17 - Remove duplicate LaTeX course info table - Update assignment schedule: A3 due Feb 6, A4 released Feb 6/due Feb 16, A5 optional/extra credit, Final Project released Feb 16 - Convert relative links to absolute URLs for PDF compatibility - Add needspace commands to prevent table splits across pages - Update build-pages.py to strip YAML frontmatter and LaTeX commands - Fix compile.sh to use lualatex engine
1 parent d29e37a commit 2b042fa

File tree

6 files changed

+117
-130
lines changed

6 files changed

+117
-130
lines changed

admin/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pandoc -s -o syllabus.pdf syllabus.md --pdf-engine=xelatex
1+
pandoc -s -o syllabus.pdf syllabus.md --pdf-engine=lualatex

admin/syllabus.md

Lines changed: 51 additions & 72 deletions
Large diffs are not rendered by default.

admin/syllabus.pdf

1.29 KB
Binary file not shown.

scripts/build-pages.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818

1919

2020
def strip_latex_preamble(text):
21-
"""Remove LaTeX preamble from markdown files."""
21+
"""Remove YAML frontmatter and LaTeX preamble from markdown files."""
22+
if text.startswith("---"):
23+
end_match = re.search(r"\n---\s*\n", text[3:])
24+
if end_match:
25+
text = text[3 + end_match.end() :]
26+
2227
if "\\begin{" not in text:
2328
return text
2429
match = re.search(r"^## ", text, re.MULTILINE)
@@ -38,6 +43,10 @@ def convert_latex_table(text):
3843
Only converts & to | within actual LaTeX tabular environments,
3944
not in regular markdown content.
4045
"""
46+
text = re.sub(r"\\newpage\s*", "", text)
47+
text = re.sub(r"\\pagebreak\s*", "", text)
48+
text = re.sub(r"\\needspace\{[^}]*\}\s*", "", text)
49+
4150
# Check if there's a LaTeX tabular environment
4251
if "\\begin{tabular}" not in text:
4352
# No LaTeX tables - just remove other LaTeX commands but preserve &

slides/README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Explore concepts hands-on with our interactive web demos! Each demo runs directl
122122
- Latent Dirichlet Allocation (LDA) for topic modeling
123123
- Reading: [Deerwester et al. (1990)](http://wordvec.colorado.edu/papers/Deerwester_1990.pdf) - LSA
124124
- Reading: [Blei et al. (2003)](https://www.jmlr.org/papers/volume3/blei03a/blei03a.pdf) - LDA
125-
- **Assignment 3 Released:** [Wikipedia Embeddings](https://contextlab.github.io/llm-course/assignments/assignment-3/) (Due: Feb 2, 11:59 PM EST)
125+
- **Assignment 3 Released:** [Wikipedia Embeddings](https://contextlab.github.io/llm-course/assignments/assignment-3/) (Due: Feb 6, 11:59 PM EST)
126126
- 🎮 **Try it:** [Topic Modeling](https://contextlab.github.io/llm-course/demos/topic-modeling/)
127127
- 📊 [Slides PDF](https://contextlab.github.io/llm-course/slides/week3/lecture10.pdf) | 🌐 [Slides HTML](https://contextlab.github.io/llm-course/slides/week3/lecture10.html)
128128

@@ -160,7 +160,6 @@ Explore concepts hands-on with our interactive web demos! Each demo runs directl
160160

161161
**Friday (Lecture 14):** Cognitive Models of Semantic Representation
162162
- Reading: [Anderson et al. (2016)](https://www.jneurosci.org/content/36/45/11444)
163-
- **Assignment 4 Released:** [Customer Service Chatbot](https://contextlab.github.io/llm-course/assignments/assignment-4/) (Due: Feb 9, 11:59 PM EST)
164163
- 🎮 **Try it:** [Embeddings Comparison](https://contextlab.github.io/llm-course/demos/embeddings-comparison/)
165164
- 📊 [Slides PDF](https://contextlab.github.io/llm-course/slides/week4/lecture14.pdf) | 🌐 [Slides HTML](https://contextlab.github.io/llm-course/slides/week4/lecture14.html)
166165

@@ -173,7 +172,6 @@ Explore concepts hands-on with our interactive web demos! Each demo runs directl
173172
- Attention mechanisms explained
174173
- Reading: [Bahdanau et al. (2015)](https://arxiv.org/abs/1409.0473) - Neural Machine Translation with Attention
175174
- Reading: [Vaswani et al. (2017)](https://arxiv.org/abs/1706.03762) - Attention is All You Need
176-
- **📝 Assignment 3 Due (Feb 2, 11:59 PM EST)**
177175
- 🎮 **Try it:** [Attention Mechanism](https://contextlab.github.io/llm-course/demos/attention/)
178176
- 📊 [Slides PDF](https://contextlab.github.io/llm-course/slides/week5/lecture15.pdf) | 🌐 [Slides HTML](https://contextlab.github.io/llm-course/slides/week5/lecture15.html)
179177

@@ -186,8 +184,8 @@ Explore concepts hands-on with our interactive web demos! Each demo runs directl
186184
- 📊 [Slides PDF](https://contextlab.github.io/llm-course/slides/week5/lecture16.pdf) | 🌐 [Slides HTML](https://contextlab.github.io/llm-course/slides/week5/lecture16.html)
187185

188186
**Friday (Lecture 17):** Training Transformers
189-
- **Assignment 5 Released:** [Build GPT](https://contextlab.github.io/llm-course/assignments/assignment-5/) (Due: Feb 16, 11:59 PM EST)
190-
- **📝 Assignment 4 Due (Feb 9, 11:59 PM EST)**
187+
- **📝 Assignment 3 Due (Feb 6, 11:59 PM EST)**
188+
- **Assignment 4 Released:** [Customer Service Chatbot](https://contextlab.github.io/llm-course/assignments/assignment-4/) (Due: Feb 16, 11:59 PM EST)
191189
- 📊 [Slides PDF](https://contextlab.github.io/llm-course/slides/week5/lecture17.pdf) | 🌐 [Slides HTML](https://contextlab.github.io/llm-course/slides/week5/lecture17.html)
192190
---
193191

@@ -207,8 +205,6 @@ Explore concepts hands-on with our interactive web demos! Each demo runs directl
207205
- 📊 [Slides PDF](https://contextlab.github.io/llm-course/slides/week6/lecture19.pdf) | 🌐 [Slides HTML](https://contextlab.github.io/llm-course/slides/week6/lecture19.html)
208206

209207
**Friday (Lecture 20):** Applications of Encoder Models
210-
- **Final Project Released:** [Final Project](https://contextlab.github.io/llm-course/assignments/final-project/) (Due: Mar 9, 11:59 PM EST)
211-
- **📝 Assignment 5 Due (Feb 16, 11:59 PM EST)**
212208
- 📊 [Slides PDF](https://contextlab.github.io/llm-course/slides/week6/lecture20.pdf) | 🌐 [Slides HTML](https://contextlab.github.io/llm-course/slides/week6/lecture20.html)
213209
---
214210

@@ -218,6 +214,9 @@ Explore concepts hands-on with our interactive web demos! Each demo runs directl
218214
- Autoregressive generation
219215
- Reading: [Radford et al. (2018)](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf) - GPT-1
220216
- Reading: [Radford et al. (2019)](https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) - GPT-2
217+
- **📝 Assignment 4 Due (Feb 16, 11:59 PM EST)**
218+
- **Final Project Released:** [Final Project](https://contextlab.github.io/llm-course/assignments/final-project/) (Due: Mar 9, 11:59 PM EST)
219+
- **Assignment 5 Available (Optional/Extra Credit):** [Build GPT](https://contextlab.github.io/llm-course/assignments/assignment-5/)
221220
- 🎮 **Try it:** [GPT Playground](https://contextlab.github.io/llm-course/demos/gpt-playground/)
222221
- 📊 [Slides PDF](https://contextlab.github.io/llm-course/slides/week7/lecture21.pdf) | 🌐 [Slides HTML](https://contextlab.github.io/llm-course/slides/week7/lecture21.html)
223222

0 commit comments

Comments
 (0)