How does a sequence become a structure?
Follow AlphaFold 2 from evolutionary evidence through attention and residue geometry.
Explore AlphaFold 2 →FROM TENSORS TO BIOLOGY
Implement the math inside AlphaFold, ESM and scVI in raw PyTorch, with grading that checks your values, shapes and gradients. Follow a model from its inputs to its predictions, one short exercise at a time.
Free. Sign up with email, Google or GitHub and land in a 10-minute guided exercise. Or read an exercise first.
THE PRACTICE LOOP
Every exercise is graded on its outputs and its gradients. When something breaks, you see which tensor, which case and why.
Run · Wrong answer 1 / 2 public cases
Output values passed, but gradients failed.
weights: non-finite gradient in two_rows_one_empty. An all-masked row divides by zero inside torch.where, so its gradient is NaN even though the selected value is 0.
After a safe denominator · Accepted 7 / 7 checks
Explore the building blocks
START WITH A QUESTION YOU CARE ABOUT
Each path combines an interactive architecture map, worked examples, and sessions of up to three exercises. Start wherever your curiosity leads.
Follow AlphaFold 2 from evolutionary evidence through attention and residue geometry.
Explore AlphaFold 2 →Build the embeddings, attention, and prediction operations behind ESM-2.
Explore ESM-2 →Connect Enformer’s sequence processing and long-range attention to functional readouts.
Explore Enformer →Browse all 17 learning paths → Guides and exercises are open to everyone. Create a free account to run code and save your progress.
LEARN BY IMPLEMENTING
Choose a model and follow its chapters. Each component explains the problem, inputs, transformation, outputs, and the operation you will implement.
Write Python in the workspace. Your code runs in an isolated environment, with checks for numerical values, shapes, and gradients. Results help you see what needs another look.
Keep your submission history and progress together. Your first implementation starts a review schedule, and BioTorch reminds you to revisit each idea right before you would forget it.
You implement the components of each model, not a full reproduction.
FREE ACCOUNT
Sign in with email, Google or GitHub. Your code and history are private to you, and BioTorch never stores your password. Read the privacy policy.
Start your first exercise