Skip to content

Commit 0eb6105

Browse files
committed
Merge dev into main
2 parents 2ea20f1 + 7432aae commit 0eb6105

133 files changed

Lines changed: 1641 additions & 4463 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.all-contributorsrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,4 +698,4 @@
698698
"repoHost": "https://github.com",
699699
"commitConvention": "angular",
700700
"skipCi": true
701-
}
701+
}

.github/workflows/tinytorch-build-pdfs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ jobs:
4848
cache: 'pip'
4949
cache-dependency-path: 'tinytorch/site/requirements.txt'
5050

51+
- name: 🟢 Setup Node.js (for Mermaid)
52+
uses: actions/setup-node@v4
53+
with:
54+
node-version: '20'
55+
56+
- name: 📦 Install Mermaid CLI
57+
run: npm install -g @mermaid-js/mermaid-cli
58+
5159
- name: 📦 Install dependencies
5260
working-directory: tinytorch
5361
run: |

.pre-commit-config.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ repos:
2222
hooks:
2323
- id: trailing-whitespace
2424
name: "Global: Trim trailing whitespace"
25+
# Only run on markdown files to avoid breaking templates, extensions, etc.
26+
files: "\\.(md|qmd)$"
2527
exclude: "^(_site/|_book/|node_modules/)"
2628
- id: end-of-file-fixer
2729
name: "Global: Fix end of file newlines"
28-
# Exclude .bib files as bibtex-tidy handles them separately
29-
exclude: "^(_site/|_book/|node_modules/)|.*\\.bib$"
30+
# Only run on markdown files to avoid breaking templates, extensions, etc.
31+
files: "\\.(md|qmd)$"
32+
exclude: "^(_site/|_book/|node_modules/)"
3033
- id: check-json
3134
name: "Global: Validate JSON syntax"
3235
- id: check-yaml
@@ -38,8 +41,8 @@ repos:
3841
hooks:
3942
- id: codespell
4043
name: "Global: Check for common misspellings"
41-
args: ["--skip", "*.json,*.bib,*.min.js,*.tex,_site,_book,node_modules,.venv,htmlcov,bundle.js,glightbox.min.js", "--ignore-words", ".codespell-ignore-words.txt"]
42-
exclude: "^(_site/|_book/|htmlcov/|.*bundle\\.js$|.*\\.min\\.js$)"
44+
args: ["--skip", "*.json,*.bib,*.js,*.tex,_site,_book,node_modules,.venv,htmlcov", "--ignore-words", ".codespell-ignore-words.txt"]
45+
exclude: "^(_site/|_book/|htmlcov/|.*\\.js$)"
4346

4447
# ===========================================================================
4548
# SECTION 2: BOOK HOOKS (quarto content validation)

book/quarto/_extensions/mlsysbook-ext/titlepage/_titlepage.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,4 @@
210210
\clearpage
211211
$if(titlepage-geometry)$\restoregeometry
212212
$endif$%%% TITLE PAGE END
213+

book/quarto/_extensions/mlsysbook-ext/titlepage/before-body.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@
3636
$endif$
3737
3838
%%%%% end titlepage extension code
39+

tinytorch/.git-hooks/pre-push

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# TinyTorch Pre-Push Hook
33
# Prevents accidental pushes to the main TinyTorch repository
44

5-
UPSTREAM_REPO="github.com/mlsysbook/TinyTorch"
5+
UPSTREAM_REPO="github.com/harvard-edge/cs249r_book"
66
PROTECTED_BRANCHES="main dev master"
77

88
# Check if we're pushing to the upstream repo
@@ -20,7 +20,7 @@ if echo "$remote_url" | grep -q "$UPSTREAM_REPO"; then
2020
echo "This is the upstream TinyTorch repository, not your personal fork."
2121
echo ""
2222
echo "If you're a student:"
23-
echo " 1. Create your own fork: https://github.com/mlsysbook/TinyTorch/fork"
23+
echo " 1. Create your own fork: https://github.com/harvard-edge/cs249r_book/fork"
2424
echo " 2. Add your fork as a remote: git remote add my-fork <your-fork-url>"
2525
echo " 3. Push to your fork: git push my-fork $branch_name"
2626
echo ""

