amitshekhariitbhu/ai-engineer-roadmap
حول
AI Engineer Roadmap - A step-by-step AI Engineering roadmap to become an AI Engineer, with a blog for every topic.
التعلّم والتعليمالنمو المقاس للنجوم
- خلال 24 ساعة
- +٣
- خلال 7 أيام
- +٢٨
- خلال 15 يومًا
- +٥٢
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل
AI Engineer Roadmap
AI Engineer Roadmap - A step-by-step AI Engineering roadmap to become an AI Engineer, with a blog for every topic
This roadmap is helpful for roles such as:
- AI Engineer
- Gen AI Engineer
- LLM Engineer
- Agentic AI Engineer
- AI Agent Engineer
- Forward Deployed Engineer
- AI Solutions Architect
- AI Platform Engineer
- Applied AI Engineer
- MLOps Engineer
- LLMOps Engineer
Table of Contents
- How to Use This Roadmap
- Step 0: Must Know
- Step 1: Machine Learning Foundations
- Step 2: Deep Learning and Neural Networks
- Step 3: Generative AI and the Transformer Architecture
- Step 4: How LLMs Generate Text
- Step 5: Modern LLM Architecture
- Step 6: Types of Language Models
- Step 7: Training, Fine-Tuning, and Alignment
- Step 8: Prompt Engineering and Context Engineering
- Step 9: Vector Search and Retrieval-Augmented Generation (RAG)
- Step 10: AI Agents and Agentic Systems
- Step 11: Agentic Engineering and Agent Frameworks
- Step 12: LLM Inference Engineering
- Step 13: Evaluation and Observability
- Step 14: AI Safety and Security
- Step 15: Multimodal AI and Generative Models
- Step 16: AI Infrastructure, Deployment, and System Design
- Step 17: Frontier Ideas in AI
- Step 18: Prepare for AI Engineering Interviews
Prepared and maintained by the Founder of Outcome School: Amit Shekhar
Follow Amit Shekhar
Follow Outcome School
I teach at Outcome School
Note: We will keep updating this roadmap with new topics and blogs.
How to Use This Roadmap
This roadmap is designed so that anyone can follow it in the given order, even without any prior background in AI.
- Follow the steps in order. Each step builds on top of the previous one.
- Inside each step, read the blogs in the given order. Every blog explains one concept in simple words with examples.
- Do not skip Step 1 and Step 2, even if you are in a hurry. Everything else in AI Engineering is built on top of them.
- If you already know a topic, move to the next one.
- Every blog is free to read and is written for beginners. No jargon. No assumptions.
Let's get started.
Step 0: Must Know
Before jumping into the details, we must know the six words that come up in every AI Engineering conversation:
- LLM
- RAG
- MCP
- Agent
- Fine-tuning
- Quantization
Learn about all six in one video: AI Engineering Explained: LLM, RAG, MCP, Agent, Fine-Tuning, Quantization
Now, we know the big picture. In the next steps, we will learn each of these in depth, one concept at a time.
Step 1: Machine Learning Foundations
In this step, we will learn what Machine Learning is, the different ways a machine can learn, and the basic terms we will keep using in every later step.
- What is Machine Learning?
- Supervised vs Unsupervised Learning
- Linear Regression vs Logistic Regression
- What is Feature Engineering in Machine Learning?
- What is One-hot Encoding in Machine Learning?
- Precision vs Recall
- How does a confusion matrix work?
- How does the ROC curve and AUC work?
- What is Bayes' Theorem?
- How does Naive Bayes work?
- What are L1 and L2 Loss Functions?
- What is Regularization in Machine Learning? L1 vs L2 Explained
- Why do we split data into train, validation, and test sets?
- How does Cross-Validation work?
- How does the Bias-Variance Tradeoff work?
- How do Decision Trees and Random Forests work?
- How does Gradient Boosting work?
- How does a Support Vector Machine (SVM) work?
- How does K-Means Clustering work?
- How does Hierarchical Clustering work?
- How does PCA work?
- How does t-SNE visualize high-dimensional data?
- How does Data Augmentation work?
- What is Reinforcement Learning?
- What is a Markov Decision Process (MDP)?
- What is Exploration vs Exploitation in Reinforcement Learning?
- What is a Value Function? Q-Learning Explained Step by Step
- What is Policy Gradient? The REINFORCE Algorithm Explained
- What is Actor-Critic in Reinforcement Learning? The Advantage Function Explained
- How does Self-Supervised Learning work?
- How does Semi-Supervised Learning work?
- How does Active Learning pick which data to label?
- What is Contrastive Learning?
- How does a Recommendation System work?
- How does learning to rank work?
- What is Explainable AI?
- How does Mechanistic Interpretability work?
Step 2: Deep Learning and Neural Networks
In this step, we will learn how a neural network actually learns. We will understand the math behind gradient descent and backpropagation step by step, and the techniques that make training stable.
- What is a Neural Network and How Does It Work?
- What is Bias in Artificial Neural Network?
- What is a Multilayer Perceptron (MLP) and How Does It Work?
- What are Activation Functions in Neural Networks? Sigmoid, Tanh, ReLU, and Softmax Explained
- What is the Softmax Function and How Does It Work?
- What are Logits in Machine Learning?
- How Does Matrix Multiplication Work in Neural Networks?
- How Does Gradient Descent Work?
- What are Epoch, Batch, Batch Size, and Iteration in Machine Learning?
- How Does Backpropagation Work? The Math Explained Step by Step
- What are Optimizers in Deep Learning? SGD, Momentum, RMSProp, and Adam Explained
- How do learning rate schedules and warmup work?
- Why do vanishing and exploding gradients happen?
- Why Do We Initialize Weights Randomly in Neural Networks?
- What is Entropy in Information Theory?
- What is Cross-Entropy Loss?
- What is KL Divergence? The Math Explained Step by Step
- What is Dropout in Neural Networks?
- How does early stopping work?
- Hyperparameter tuning
- Batch Normalization vs Layer Normalization
- What is RMSNorm? Root Mean Square Layer Normalization Explained
- Convolutional Neural Networks
- How does Object Detection work?
- How does Semantic Segmentation work?
- How does a face recognition system work?
- What is a Recurrent Neural Network (RNN)?
- How do LSTM and GRU work?
- What is Teacher Forcing in Sequence Models?
- How does OCR with Deep Learning work?
- How does PyTorch work?
- How does TensorFlow work?
Step 3: Generative AI and the Transformer Architecture
In this step, we will learn what Generative AI is and how the Transformer, the architecture behind every modern LLM, works from the inside. We will go from tokens to embeddings to attention, one piece at a time.
- What is Generative AI?
- How does an LLM work?
- Inside ChatGPT: What Happens After You Hit Enter
- What are Autoregressive Models?
- Tokenization in LLMs
- What is Byte Pair Encoding (BPE) in LLMs?
- Tokenization in Large Language Models (LLMs) (Video)
- What are Embeddings?
- Embeddings in Machine Learning (Video)
- How does Word2Vec work?
- How do RNNs and Transformers differ?
- How Does the Transformer Architecture Work?
- Encoder vs Decoder in Transformers
- What is Self Attention in Transformers?
- How Does Attention Work? The Math Behind Q, K, and V
- Why Do We Scale Attention by √dₖ?
- What is Causal Masking in Attention?
- What is Multi-Head Attention in Transformers?
- What is Cross Attention in Transformers?
- Positional Embeddings in LLMs
- What is RoPE (Rotary Position Embedding)? The Math Behind It
- What is the Feed-Forward Network in LLMs?
- How does SwiGLU work?
Step 4: How LLMs Generate Text
In this step, we will learn how an LLM picks the next token, how we control its creativity, how it knows when to stop, how the output reaches the user token by token, and where the context window fails.
- How does Temperature control LLM output?
- How do Top-k and Top-p Sampling work?
- How do Greedy Decoding and Beam Search differ?
- What are Log Probabilities (Logprobs) in LLMs?
- Stop Tokens in LLMs
- How does Constrained Decoding work?
- How does Token Streaming work?
- How does the Context Window work?
- Why is the context window limited in LLMs? (Video)
- What is the Lost in the Middle Problem in LLMs?
- Why Do LLMs Hallucinate? The Token-Level Explanation
Step 5: Modern LLM Architecture
In this step, we will learn the improvements that modern LLMs add on top of the basic Transformer to become bigger, faster, and able to handle longer inputs. At the end, we will see all of these ideas together inside a real model.
- What is Mixture of Experts (MoE)?
- What is Grouped Query Attention (GQA)?
- How does Multi-Head Latent Attention work?
- How does Sliding Window Attention work?
- How do Attention Sinks work?
- What is Flash Attention and Why Is It So Fast?
- What is DeepSeek-V4 and How Does It Work? Architecture Explained
Step 6: Types of Language Models
In this step, we will learn that not every language model is a large, text-generating LLM. We will see the smaller, reasoning, recursive, diffusion-based, and decision-only models and when to use which one.
- What are Small Language Models (SLMs)?
- What are Large Reasoning Models (LRMs)?
- What are Recursive Language Models (RLMs)?
- How do Diffusion Language Models (DLMs) work?
- Jev and System One Models Explained
Step 7: Training, Fine-Tuning, and Alignment
In this step, we will learn how a pre-trained model is adapted to our own task, how it is made smaller, and how it is taught to follow instructions and human preferences.
- How does Pretraining work?
- What are the Chinchilla scaling laws?
- How does Fine-Tuning work?
- How does Instruction Tuning work?
- What is LoRA (Low-Rank Adaptation)?
- How does QLoRA fine-tune on one GPU?
- How does Prefix Tuning work?
- How does Knowledge Distillation work?
- What is Continual Learning in LLMs? Solving Catastrophic Forgetting
- What is Deep RL from Human Preferences? The Paper That Started RLHF
- What is InstructGPT? How GPT-3 Learned to Follow Instructions
- What is RLHF? Reinforcement Learning from Human Feedback Explained
- What is a Reward Model and How Is It Trained?
- What is Reward Hacking in Reinforcement Learning and How Do We Prevent It?
- What is RLAIF? Reinforcement Learning from AI Feedback Explained
- What is Proximal Policy Optimization (PPO)?
- What is Direct Preference Optimization (DPO)?
- What is Group Relative Policy Optimization (GRPO)?
- What is Reinforcement Learning with Verifiable Rewards (RLVR)?
Step 8: Prompt Engineering and Context Engineering
In this step, we will learn how to talk to an LLM so that it gives better answers, and how to manage everything that goes into its context window.
- How does Prompt Engineering work?
- How does the System Prompt work?
- How does In-Context Learning work?
- How does Chain-of-Thought (CoT) Prompting work?
- How does Self-Consistency Prompting work?
- How does Tree of Thoughts work?
- How does Prompt Chaining work?
- How does Prompt Caching work?
- What is Context Engineering?
- How does Context Compaction work?
Step 9: Vector Search and Retrieval-Augmented Generation (RAG)
In this step, we will learn how to give an LLM knowledge that it was never trained on. We will start with how vectors are stored and searched, then move to retrieval techniques, and finally to the advanced forms of RAG.
If you want a quick introduction to RAG before starting, watch: AI Engineering Explained: LLM, RAG, MCP, Agent, Fine-Tuning, Quantization
- How does an embedding model work?
- How does Cosine Similarity work?
- How does a Vector Database work?
- How does Approximate Nearest Neighbor (ANN) Search work?
- How does HNSW work?
- How does Semantic Search work?
- How does an Inverted Index work?
- How does BM25 work?
- How do sparse and dense embeddings differ?
- How does Hybrid Search work?
- How does a Reranker work?
- What is ColBERT? Late Interaction Retrieval Explained
- How does RAG work?
- How to Chunk Documents for RAG? Chunking Strategies Explained
- How does Contextual Retrieval work?
- How does HyDE work in RAG?
- How do Query Rewriting and Multi-Query Retrieval work?
- How does an Embedding Cache work?
- How does Semantic Caching work?
- What is Agentic RAG?
- What is GraphRAG? How Knowledge Graphs Improve RAG
- What is Vectorless RAG? RAG Without Embeddings or a Vector Database
Step 10: AI Agents and Agentic Systems
In this step, we will learn how an LLM goes from answering questions to actually doing work. We will start with a single agent, see how it uses tools and memory, and then move to systems where many agents work together.
- What is an AI Agent? How It Works
- How does Function Calling work in LLMs?
- What is an AI Agent Loop?
- What is a ReAct Agent?
- What is a Plan-and-Execute Agent?
- What is a Reflection Agent?
- How does AI Agent Memory work?
- How does ChatGPT remember you?
- What is MCP (Model Context Protocol)?
- What are Agent Skills?
- What is OKF (Open Knowledge Format)?
- What are Multi-Agent Systems?
- What are AI SubAgents?
- How AI Agents Communicate
- What is AI Orchestration?
- What is Sakana Fugu? The Technical Report Explained
- How do Computer-Use Agents work?
- How do Browser Agents work?
- How does a deep research agent work?
- How do Human-in-the-Loop agents work?
Step 11: Agentic Engineering and Agent Frameworks
In this step, we will learn the engineering practices for building reliable agents, and then see how the popular frameworks and coding agents are built.
- What is Harness Engineering?
- What is Loop Engineering?
- What is Graph Engineering?
- AI Is Only as Good as Our Definition of Done
- How does LangChain work?
- How does LangGraph work?
- How does Claude Code work?
- How does Cursor work?
Step 12: LLM Inference Engineering
In this step, we will learn how to make LLMs faster and cheaper to run. We will start with what happens during inference, then learn the caching, batching, and speculation techniques, then quantization, and finally the serving engines that put it all together.
- LLM Inference Optimization
- LLM Inference Optimization (Video)
- Prefill vs Decode: LLM Inference Optimization
- The First-Token Latency Problem in LLMs (Video)
- What is Prefill-Decode Disaggregation in LLM Inference?
- What is KV Cache in LLMs?
- What is KV Cache Compression?
- How does an LLM use GPU memory?
- What is Paged Attention in LLMs?
- What is Continuous Batching in LLMs?
- What is Speculative Decoding?
- What is N-gram Speculation in LLMs?
- What is Medusa? Multi-Head Speculative Decoding Explained
- What is EAGLE? Feature-Level Speculative Decoding Explained
- How does Model Quantization work?
- How does GGUF work?
- How does llama.cpp run LLMs on everyday hardware?
- How does Ollama work?
- How does vLLM work?
- How does SGLang work?
- How does TensorRT-LLM work?
Step 13: Evaluation and Observability
In this step, we will learn how to measure whether our LLM and our agent are actually doing a good job, and how to see what they are doing in production.
- What is LLM Evaluation? Metrics, Benchmarks, and Methods Explained
- What is perplexity in a language model?
- What is LLM as a Judge?
- How do you evaluate a RAG system?
- How to Evaluate AI Agents? Metrics, Methods, and Best Practices
- What is AI Agent Observability? Traces, Spans, and Metrics Explained
Step 14: AI Safety and Security
In this step, we will learn how to keep an LLM application safe, how attackers try to break it, and how AI-generated text can be identified.
- How do LLM Guardrails work?
- What is Prompt Injection in LLMs and How Do We Defend Against It?
- What is jailbreaking in LLMs?
- What is data poisoning in AI?
- How does LLM Watermarking work?
Step 15: Multimodal AI and Generative Models
In this step, we will learn how AI works with images and other types of data, and the generative models that create images from noise.
- What is Multimodal AI?
- What is a Vision Transformer (ViT)?
- How do Image Embeddings work?
- How does a Vision-Language Model (VLM) work?
- What are Diffusion Models and How Do They Generate Images?
- How does flow matching train a generative model?
- How does text-to-video generation work?
- What are Generative Adversarial Networks (GANs)?
- What are Variational Autoencoders (VAEs)?
- How does Super-Resolution work?
Step 16: AI Infrastructure, Deployment, and System Design
In this step, we will learn the hardware that runs AI models, where to deploy a model, how to send each request to the right model, and how to design a complete AI system end to end.
- How does a GPU work for Deep Learning?
- How do CUDA Kernels work?
- How does a Google TPU work?
- How does an LPU work?
- How does distributed training work?
- How does Mixed Precision Training work?
- Cloud vs On-device Model Deployment
- How does Federated Learning train without raw data?
- How does Model Serving work?
- How does a Model Registry work?
- How does a feature store work?
- How do data drift and concept drift differ?
- Android TensorFlow Lite Machine Learning Example
- What is LLM Routing? How to Send Each Query to the Right LLM
- How does an LLM Gateway work?
- Design a Real-Time Voice AI Agent
- What is turn-taking in a voice AI agent?
- How does endpointing decide when the user has finished speaking?
- How do silence-based and model-based turn detection differ?
- How does dynamic endpointing adapt to how fast a user talks?
- How does a voice agent handle long pauses when the user is thinking?
- How does a voice agent know a phone number or email is not finished yet?
- Why does a voice agent cut people off mid-sentence?
- What is barge-in in a voice AI agent?
- Cascaded vs Speech-to-Speech: How to choose the right voice agent architecture?
- How do half-duplex and full-duplex voice agents differ?
- How does a voice agent tell a real interruption from a cough or background noise?
- What are backchannels, and why should "mm-hmm" not stop the agent?
- How does a voice agent stop speaking instantly when interrupted?
- Why does TTS audio buffering make interruptions slow?
- How does a voice agent truncate its memory to only what the user actually heard?
- How does a voice agent recover from a false interruption?
- How does a voice agent handle the user and agent talking at the same time?
- How does a voice agent add its own backchannels like "okay" and "got it"?
- How do you build a latency budget for a voice AI agent?
- How does the voice-to-voice latency of a voice agent get measured?
- Why does the time-to-first-audio matter more than total response time?
- How does sentence chunking feed LLM output into TTS faster?
- How does a TTS model start speaking before the full sentence arrives?
- How does speculative LLM generation start replying before the user finishes?
- How do filler phrases hide latency in a voice agent?
- How does a voice agent hide the delay of a slow tool call?
- What are audio frames and chunk sizes in a real-time voice pipeline?
- Why do sample rates like 8 kHz, 16 kHz, and 24 kHz matter for voice agents?
- How do WebRTC and WebSocket differ for voice AI agents?
- How does the Opus codec compress voice for real-time calls?
- How does a jitter buffer keep voice audio smooth over a bad network?
- How does packet loss concealment hide missing audio?
- How does a voice AI agent answer a phone call?
- How do SIP and RTP carry a phone call to a voice agent?
- Why does phone audio make speech recognition worse?
- How does DTMF keypad input work in a voice agent?
- How does voicemail and answering machine detection work?
- How does an outbound calling voice agent work?
- How does a voice agent transfer a call to a human with context?
- How do you write a system prompt for a voice agent, not a chat bot?
- How does function calling work in a voice AI agent?
- How does a voice agent handle structured inputs like dates, numbers, and addresses?
- How does a voice agent confirm and correct misheard information?
- How does a voice agent manage conversation state across a long call?
- How do multi-agent handoffs work in a voice AI system?
- How does a voice agent decide when to end the call?
- How does SSML control how a voice agent speaks?
- How do pronunciation dictionaries fix how TTS says names and brands?
- How does an ASR model produce partial and final transcripts?
- How does keyword boosting help ASR recognize domain words?
- How does chunked attention make a speech encoder stream?
- How does the Token-and-Duration Transducer (TDT) speed up speech recognition?
- What is a Spoken Language Model?
- How does an LLM learn to understand speech with an audio encoder and adapter?
- Why do speech LLMs lose reasoning ability compared to text LLMs?
- How does a voice agent handle accents and noisy environments?
- How does a voice agent detect and switch the user's language mid-call?
- How does a voice agent match its tone and emotion to the user?
- How do you evaluate a voice AI agent?
- How do simulated callers test a voice agent automatically?
- What metrics matter for a production voice agent?
- How do you debug a bad voice agent call with traces and recordings?
- How do guardrails keep a voice agent safe on live calls?
- How do you scale a voice AI agent to thousands of concurrent calls?
- What drives the cost per minute of a voice AI agent?
Supporting reads for AI System Design:
- What is System Design?
- HTTP Request vs HTTP Long-Polling vs WebSocket vs Server-Sent Events
- How do Voice and Video Call work?
Step 17: Frontier Ideas in AI
In this step, we will learn the ideas that are shaping the future of AI, from models that learn an internal picture of the world to systems that improve themselves.
- What is Joint Embedding Predictive Architecture (JEPA)?
- How do World Models work?
- What is Recursive Self-Improvement (RSI)?
Step 18: Prepare for AI Engineering Interviews
Now that we have learned everything from Machine Learning foundations to AI Agents in production, it's time to prepare for the interviews.
Join the AI and Machine Learning program at Outcome School to learn all of these.
License
Copyright (C) 2026 Outcome School
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…