mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-29 00:59:07 -05:00
TinyTorch educational deep learning framework now lives at tinytorch/
Structure:
- tinytorch/src/ - Source modules (single source of truth)
- tinytorch/tito/ - CLI tool
- tinytorch/tests/ - Test suite
- tinytorch/site/ - Jupyter Book website
- tinytorch/milestones/ - Historical ML implementations
- tinytorch/datasets/ - Educational datasets (tinydigits, tinytalks)
- tinytorch/assignments/ - NBGrader assignments
- tinytorch/instructor/ - Teaching materials
Workflows (with tinytorch- prefix):
- tinytorch-ci.yml - CI/CD pipeline
- tinytorch-publish-dev.yml - Dev site deployment
- tinytorch-publish-live.yml - Live site deployment
- tinytorch-build-pdf.yml - PDF generation
- tinytorch-release-check.yml - Release validation
Repository Variables added:
- TINYTORCH_ROOT = tinytorch
- TINYTORCH_SRC = tinytorch/src
- TINYTORCH_SITE = tinytorch/site
- TINYTORCH_TESTS = tinytorch/tests
All workflows use \${{ vars.TINYTORCH_* }} for path configuration.
Note: tinytorch/site/_static/favicon.svg kept as SVG (valid for favicons)
27 lines
837 B
Bash
Executable File
27 lines
837 B
Bash
Executable File
#!/bin/bash
|
|
# TinyTorch activation helper
|
|
if [ "$(uname -s)" = "Darwin" ] && [ "$(uname -m)" = "arm64" ]; then
|
|
# On Apple Silicon, ensure arm64
|
|
export TINYTORCH_ARCH="arm64"
|
|
alias python='arch -arm64 .venv/bin/python3'
|
|
alias pip='arch -arm64 .venv/bin/pip'
|
|
source .venv/bin/activate
|
|
echo "🔥 TinyTorch environment activated (arm64)"
|
|
else
|
|
source .venv/bin/activate
|
|
echo "🔥 TinyTorch environment activated"
|
|
fi
|
|
|
|
# Check if tito command is available, if not install package
|
|
if ! command -v tito &> /dev/null; then
|
|
echo "📦 Installing TinyTorch CLI..."
|
|
if [ "$(uname -s)" = "Darwin" ] && [ "$(uname -m)" = "arm64" ]; then
|
|
arch -arm64 .venv/bin/pip install -e . -q
|
|
else
|
|
pip install -e . -q
|
|
fi
|
|
echo "✅ TinyTorch CLI installed"
|
|
fi
|
|
|
|
echo "💡 Try: tito system health"
|