tinytorch/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TinyTorch is an **educational framework** where every contribution should:
1616

1717
1. **Clone and setup environment**:
1818
```bash
19-
git clone https://github.com/mlsysbook/TinyTorch.git
19+
git clone https://github.com/harvard-edge/cs249r_book.git
2020
cd TinyTorch
2121
python -m venv .venv
2222
source .venv/bin/activate # On Windows: .venv\Scripts\activate

tinytorch/INSTRUCTOR.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ TinyTorch teaches ML systems engineering through building, not just using. Stude
1111
### **1. Initial Setup**
1212
```bash
1313
# Clone and setup
14-
git clone https://github.com/MLSysBook/TinyTorch.git
14+
git clone https://github.com/harvard-edge/cs249r_book.git
1515
cd TinyTorch
1616

1717
# Virtual environment (MANDATORY)
@@ -570,8 +570,8 @@ ls submitted/*/MODULE/
570570
## 📚 Additional Resources
571571

572572
- [MLSys Book](https://mlsysbook.ai) - Companion textbook
573-
- [Course Discussions](https://github.com/MLSysBook/TinyTorch/discussions)
574-
- [Issue Tracker](https://github.com/MLSysBook/TinyTorch/issues)
573+
- [Course Discussions](https://github.com/harvard-edge/cs249r_book/discussions)
574+
- [Issue Tracker](https://github.com/harvard-edge/cs249r_book/issues)
575575

576576
---
577577

tinytorch/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ TinyTorch/
177177
│ ├── 06_optimizers/ # Module 06: SGD, Adam optimizers
178178
│ ├── 07_training/ # Module 07: Complete training loops
179179
│ ├── 08_dataloader/ # Module 08: Efficient data pipelines
180-
│ ├── 09_spatial/ # Module 09: Conv2d, MaxPool2d, CNNs
180+
│ ├── 09_convolutions/ # Module 09: Conv2d, MaxPool2d, CNNs
181181
│ ├── 10_tokenization/ # Module 10: Text processing
182182
│ ├── 11_embeddings/ # Module 11: Token & positional embeddings
183183
│ ├── 12_attention/ # Module 12: Multi-head attention

tinytorch/binder/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ When users click the "Launch Binder" button on any notebook page in the TinyTorc
2424

2525
**Binder URL Format:**
2626
```
27-
https://mybinder.org/v2/gh/mlsysbook/TinyTorch/main
27+
https://mybinder.org/v2/gh/harvard-edge/cs249r_book/main
2828
```
2929

3030
### Google Colab
@@ -36,7 +36,7 @@ Colab launch buttons automatically:
3636

3737
**Colab URL Format:**
3838
```
39-
https://colab.research.google.com/github/mlsysbook/TinyTorch/blob/main/path/to/notebook.ipynb
39+
https://colab.research.google.com/github/harvard-edge/cs249r_book/blob/main/tinytorch/path/to/notebook.ipynb
4040
```
4141

4242
## Testing
@@ -45,9 +45,9 @@ To test your Binder setup:
4545

4646
1. **Test Binder Build:**
4747
```bash
48-
# Visit: https://mybinder.org/v2/gh/mlsysbook/TinyTorch/main
48+
# Visit: https://mybinder.org/v2/gh/harvard-edge/cs249r_book/main
4949
# Or use the badge:
50-
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/mlsysbook/TinyTorch/main)
50+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/harvard-edge/cs249r_book/main)
5151
```
5252

5353
2. **Verify Installation:**
@@ -71,7 +71,7 @@ To test your Binder setup:
7171

7272
- Check `binder/requirements.txt` for syntax errors
7373
- Verify `binder/postBuild` has execute permissions (`chmod +x binder/postBuild`)
74-
- Review Binder build logs at: https://mybinder.org/v2/gh/mlsysbook/TinyTorch/main?urlpath=lab/tree/logs%2Fbuild.log
74+
- Review Binder build logs at: https://mybinder.org/v2/gh/harvard-edge/cs249r_book/main?urlpath=lab/tree/logs%2Fbuild.log
7575

7676
### Colab Import Errors
7777

0 commit comments

Comments
 (0)