If you already run Linux servers, ship containers and keep Kubernetes clusters healthy, you have a large part of what an AI engineer does every day. What you need on top is a set of new skills: calling models from code, retrieval over your own data, agents that use tools, and a way to measure whether any of it works. This roadmap puts those skills in order, in six stages, with the time each one takes, a project to build and a hands-on lab to practise it.
Plenty of engineers are weighing the same move. Google Trends puts worldwide interest in "AI engineer" about 46% higher in August to October 2026 than in the same months of 2025, and searches for "AI engineer roadmap" now outnumber searches for "DevOps roadmap". In India the gap is roughly three to one.
How do you become an AI engineer if you work in DevOps or cloud?
Keep your infrastructure skills and add four things: Python you can ship, LLM APIs and prompting, retrieval (RAG), and agents tested with proper evaluations. Build one project per stage, serve a small model yourself on Kubernetes, and gate every change with an eval suite in CI. Studying part-time, expect the core to take four to seven months.
What an AI engineer actually does
An AI engineer builds products and internal tools on top of existing models. You write and version prompts, connect models to company data through retrieval, give them tools to call, measure whether the output is good enough, and run the whole thing in production at a cost the business will accept. Training a foundation model from scratch is a different job (ML research and ML engineering), and so is running large GPU clusters for training (ML platform or MLOps).
A normal week might include working out why an agent keeps picking the wrong tool, writing a test set that catches a regression when you swap one model for another, tracing a request that takes 40 seconds, and agreeing with a product manager on what "good enough" means for generated text.
Much of that is familiar ground for an operations engineer:
| What you already do | Where it shows up in AI engineering |
|---|---|
| Containers and Kubernetes | Serving open models, autoscaling inference, running vector databases |
| CI/CD | Eval suites that fail the build when a prompt or model change makes answers worse |
| Metrics, logs and traces | Tracing agent runs step by step; tracking latency, tokens and cost per request |
| IaC and secrets management | Reproducible model endpoints; API keys kept out of code and prompts |
| On-call and incident response | Provider outages, fallbacks between models, rate limits, prompt injection incidents |
| Least privilege | Sandboxed tools, command allowlists, human approval before an agent changes anything |
The new parts are Python at a level where you can build and test a service, an understanding of how LLMs behave (tokens, context windows, sampling, outputs that change between runs), embeddings and vector search, and the habit of evaluating outputs with data instead of by feel.
The AI engineer roadmap at a glance
Times are rough guides for someone studying alongside a full-time job. If you already write Python every day, skip stage 0.
| Stage | What you learn | Time | Project | Lab to practise |
|---|---|---|---|---|
| 0. Python you can ship | Scripts, virtual environments, packaging, typing, async basics, HTTP clients, pytest | 2 to 4 weeks | A log-parsing CLI with tests | Python Basics |
| 1. LLM foundations | Hosted and local model APIs, prompts, tokens, context windows, temperature, structured output | 3 to 4 weeks | An incident summariser that returns validated JSON | Token counting and cost estimation |
| 2. Embeddings and RAG | Embeddings, chunking, vector databases, retrieval quality, hybrid search | 4 to 6 weeks | Question answering over your team's runbooks | Mini RAG with Ollama |
| 3. Tools, agents and MCP | Function calling, agent loops, LangGraph state and branching, MCP servers | 4 to 6 weeks | A read-only MCP server for cluster status | Minimal MCP server |
| 4. Evaluation | Test sets, exact-match and LLM-as-judge checks, regression gates, comparing models | 3 to 4 weeks | An eval gate in CI for the stage 2 project | Prompt regression testing |
| 5. Serving and LLMOps | llama.cpp and vLLM, autoscaling, caching, model routing, tracing, guardrails, cost | 4 to 6 weeks | A small model on Kubernetes with Prometheus metrics | Serve an LLM on CPU with llama.cpp |
| 6. Production agents | Sandboxes, allowlists, human approval, prompt injection defence, audit logs | Ongoing | An agent that asks before it acts and logs every tool call | Safe filesystem MCP server |
Stage 0: Python you can ship (2 to 4 weeks)
Nearly every AI library, agent framework and eval tool is Python first. Bash scripts and a bit of Boto3 won't be enough. You need to structure a small project, manage dependencies in a virtual environment, use type hints, write tests with pytest and call HTTP APIs with retries and timeouts. Learn enough asyncio to read agent code, because most of it is async.
You're ready to move on when you can build a CLI that reads a log file, groups errors and prints a summary, with tests that run in CI.
Stage 1: LLM foundations (3 to 4 weeks)
Call a hosted model and a local one (Ollama is the easiest way to run small models on a laptop) from Python. Learn what a token is and why it drives both cost and the context limit. Try the same prompt at different temperatures and see how much the output moves. Write system prompts that give steady answers, and ask for structured output that you validate with Pydantic, so the rest of your code gets data instead of prose.
Project: an incident summariser. Feed it an alert and the last 200 log lines, and get back JSON with a summary, a likely cause and the next command to run. Count the tokens per call and estimate the monthly cost at your team's alert volume.
Stage 2: Embeddings and RAG (4 to 6 weeks)
Retrieval-augmented generation is how most companies connect models to their own documents. Learn how embeddings turn text into vectors, how chunk size changes what gets retrieved, and how a vector database (Chroma, Qdrant, pgvector) stores and searches them. Then work on quality: measure whether the right chunk comes back (recall at k), add keyword search next to vector search, and rerank the results.
Project: question answering over your team's runbooks or postmortems. When it answers wrongly, check retrieval first: bad RAG answers often come from retrieving the wrong text, which no prompt change can fix.
The Mini RAG lab builds the full pipeline with ChromaDB and sentence-transformers and answers with a small open model (Qwen2.5 0.5B) served by Ollama on your CPU.
Stage 3: Tools, agents and MCP (4 to 6 weeks)
An agent is a model in a loop: it decides which tool to call, reads the result and decides what to do next until the task is done. Write that loop yourself once with plain function calling before you pick up a framework, so you know what the framework is doing for you. Then learn LangGraph, where an agent is a graph of nodes with shared state, branches and a checkpointer that lets a run resume after a crash.
Learn the Model Context Protocol (MCP) properly. It is an open standard for connecting AI applications to tools and data sources, started by Anthropic and contributed to the Linux Foundation's Agentic AI Foundation in December 2025. For a DevOps engineer, an MCP server is the natural way to give an assistant controlled access to kubectl, your monitoring stack or your ticketing system.
Practise with two short labs: Build a Minimal MCP Server Over stdio, where you register a tool and call it from the MCP Inspector, and Build a Minimal LangGraph StateGraph, which needs no API key at all.
Project: a read-only MCP server that answers "what's failing in namespace X?" by running kubectl get and kubectl describe, and refuses anything that writes.
Stage 4: Evaluation (3 to 4 weeks)
Self-taught AI engineers often skip this stage, and interviewers tend to probe it hard. Model outputs vary, so "it worked when I tried it" means very little. Build a fixed test set of 30 to 100 real questions with expected answers. Score them with exact checks where you can and an LLM-as-judge where you can't, track the pass rate over time, and fail the CI build when a prompt or model change drops it below a threshold. You already know how to put a quality gate in a pipeline; here the thing under test is a prompt.
The prompt regression testing lab builds exactly this with pytest and a local CI script.
Stage 5: Serving and LLMOps (4 to 6 weeks)
Here your existing skills count the most. Serve an open model behind an API with llama.cpp (fine on CPU for small models) or vLLM (GPU, higher throughput). Put it on Kubernetes, expose latency, throughput and token metrics to Prometheus, and autoscale on queue length. Add response caching for repeated questions, route easy requests to a cheap model and hard ones to a stronger model, and put rate limits and guardrails in front of the endpoint. Trace every request so you can see where time and tokens go.
Practise with Serve a Small LLM on CPU with llama.cpp, which deploys a quantized GGUF model in a Kubernetes cluster on your own computer, no GPU required.
Stage 6: Production agents (ongoing)
Agents that can change real systems need the same controls you'd put on a junior engineer with production access. Run their tools in sandboxes, allowlist the commands and paths they may touch, require human approval for anything destructive, and log every tool call with its inputs and outputs. Learn how prompt injection works (instructions hidden in a web page, a ticket or a log line) and test your agent against it.
The Safe Filesystem MCP Server lab builds an MCP server that refuses any path outside an approved folder and is read-only by default.
Which AI roles fit DevOps and cloud engineers?
Three roles sit closest to DevOps work. An AI engineer builds LLM features and internal tools. An AI agent engineer builds tool-using agents that act on real systems. An AI platform or LLMOps engineer serves models, runs model gateways and tracks cost and quality. Pick one as a target, because each one changes which stages you go deep on.
LearnXops has a roadmap for each direction. The AI Engineer roadmap has a hands-on lab guide of 10 steps and 36 labs, from LLM API basics to caching and model routing. The AI Agent Engineer roadmap has 10 steps and 38 labs, from tool calling and MCP through LangGraph, evals and cost controls to production hardening. If you come from SRE, the AI SRE roadmap covers using LLMs in incident work.
Do you need machine learning maths?
Not to start. You need to know what embeddings are, why outputs vary between runs, and how to measure quality with simple metrics such as precision, recall and pass rates on a test set. Linear algebra and gradient descent matter once you move toward training or fine-tuning models, which is a later and optional step on this path.
Do you need a GPU?
No. Small quantized models run on a laptop CPU, which is enough to learn every stage on this roadmap. You'll want a GPU or hosted APIs later for larger models and for real traffic, but a GPU is a production decision and you don't need one to learn.
Mistakes that slow DevOps engineers down
- Building an agent before a single model call with structured output works reliably. Many "agent" problems are solved by one well-prompted call.
- Changing prompts by feel, with no test set to show whether a change helped.
- Learning a framework's abstractions before knowing what a raw API call and a hand-written tool loop look like. When the framework breaks, you can't debug it.
- Ignoring cost and latency until the first bill or the first complaint. Measure tokens per request from stage 1.
- Giving an agent write access to production with no allowlist, no approval step and no audit log.
How to practise each stage on your own computer
LearnXops has 83 AI agent labs covering LangGraph, CrewAI, MCP and more, plus RAG, LLMOps and model-serving labs in the regular and Kubernetes catalogues. The labs run on your own computer through the LearnXops Desktop app on Mac, Windows or Linux, with real local clusters, and each task is checked automatically. Many agent labs run against a model on your machine, so they need no API key and run up no token bill; the ones that use your own OpenAI or Anthropic account say so on the lab page. The first lab in each track is free with a free account.
For reading alongside the labs, the 30 Days of AI path covers AI for cloud and DevOps engineers day by day, from how LLMs work to agents, AI security and deploying models on Kubernetes.
A good first week: read the stage list on the AI Engineer roadmap, do the stage 1 labs, and start the incident summariser. By the end of it you'll have a working tool and a clearer idea of whether this is the work you want.

Member discussion