We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Learn by building
Understand it.
Build it.
Make it work.
Build fluency in ML and systems programming through hands-on practice. Learn PyTorch, JAX, Rust, C++ and typed Python, one working solution at a time.
A small idea, made visible
How does temperature change softmax?
Softmax turns scores into probabilities. Lower the temperature to concentrate probability on the highest score, or raise it for a more even distribution.
Temperature changes the distribution, not the scores. A higher probability does not by itself make a prediction more reliable. Enable JavaScript to explore.
Choose what you want to learn
Rust
Ownership, lifetimes, async, unsafe
342 practice problems
Python
Type hints checked by mypy
223 practice problems
PyTorch
Autograd, modules, custom kernels
173 practice problems
JAX
Flax, NNX, sharding, grad transforms
171 practice problems
C++
Templates, RAII, move semantics, cache lines
32 practice problems
Try a PyTorch problem
Read the challenge. Make it work.
Start with the provided code, work through the requirements, and check your solution against real test cases on your machine.
Accuracy – Multiclass
import torch
def accuracy(predictions, labels):
"""Multiclass classification accuracy.
predictions: shape (N, C): class scores (logits or probabilities).
labels: shape (N,): int class indices (delivered as floats by the helper).
Returns: scalar float: fraction of predictions whose argmax equals the label.
"""
pass
Make your next step a small one
Choose how to start.
Follow a sequence, work on one problem, or read until an idea clicks. Explore freely; sign in to save your progress.
I want some direction
Follow a guided track
Work through related explanations and exercises in a suggested order.
Explore tracksI learn by doing
Solve one problem
Choose a challenge, complete the starter code, and run the tests.
Find a problemI want to understand why
Read an explainer
Read a worked example or explore an interactive explanation before trying a problem.
Browse explainersAcross all 5 modes: 1255 published exercises · 93 tracks · 260 explainers. These links open the PyTorch collection.
Learn with others
Choose a track with friends, compare approaches, and help each other get unstuck. Share your progress on a squad board and keep the conversation in one place.
Example conversation. In your conversations, message contents are encrypted on your device before they reach our servers.
You choose whether to share your progress. Joining a squad does not turn sharing on.