A deep learning roadmap is an ordered plan for learning neural networks, from how a single neuron learns to how large models are trained and served. For 2027, the order that works best runs from prerequisites and neural network fundamentals, through PyTorch and training craft, to architectures and generative models. It ends with scaling, deployment and a specialisation backed by a portfolio.
At about 10 hours a week, that takes roughly ten to twelve months if you already know some Python and machine learning. For each stage, this guide lists what to learn and a milestone project, then points to the free resources worth your time. It uses diagrams more than code, because the goal is to see the whole map before you start walking it.

Key takeaways
- Learn in this order: prerequisites, fundamentals, PyTorch, training craft, architectures, generative models, scaling, specialisation.
- Build backpropagation by hand once. A 2-8-1 network in plain NumPy reached 98% accuracy on a curved dataset in my test, and writing it teaches more than any lecture.
- Pick PyTorch. In 2026 it shipped eight releases while Google moved TensorFlow to a maintenance focus.
- Spend real time on training craft (initialisation, learning rates, debugging). It separates people who can train models from people who can copy them.
- Finish with two or three projects in one area, such as language models, vision or generative models, rather than ten tutorials.
Why follow a deep learning roadmap in 2027?
Deep learning is a broad field that moves fast, and the material online is endless. Without an order, it is easy to watch a lecture on transformers before you can train a two-layer network, then stall when something breaks.
A deep learning roadmap fixes three common problems:
- Gaps: skipping backpropagation or optimisation makes every later bug a mystery.
- Churn: chasing each new model release instead of the ideas that last.
- Unfinished work: courses without projects leave nothing to show an employer.
Demand for the skills keeps growing. The World Economic Forum’s Future of Jobs Report 2025 listed AI and machine learning specialists among the three fastest-growing jobs, behind big data specialists and fintech engineers.
The deep learning roadmap at a glance

| Stage | Focus | Time at ~10 h/week | Milestone |
|---|---|---|---|
| 1. Prerequisites | Python, NumPy, maths, basic ML | 4 weeks (if you know some ML already) | linear regression with gradient descent in NumPy |
| 2. Fundamentals | neurons, backpropagation, losses | 4 weeks | a network trained with hand-written gradients |
| 3. PyTorch | tensors, autograd, modules, data loading | 4 weeks | an image classifier trained on a GPU |
| 4. Training craft | optimisers, schedules, normalisation, debugging | 5 weeks | a training run that you diagnose and fix |
| 5. Architectures | CNNs, embeddings, transformers | 8 weeks | a small GPT trained from scratch |
| 6. Generative models | VAEs, diffusion, flow matching, LLM fine-tuning | 7 weeks | a fine-tuned open model and a small diffusion model |
| 7. Scaling and deployment | mixed precision, distributed training, quantisation, serving | 6 weeks | a model served behind an API |
| 8. Specialise and build | one domain, portfolio, paper reproduction | 6+ weeks | two or three finished projects |
That adds up to about 44 weeks. If you are new to Python or machine learning, start with our machine learning roadmap and add two to three months before stage 1.

Stage 1: prerequisites
Four areas need to be in place before deep learning makes sense:
| Area | What you need | How to check |
|---|---|---|
| Python | functions, classes, list comprehensions, virtual environments | you can write a 100-line script without searching syntax |
| NumPy | arrays, broadcasting, matrix multiplication | you can multiply a batch of vectors by a matrix without loops |
| Maths | derivatives and the chain rule, matrices, probability basics | you can explain gradient descent on paper |
| Machine learning | train, validation and test splits, overfitting, metrics | you can explain why accuracy fails on imbalanced data |
Evaluation habits matter as much as maths. Deep learning projects fail from leaky splits just as often as classic ML projects do. Our data leakage guide shows six common leaks and how much each inflates a score.
Milestone: implement linear regression with gradient descent in NumPy and match scikit-learn’s answer.
Stage 2 of the deep learning roadmap: neural network fundamentals
This stage is about one idea: a network is a chain of simple functions, and backpropagation uses the chain rule to work out how each weight should change to reduce the loss.
What to learn:
- neurons and layers, plus activation functions such as ReLU, tanh and softmax
- loss functions: mean squared error and cross-entropy
- the forward pass and backpropagation through the chain rule
- gradient descent with mini-batches, and what the learning rate controls
- why depth helps, and why deep networks used to be hard to train
The best exercise in the whole roadmap is to write backpropagation by hand once. I did it in plain NumPy for a small network (2 inputs, 8 hidden units, 1 output) trained on a curved “two moons” dataset of 400 points:
| Training step | Loss | Accuracy |
|---|---|---|
| 0 | 0.725 | 50.0% |
| 500 | 0.119 | 96.2% |
| 1,000 | 0.069 | 98.0% |
| 3,000 | 0.036 | 98.2% |

