Don’t import torch. Build it.#

Build Your Own ML Framework

🚧 Preview · Classroom ready 2026

Don't import it. Build it.

From tensors to systems. An educational framework for building and optimizing MLβ€”understand how PyTorch, TensorFlow, and JAX really work.

πŸ”§ Build each piece β€” Tensors, autograd, attention. No magic imports.

πŸ“š Recreate history β€” Perceptron β†’ CNN β†’ Transformers β†’ MLPerf.

⚑ Understand systems β€” Memory, compute, optimization trade-offs.

🎯 Debug anything β€” OOM, NaN, slow trainingβ€”because you built it.

Recreate ML History#

Walk through ML history by rebuilding its greatest breakthroughs with YOUR TinyTorch implementations. Click each milestone to see what you’ll build and how it shaped modern AI.

1958

The Perceptron

The first trainable neural network

Input β†’ Linear β†’ Sigmoid β†’ Output

1969

XOR Crisis

Minsky & Papert expose limits of single-layer networks

Input β†’ Linear β†’ Sigmoid β†’ FAIL!

1986

MLP Revival

Backpropagation enables deep learning (95%+ MNIST)

Images β†’ Flatten β†’ Linear β†’ ... β†’ Classes

1998

CNN Revolution 🎯

Spatial intelligence unlocks computer vision (75%+ CIFAR-10)

Images β†’ Conv β†’ Pool β†’ ... β†’ Classes

2017

Transformer Era

Attention launches the LLM revolution

Tokens β†’ Attention β†’ FFN β†’ Output

2018–Present

MLPerf Benchmarks

Production optimization (8-16Γ— smaller, 12-40Γ— faster)

Profile β†’ Compress β†’ Accelerate

Why Build Instead of Use?#

"Building systems creates irreversible understanding."

Traditional ML Education

import torch
model = torch.nn.Linear(784, 10)
output = model(input)
# When this breaks, you're stuck

Problem: You can't debug what you don't understand.

TinyTorch: Build β†’ Use β†’ Reflect

# BUILD it yourself
class Linear:
    def forward(self, x):
        return x @ self.weight + self.bias

# USE it on real data
loss.backward()  # YOUR autograd

Advantage: You can debug it because you built it.

Learning Path#

Four progressive tiers take you from foundations to production systems:

The Big Picture β€’ Getting Started β€’ Preface

Is This For You?#

πŸŽ“ Students

Taking ML courses, want to understand what's behind import torch

πŸ‘©β€πŸ« Instructors

Teaching ML systems with ready-made hands-on labs

πŸš€ Self-learners

Career changers or hobbyists going deeper than tutorials

Prerequisites: Python + basic linear algebra. No ML experience required.