Regenerate demo GIFs and update tape scripts with latest content
BIN
docs/_static/demos/gifs/00-welcome.gif
vendored
|
Before Width: | Height: | Size: 217 KiB After Width: | Height: | Size: 228 KiB |
BIN
docs/_static/demos/gifs/02-build-test-ship.gif
vendored
|
Before Width: | Height: | Size: 3.5 MiB After Width: | Height: | Size: 3.4 MiB |
BIN
docs/_static/demos/gifs/03-milestone-unlocked.gif
vendored
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.9 MiB |
BIN
docs/_static/demos/gifs/04-share-journey.gif
vendored
|
Before Width: | Height: | Size: 995 KiB After Width: | Height: | Size: 1.2 MiB |
23
docs/_static/demos/tapes/00-welcome.tape
vendored
@@ -24,14 +24,21 @@ Set TypingSpeed 100ms
|
||||
# Set shell with custom prompt for reliable waiting
|
||||
Set Shell bash
|
||||
Env PS1 "@profvjreddi 🔥 › "
|
||||
Env COLUMNS "128"
|
||||
|
||||
# ==============================================================================
|
||||
# OPENING: Welcome message to set the tone
|
||||
# ==============================================================================
|
||||
|
||||
# Opening: Show what this demo is about
|
||||
Type "# Welcome to Tiny🔥Torch!"
|
||||
Sleep 2s
|
||||
Enter
|
||||
Sleep 500ms
|
||||
|
||||
# Show everything - users see the full setup
|
||||
# ==============================================================================
|
||||
# SETUP: Show the activation process (visible for this demo)
|
||||
# ==============================================================================
|
||||
|
||||
Type "cd /Users/VJ/GitHub/TinyTorch"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
@@ -42,12 +49,18 @@ Sleep 400ms
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
||||
# Show the beautiful welcome screen
|
||||
# ==============================================================================
|
||||
# MAIN FEATURE: Display the complete tito command reference
|
||||
# ==============================================================================
|
||||
|
||||
Type "tito"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 8s
|
||||
Sleep 8s # Let viewers read the full feature list
|
||||
|
||||
# ==============================================================================
|
||||
# CLOSING: Inspire them to start the journey
|
||||
# ==============================================================================
|
||||
|
||||
# Final message
|
||||
Type "# Let's recreate PyTorch together! 🔥"
|
||||
Sleep 3s
|
||||
|
||||
40
docs/_static/demos/tapes/01-zero-to-ready.tape
vendored
@@ -22,55 +22,79 @@ Set LoopOffset 0%
|
||||
Set Shell bash
|
||||
Env PS1 "@profvjreddi 🔥 › "
|
||||
|
||||
# Start in /tmp for clean setup
|
||||
# ==============================================================================
|
||||
# STEP 1: START IN CLEAN DIRECTORY
|
||||
# ==============================================================================
|
||||
|
||||
Type "cd /tmp"
|
||||
Sleep 300ms
|
||||
Enter
|
||||
Wait+Line@10ms /profvjreddi/
|
||||
Sleep 500ms
|
||||
|
||||
# Clone the TinyTorch repository
|
||||
# ==============================================================================
|
||||
# STEP 2: CLONE REPOSITORY - Get TinyTorch from GitHub
|
||||
# ==============================================================================
|
||||
|
||||
Type "git clone https://github.com/mlsysbook/TinyTorch.git"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Wait+Line@120s /profvjreddi/ # Wait for clone to complete (up to 120s)
|
||||
Sleep 500ms
|
||||
|
||||
# Navigate into the project
|
||||
# ==============================================================================
|
||||
# STEP 3: ENTER PROJECT - Navigate into TinyTorch
|
||||
# ==============================================================================
|
||||
|
||||
Type "cd TinyTorch"
|
||||
Sleep 300ms
|
||||
Enter
|
||||
Wait+Line@10ms /profvjreddi/
|
||||
Sleep 500ms
|
||||
|
||||
# Setup automatically detects your environment (conda/venv)
|
||||
# ==============================================================================
|
||||
# STEP 4: SETUP ENVIRONMENT - Automatic detection (conda/venv)
|
||||
# ==============================================================================
|
||||
|
||||
Type "./setup-environment.sh"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Wait+Line@120s /profvjreddi/ # Setup creates virtual environment (up to 120s)
|
||||
Sleep 1s
|
||||
|
||||
# Activate the environment to get tito command
|
||||
# ==============================================================================
|
||||
# STEP 5: ACTIVATE - Get access to tito commands
|
||||
# ==============================================================================
|
||||
|
||||
Type "source activate.sh"
|
||||
Sleep 300ms
|
||||
Enter
|
||||
Wait+Line@10ms /profvjreddi/
|
||||
Sleep 1s
|
||||
|
||||
# Check module status - shows all 20 modules ready to complete
|
||||
# ==============================================================================
|
||||
# STEP 6: CHECK STATUS - See all 20 modules ready to build
|
||||
# ==============================================================================
|
||||
|
||||
Type "tito module status"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Wait+Line@10ms /profvjreddi/
|
||||
Sleep 2s
|
||||
|
||||
# Learn the story and motivation
|
||||
# ==============================================================================
|
||||
# STEP 7: READ THE STORY - Understand the TinyTorch philosophy
|
||||
# ==============================================================================
|
||||
|
||||
Type "tito logo"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Wait+Line@10ms /profvjreddi/
|
||||
Sleep 3s
|
||||
|
||||
# Ready to build!
|
||||
# ==============================================================================
|
||||
# CLOSING: You're ready to start building!
|
||||
# ==============================================================================
|
||||
|
||||
Type "# Ready to build your ML framework from scratch 🔥"
|
||||
Sleep 2s
|
||||
|
||||
50
docs/_static/demos/tapes/02-build-test-ship.tape
vendored
@@ -26,94 +26,118 @@ Env PS1 "@profvjreddi 🔥 › "
|
||||
Set TypingSpeed 100ms
|
||||
|
||||
# ==============================================================================
|
||||
# SETUP PHASE (HIDDEN): Like a unit test, set up the environment cleanly first
|
||||
# SETUP PHASE (HIDDEN): Unit test pattern - prepare clean environment
|
||||
# ==============================================================================
|
||||
Hide
|
||||
|
||||
# Navigate to project and activate environment
|
||||
# 1. Navigate to project root
|
||||
Type "cd /Users/VJ/GitHub/TinyTorch"
|
||||
Enter
|
||||
Sleep 1s
|
||||
|
||||
# 2. Activate the TinyTorch environment
|
||||
Type "source activate.sh"
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
||||
# Reset all modules to pristine state using git
|
||||
# 3. Reset all modules to pristine state (git checkout)
|
||||
Type "git checkout -- modules/"
|
||||
Enter
|
||||
Sleep 2s
|
||||
|
||||
# Clean any cached/built files
|
||||
# 4. Clean cached/built files
|
||||
Type "rm -rf tinytorch/__pycache__ tinytorch/*.pyc"
|
||||
Enter
|
||||
Sleep 1s
|
||||
|
||||
# Complete module 01 as prerequisite (hidden from user)
|
||||
# 5. Complete prerequisite modules (module 01 needed for 02)
|
||||
Type "tito module complete 01"
|
||||
Enter
|
||||
Sleep 5s
|
||||
|
||||
Show
|
||||
|
||||
Ctrl+L # Clear screen to hide setup command history
|
||||
|
||||
# ==============================================================================
|
||||
# DEMO BEGINS (VISIBLE): Now show the actual workflow
|
||||
# OPENING: Introduce the workflow we'll demonstrate
|
||||
# ==============================================================================
|
||||
|
||||
# Opening comment explaining what we'll demonstrate
|
||||
Type "# Build → Test → Ship 🔨"
|
||||
Sleep 2s
|
||||
Enter
|
||||
Sleep 500ms
|
||||
|
||||
# Start module 02
|
||||
# ==============================================================================
|
||||
# STEP 1: START - Begin working on a module
|
||||
# ==============================================================================
|
||||
|
||||
Type "tito module start 02"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
||||
# Show working indicator
|
||||
# ==============================================================================
|
||||
# STEP 2: BUILD - Simulate working in Jupyter Lab
|
||||
# ==============================================================================
|
||||
|
||||
Type "# ... working in Jupyter Lab ..."
|
||||
Sleep 1500ms
|
||||
Enter
|
||||
Sleep 800ms
|
||||
|
||||
# Complete module - THE MONEY SHOT
|
||||
# ==============================================================================
|
||||
# STEP 3: COMPLETE - Test, export, and validate (THE MONEY SHOT)
|
||||
# ==============================================================================
|
||||
|
||||
Type "tito module complete 02"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 8s # Long pause to read all test output
|
||||
Sleep 8s # Let viewers read test output & validation results
|
||||
|
||||
# ==============================================================================
|
||||
# STEP 4: VERIFY - Prove it works by importing in Python
|
||||
# ==============================================================================
|
||||
|
||||
# Verify it works in Python
|
||||
Type "python3"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 1s
|
||||
|
||||
# Import the newly built activation function
|
||||
Type "from tinytorch import Sigmoid"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 500ms
|
||||
|
||||
# Import Tensor to test with
|
||||
Type "from tinytorch import Tensor"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 500ms
|
||||
|
||||
# Create an instance
|
||||
Type "sig = Sigmoid()"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 500ms
|
||||
|
||||
# Use it on real data
|
||||
Type "sig(Tensor([-2.0, -1.0, 0.0, 1.0, 2.0]))"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 2s
|
||||
|
||||
# Exit Python REPL
|
||||
Type "exit()"
|
||||
Sleep 300ms
|
||||
Enter
|
||||
Sleep 1s
|
||||
|
||||
# Final message
|
||||
# ==============================================================================
|
||||
# CLOSING: Celebrate the achievement
|
||||
# ==============================================================================
|
||||
|
||||
Type "# You didn't just import it. You BUILT it! 🎉"
|
||||
Sleep 3s
|
||||
|
||||
|
||||
@@ -26,29 +26,31 @@ Env PS1 "@profvjreddi 🔥 › "
|
||||
Set TypingSpeed 100ms
|
||||
|
||||
# ==============================================================================
|
||||
# SETUP PHASE (HIDDEN): Like a unit test, set up the environment cleanly first
|
||||
# SETUP PHASE (HIDDEN): Unit test pattern - prepare clean environment
|
||||
# ==============================================================================
|
||||
Hide
|
||||
|
||||
# Navigate to project and activate environment
|
||||
# 1. Navigate to project root
|
||||
Type "cd /Users/VJ/GitHub/TinyTorch"
|
||||
Enter
|
||||
Sleep 1s
|
||||
|
||||
# 2. Activate the TinyTorch environment
|
||||
Type "source activate.sh"
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
||||
# Reset all modules to pristine state using git
|
||||
# 3. Reset all modules to pristine state (git checkout)
|
||||
Type "git checkout -- modules/"
|
||||
Enter
|
||||
Sleep 2s
|
||||
|
||||
# Clean any cached/built files
|
||||
# 4. Clean cached/built files
|
||||
Type "rm -rf tinytorch/__pycache__ tinytorch/*.pyc"
|
||||
Enter
|
||||
Sleep 1s
|
||||
|
||||
# Complete modules 01-06 as prerequisites to unlock module 07 (hidden for speed)
|
||||
# 5. Complete prerequisite modules 01-06 (needed to unlock module 07)
|
||||
Type "tito module complete 01"
|
||||
Enter
|
||||
Sleep 5s
|
||||
@@ -69,45 +71,58 @@ Enter
|
||||
Sleep 5s
|
||||
|
||||
Show
|
||||
|
||||
Ctrl+L # Clear screen to hide setup command history
|
||||
|
||||
# ==============================================================================
|
||||
# DEMO BEGINS (VISIBLE): Now show the actual milestone workflow
|
||||
# OPENING: Introduce the milestone concept
|
||||
# ==============================================================================
|
||||
|
||||
# Opening comment explaining what we'll demonstrate
|
||||
Type "# Milestone: Recreate ML History 🏆"
|
||||
Sleep 2s
|
||||
Enter
|
||||
Sleep 500ms
|
||||
|
||||
# Show where we are in the journey (modules 01-06 completed)
|
||||
# ==============================================================================
|
||||
# STEP 1: CHECK PROGRESS - Show where we are in the journey
|
||||
# ==============================================================================
|
||||
|
||||
Type "tito module status"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 4s
|
||||
Sleep 4s # Let viewers see modules 01-06 are completed
|
||||
|
||||
# ==============================================================================
|
||||
# STEP 2: UNLOCK MILESTONE - Complete module 07 (Training)
|
||||
# ==============================================================================
|
||||
|
||||
# Complete module 07 which unlocks milestone 03
|
||||
Type "tito module complete 07"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 10s
|
||||
Sleep 10s # Watch tests pass and module export to TinyTorch
|
||||
|
||||
# ==============================================================================
|
||||
# STEP 3: LIST MILESTONES - See what historical achievements are available
|
||||
# ==============================================================================
|
||||
|
||||
# Check available milestones
|
||||
Type "tito milestones list"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 3s
|
||||
Sleep 3s # Read the milestone descriptions
|
||||
|
||||
# Run milestone 03 (MLP Revival 1986)
|
||||
Type "tito milestones run 03"
|
||||
# ==============================================================================
|
||||
# STEP 4: RUN MILESTONE - Recreate Rumelhart's 1986 breakthrough
|
||||
# ==============================================================================
|
||||
|
||||
Type "echo '' | tito milestones run 03"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 2s
|
||||
Type "" # Press Enter to proceed past "Press Enter to begin"
|
||||
Enter
|
||||
Sleep 60s # Wait for milestone to complete
|
||||
Sleep 3s
|
||||
|
||||
# Celebrate the achievement
|
||||
Type "# You recreated Rumelhart's 1986 breakthrough! 🏆"
|
||||
Sleep 60s # Watch the training recreate history (training takes ~30s)
|
||||
|
||||
# ==============================================================================
|
||||
# CLOSING: Celebrate recreating ML history
|
||||
# ==============================================================================
|
||||
|
||||
Type "# You recreated Rumelhart's 1986 breakthrough! 🎉"
|
||||
Sleep 3s
|
||||
|
||||
|
||||
55
docs/_static/demos/tapes/04-share-journey.tape
vendored
@@ -26,29 +26,31 @@ Env PS1 "@profvjreddi 🔥 › "
|
||||
Set TypingSpeed 100ms
|
||||
|
||||
# ==============================================================================
|
||||
# SETUP PHASE (HIDDEN): Like a unit test, set up the environment cleanly first
|
||||
# SETUP PHASE (HIDDEN): Unit test pattern - prepare clean environment
|
||||
# ==============================================================================
|
||||
Hide
|
||||
|
||||
# Navigate to project and activate environment
|
||||
# 1. Navigate to project root
|
||||
Type "cd /Users/VJ/GitHub/TinyTorch"
|
||||
Enter
|
||||
Sleep 1s
|
||||
|
||||
# 2. Activate the TinyTorch environment
|
||||
Type "source activate.sh"
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
||||
# Reset all modules to pristine state using git
|
||||
# 3. Reset all modules to pristine state (git checkout)
|
||||
Type "git checkout -- modules/"
|
||||
Enter
|
||||
Sleep 2s
|
||||
|
||||
# Clean any cached/built files
|
||||
# 4. Clean cached/built files
|
||||
Type "rm -rf tinytorch/__pycache__ tinytorch/*.pyc"
|
||||
Enter
|
||||
Sleep 1s
|
||||
|
||||
# Complete a few modules so we have progress to show
|
||||
# 5. Complete a few modules to have progress to demonstrate
|
||||
Type "tito module complete 01"
|
||||
Enter
|
||||
Sleep 5s
|
||||
@@ -60,55 +62,58 @@ Enter
|
||||
Sleep 5s
|
||||
|
||||
Show
|
||||
|
||||
Ctrl+L # Clear screen to hide setup command history
|
||||
|
||||
# ==============================================================================
|
||||
# DEMO BEGINS (VISIBLE): Now show the community/progress features
|
||||
# OPENING: Introduce community sharing
|
||||
# ==============================================================================
|
||||
|
||||
# Opening comment explaining what we'll demonstrate
|
||||
Type "# Share Your Journey 🌍"
|
||||
Sleep 2s
|
||||
Enter
|
||||
Sleep 500ms
|
||||
|
||||
# Check progress
|
||||
# ==============================================================================
|
||||
# STEP 1: CHECK PROGRESS - See what we've built so far
|
||||
# ==============================================================================
|
||||
|
||||
Type "tito module status"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 3s
|
||||
Sleep 3s
|
||||
Sleep 6s # Let viewers see modules 01-03 completed
|
||||
|
||||
# ==============================================================================
|
||||
# STEP 2: JOIN COMMUNITY - Connect with builders worldwide
|
||||
# ==============================================================================
|
||||
|
||||
# Join community
|
||||
Type "tito community join"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 2s # Wait for Question 1/3 (GitHub username)
|
||||
Sleep 2s # Wait for Question 1/3 prompt
|
||||
|
||||
# Question 1: GitHub username (required)
|
||||
# Answer Question 1: GitHub username (required)
|
||||
Type "profvjreddi"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 2s # Wait for Question 2/3 (Country)
|
||||
Sleep 2s # Wait for Question 2/3 prompt
|
||||
|
||||
# Question 2: Country (optional)
|
||||
# Answer Question 2: Country (optional)
|
||||
Type "United States"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 2s # Wait for Question 3/3 (Institution)
|
||||
Sleep 2s # Wait for Question 3/3 prompt
|
||||
|
||||
# Question 3: Institution (optional)
|
||||
# Answer Question 3: Institution (optional)
|
||||
Type "Harvard University"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 3s # Wait for confirmation
|
||||
Sleep 3s # Wait for welcome message
|
||||
|
||||
# Share achievement after more progress
|
||||
Type "tito community update"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 3s
|
||||
Sleep 3s
|
||||
# ==============================================================================
|
||||
# CLOSING: Inspire others to join the community
|
||||
# ==============================================================================
|
||||
|
||||
# Final message
|
||||
Type "# Join 2,847 builders worldwide! 🌍"
|
||||
Sleep 3s
|
||||
|
||||
|
||||
69
docs/_static/demos/tapes/05-logo.tape
vendored
@@ -7,7 +7,7 @@ Output "gifs/05-logo.gif"
|
||||
# Window bar for realistic terminal look
|
||||
Set WindowBar Colorful
|
||||
|
||||
# Carousel-optimized dimensions (16:9 aspect ratio)
|
||||
# Standard carousel dimensions (16:9 aspect ratio)
|
||||
Set Width 1280
|
||||
Set Height 720
|
||||
Set FontSize 18
|
||||
@@ -26,75 +26,68 @@ Env PS1 "@profvjreddi 🔥 › "
|
||||
Set TypingSpeed 100ms
|
||||
|
||||
# ==============================================================================
|
||||
# SETUP PHASE (HIDDEN): Like a unit test, set up the environment cleanly first
|
||||
# SETUP: Activate environment to access tito command (hidden)
|
||||
# ==============================================================================
|
||||
Hide
|
||||
|
||||
# Navigate to project and activate environment
|
||||
Hide
|
||||
Type "cd /Users/VJ/GitHub/TinyTorch"
|
||||
Enter
|
||||
Sleep 1s
|
||||
Sleep 500ms
|
||||
Type "source activate.sh"
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
||||
Show
|
||||
|
||||
Ctrl+L # Clear screen to hide setup command history
|
||||
|
||||
# ==============================================================================
|
||||
# DEMO BEGINS (VISIBLE): Now show the philosophy and story
|
||||
# OPENING: Set the stage with a comment about the story
|
||||
# ==============================================================================
|
||||
|
||||
# Opening comment explaining what we'll demonstrate
|
||||
Type "# The Story Behind TinyTorch 🔥"
|
||||
Sleep 2s
|
||||
Enter
|
||||
Sleep 500ms
|
||||
|
||||
# Show the beautiful logo and story
|
||||
# ==============================================================================
|
||||
# SHOW THE LOGO: Display the complete philosophy
|
||||
# ==============================================================================
|
||||
|
||||
Type "tito logo"
|
||||
Sleep 400ms
|
||||
Enter
|
||||
Sleep 5s # Let the logo appear
|
||||
Sleep 3s # Let the output complete
|
||||
|
||||
# Scroll down to show the flame symbolism
|
||||
Type ""
|
||||
Enter
|
||||
# ==============================================================================
|
||||
# SCROLL THROUGH THE LOGO: Use Up/Down arrows to navigate like a real user
|
||||
# ==============================================================================
|
||||
|
||||
# Scroll way up to see the top (the ASCII art logo)
|
||||
Up 50
|
||||
Sleep 3s
|
||||
|
||||
# Continue scrolling through the philosophy
|
||||
Type ""
|
||||
Enter
|
||||
# Now scroll down slowly through each section
|
||||
Down 8
|
||||
Sleep 3s
|
||||
|
||||
# Scroll to show "Why Tiny?"
|
||||
Type ""
|
||||
Enter
|
||||
Down 8
|
||||
Sleep 3s
|
||||
|
||||
# Scroll to show "Why Torch?"
|
||||
Type ""
|
||||
Enter
|
||||
Down 8
|
||||
Sleep 3s
|
||||
|
||||
# Scroll to show the hidden network
|
||||
Type ""
|
||||
Enter
|
||||
Down 8
|
||||
Sleep 3s
|
||||
|
||||
# Scroll to show the philosophy section
|
||||
Type ""
|
||||
Enter
|
||||
Down 8
|
||||
Sleep 3s
|
||||
|
||||
# Scroll to show Professor Reddi's message
|
||||
Type ""
|
||||
Enter
|
||||
Sleep 4s
|
||||
Down 8
|
||||
Sleep 4s # Longer pause for the final message
|
||||
|
||||
# Scroll to the final message
|
||||
Type ""
|
||||
Enter
|
||||
Sleep 3s
|
||||
# ==============================================================================
|
||||
# CLOSING: Reinforce the core message
|
||||
# ==============================================================================
|
||||
|
||||
# Final comment
|
||||
Type "# Don't just import it. Build it. 🔥"
|
||||
Type "# Don't just import it. Build it. ✨🔥"
|
||||
Sleep 3s
|
||||
|
||||