The whole backward pass is four lines of NumPy:
d_out = (p - y) / len(X) # gradient of the loss at the output
dW2, db2 = h.T @ d_out, d_out.sum(0, keepdims=True)
d_h = d_out @ W2.T * (1 - h ** 2) # chain rule back through tanh
dW1, db1 = X.T @ d_h, d_h.sum(0, keepdims=True)
Once those lines make sense, PyTorch’s loss.backward() stops being magic. Andrej Karpathy’s Neural Networks: Zero to Hero course starts exactly here, building a small autograd engine called micrograd before moving on to language models.
Milestone: a network trained with gradients you derived and coded yourself, checked against numerical gradients.
Stage 3: PyTorch fluency
Pick one framework and learn it properly. In 2027 that framework is PyTorch. It shipped eight releases in 2026, reaching version 2.15 in October, and Hugging Face Transformers v5 uses it as its only backend. Google now points new generative AI work to Keras 3, JAX or PyTorch. Our PyTorch vs TensorFlow comparison has the full picture.
What to learn:
- Tensors: shapes and broadcasting, and moving data between CPU and GPU.
- Autograd: requires_grad, backward(), gradient accumulation and no_grad().
- nn.Module: building layers and models, parameters, state_dict.
- Data: Dataset, DataLoader, batching, shuffling, augmentation.
- The training loop: forward, loss, backward, optimiser step, evaluation mode.
- Saving and loading checkpoints.
- torch.compile for speed, once the basics work.
Write the training loop by hand many times before using a high-level trainer. Every library that hides the loop is still running it, and you will need to read it when something goes wrong.
Milestone: train a small convolutional network on CIFAR-10 on a GPU. Plot the validation curve, save a checkpoint and prove you can reload it. Free notebook GPUs on services such as Google Colab and Kaggle are enough for this stage, within their usage limits.
Stage 4 of the deep learning roadmap: training craft
Training craft is the part most roadmaps skip and most employers notice. It is the set of habits that turns “the loss is not going down” into a fix.
| Topic | What to learn |
|---|---|
| Initialisation | why weight scale matters; Xavier and Kaiming initialisation |
| Normalisation | batch norm, layer norm, RMSNorm and where each fits |
| Optimisers | SGD with momentum, Adam, AdamW and weight decay |
| Learning rate | warm-up, cosine decay, finding a good starting rate |
| Regularisation | dropout, data augmentation, early stopping, label smoothing |
| Mixed precision | training in 16-bit formats safely |
| Debugging | overfit one batch first, check gradient norms, look at your data |
| Experiment tracking | logging every run’s settings and metrics |
A simple debugging routine solves most early problems:
- Overfit a single small batch. If the loss cannot reach near zero on 32 examples, there is a bug, not a tuning problem.
- Check the input pipeline by plotting a few batches after augmentation.
- Watch the gradient norm. Exploding or vanishing values point at initialisation, normalisation or the learning rate.
- Change one setting at a time and log every run.
Milestone: take a deliberately broken training script (wrong learning rate, missing normalisation, a data bug) and fix it, writing down what each symptom told you.
Stage 5: core architectures

a text corpus you choose, and generate samples from it.
Stage 6: generative models and LLMs
This is the stage most people want to jump to. Arriving here with solid fundamentals makes it far more rewarding.
What to learn:
- Autoencoders and VAEs: compressing data into a latent space.
- GANs: mostly for history and intuition about adversarial training.
- Diffusion models and flow matching: how noise becomes images. Our diffusion models guide includes a tiny experiment where flow matching reached near-best quality in 16 to 32 steps.
- Language model pre-training: next-token prediction, tokenisation, scaling.
- Fine-tuning: instruction and preference tuning, plus parameter-efficient methods. LoRA, for example, reported cutting trainable parameters by 10,000 times and GPU memory by 3 times compared with full fine-tuning of GPT-3 175B.
- Mixture of experts: how the largest open models activate a small part of their weights. See our mixture of experts guide.
- Evaluation: building test sets for generative models, where there is no single right answer.
Milestone: fine-tune a small open language model with LoRA on a task you care about, and measure it against the base model on a held-out test set. Then train a tiny diffusion or flow-matching model on a simple dataset.
Stage 7 of the deep learning roadmap: scaling and deployment

A model that only runs in a notebook has limited value. This stage covers making training faster and putting models into use.
| Area | What to learn |
|---|---|
| Efficient training | mixed precision, gradient accumulation, activation checkpointing |
| Distributed training | data parallel (DDP), sharded training (FSDP), when you need them |
| Inference | batching, KV caching for transformers, torch.compile, torch.export |
| Model compression | quantisation to 8 and 4 bits, distillation, pruning |
| Serving | an inference server or API, LLM serving engines, latency and throughput |
| Monitoring | input drift, output quality, cost per request |
Quantisation deserves extra attention, because it decides what fits on which hardware. OpenAI’s gpt-oss-120b, for example, stores its expert weights in a 4-bit format so that a 117-billion-parameter model fits on a single 80 GB GPU.
Milestone: serve one of your models behind an API, measure latency at different batch sizes, and quantise it to see how much accuracy you trade for speed.
Stage 8: specialise and build a portfolio
By now you can learn any area in a few weeks. Pick one and go deep.
| Specialisation | Core topics | Portfolio project idea |
|---|---|---|
| Language models | tokenisation, fine-tuning, retrieval, evaluation | a fine-tuned assistant for a niche domain with a measured test set |
| Computer vision | detection, segmentation, vision transformers | a detector trained on images you collected and labelled |
| Generative media | diffusion, flow matching, guidance, distillation | a small image model with a step-count versus quality study |
| Speech and audio | spectrograms, speech recognition, text-to-speech | a speech model fine-tuned for an accent or language |
| Efficient deep learning | quantisation, kernels, serving | a benchmark of one model across precisions and hardware |

Reproducing a paper is the strongest single portfolio piece. Choose a well-known result small enough to train on one GPU, match its main number or explain why you could not, and write up what you learned.
Milestone: two or three finished projects in your chosen area. Each needs code and a clear README that reports results with honest limitations.
Hardware for each stage of the deep learning roadmap
You do not need to buy a GPU to follow this deep learning roadmap. What you need changes as you move through the stages:
| Stages | What runs well | Typical setup |
|---|---|---|
| 1 and 2 | NumPy, small networks, toy datasets | any laptop |
| 3 to 5 | CNNs on CIFAR-10, a small GPT, short training runs | free notebook GPUs, or a gaming GPU with 8 to 12 GB |
| 6 | LoRA fine-tuning of small open models, tiny diffusion models | a 16 to 24 GB GPU, or a rented cloud GPU for a few hours |
| 7 | multi-GPU training, serving benchmarks | rented multi-GPU machines for short sessions |
| 8 | depends on the specialisation | mostly a single good GPU plus occasional rentals |
Two habits keep costs low. Prototype on a small slice of data on free hardware, and rent bigger GPUs only for runs you have already debugged. Quantised models also let you run surprisingly large models for inference on modest hardware, which is enough for most stage 6 experiments.
Deep learning roadmap vs machine learning roadmap
People often ask which to follow first. They overlap but answer different questions.
| Machine learning roadmap | Deep learning roadmap | |
|---|---|---|
| Main data | tables, structured records | images, text, audio, video |
| Main models | linear models, trees, gradient boosting | neural networks, transformers, diffusion |
| Typical first job tasks | prediction on business data, analytics | NLP, vision, LLM applications |
| Hardware | a laptop is usually enough | GPUs from stage 3 onwards |
| Shared foundation | Python, statistics, evaluation, avoiding leakage | the same |
If your goal is a data science or analytics role, start with the machine learning roadmap. If you want to work on language models, computer vision or generative AI, do its first four steps and then switch to this deep learning roadmap. Both share the evaluation habits that matter most.
Free deep learning roadmap resources for each stage
| Stage | Resource | Format |
|---|---|---|
| 2 to 5 | Andrej Karpathy, Neural Networks: Zero to Hero | video lectures building micrograd, makemore, GPT and a tokenizer |
| 2 to 6 | Dive into Deep Learning (d2l.ai) | free online book with runnable notebooks |
| 3 | official PyTorch tutorials | documentation and notebooks |
| 3 to 6 | Chollet and Watson, Deep Learning with Python, 3rd edition (Manning, September 2025) | book covering Keras 3, JAX, PyTorch, transformers and diffusion |
| 1 to 5 | Géron, Hands-On Machine Learning with Scikit-Learn and PyTorch (O’Reilly, October 2025) | book |
| 5 and 6 | the original papers: Attention Is All You Need, DDPM, LoRA | papers, read after the matching stage |
| 6 to 8 | Hugging Face courses | free online courses |
Two books cost money; everything else here is free. You do not need all of them. Pick one main resource per stage and use the others for the topics that do not click.
A sample weekly routine
At 10 hours a week, a balance like this works well:
- 3 hours learning new material (lectures, reading)
- 5 hours building and debugging
- 1 hour reading one paper or a long technical post
- 1 hour writing up what you did
The writing hour matters more than it looks. Short notes turn into blog posts and READMEs, and explaining a concept is the fastest way to find out whether you understand it.
How to tell you are ready for the next stage
Moving on too early is the most common way people stall on a deep learning roadmap. Before each jump, check that you can do the following without a tutorial open:
- Before PyTorch: derive the gradient of a two-layer network on paper and confirm it with numerical gradients.
- Before training craft: write a full PyTorch training loop from memory, including evaluation mode and checkpointing.
- Before architectures: explain why a run diverged or plateaued, and fix it by changing one setting.
- Before generative models: implement attention and a small transformer block, and say what each tensor’s shape is.
- Before scaling: fine-tune a model and evaluate it against its base version on held-out data.
- Before specialising: serve a model behind an API and measure its latency and memory use.
If one of these feels shaky, spend another week on the current stage. That week usually saves a month later.
Common mistakes on a deep learning roadmap
- Starting with transformers or diffusion before you can debug a two-layer network.
- Watching courses without building. Aim for a working project at the end of every stage.
- Switching frameworks every month. Learn PyTorch well; the concepts transfer.
- Copying training settings without understanding them. Change one thing at a time and log it.
- Ignoring evaluation. A model with a leaky test set or no baseline proves nothing.
- Chasing every new model release. Learn the ideas that last: backpropagation, optimisation, attention, generative objectives.
- Waiting for an expensive GPU. Free notebook GPUs cover stages 1 to 5.
FAQ
How long does it take to learn deep learning?
With some Python and machine learning background and about 10 hours a week, this roadmap takes around ten to twelve months to reach the point where you can take a model from training to deployment on your own. Starting from zero programming, add three to four months for Python and machine learning first.
Do I need machine learning before deep learning?
You need the basics, such as data splits and overfitting, how metrics work, and gradient descent. Without them, it is hard to tell whether a neural network is working. You do not need to master every classic algorithm first.
Should I learn PyTorch or TensorFlow for deep learning in 2027?
PyTorch. Most courses and open models use it, it shipped eight releases in 2026, and it is the only backend of Hugging Face Transformers v5. Google moved TensorFlow to a maintenance focus in March 2026 and recommends Keras 3, JAX or PyTorch for new generative AI work.
Do I need a GPU to follow this deep learning roadmap?
Not for the first stages. Stages 1 and 2 run on any laptop. For stages 3 to 5, free notebook GPUs are usually enough. Larger fine-tuning and serving work in stages 6 and 7 may need a rented GPU for a few hours at a time.
How much maths do I need for deep learning?
Enough to follow derivatives and the chain rule, plus matrix multiplication and some probability. Most of it can be learned alongside stages 1 and 2. Research roles need more, but applied roles mostly need intuition and debugging skill.
Start with one neuron
The fastest way through this deep learning roadmap is also the slowest-looking: build a tiny network by hand, then learn PyTorch properly, then learn to train well, and only then reach for the famous architectures. Each stage makes the next one easier. Start this week by writing backpropagation yourself, then keep going one milestone at a time.


