How to Prepare for an ML Engineer Interview: Rounds and an Eight-Week Plan
What happens in each ML engineer interview round, what each one checks, and an eight-week preparation plan you can shorten to fit your starting point.
Preparing for an ML engineer interview comes down to a few skills you can practise directly. You need to write core models and metrics without a library, reason clearly about data, evaluation and failure modes, design a system end to end, and explain the decisions behind your own projects. This guide walks through each round and then lays out an eight-week plan that trains all of them.
What is the ML engineer interview process?
The ML engineer interview process usually starts with a recruiter call and a technical screen, followed by a loop of four to six interviews over two to six weeks. The loop commonly covers general coding, ML coding, ML fundamentals, a project deep dive, ML system design and a behavioral conversation. TensorTonic covers the technical rounds with from-scratch problems, ML Math lessons and timed mock assessments, 4 of them free.
The exact mix changes with the team and the level, with research-leaning teams spending more time on depth and papers and product teams spending more on system design. Ask the recruiter for the list of rounds early, because every hour of preparation should map to one of them. If you are still deciding between ML engineering and a related role, the guide on ML engineer vs data scientist compares the daily work and the interviews for each.
I came to machine learning from a biotechnology degree and went on to research and engineering internships at an industry ML team, a large tech company's R&D centre and a corporate research lab, so I prepared for several different ML interview loops. Across them, I was asked to code a neural network from scratch in NumPy, to explain stratified sampling, to discuss a vision and language model architecture and to reason about generative models. Each one checked whether I could go from the maths to working code and back again.
What happens in each ML engineer interview round?
Each round checks a different skill, and the map below shows the order candidates commonly report, what each stop checks and how you practise for it. The sections after it explain what a strong answer looks like in every round.
The interview loop as a line of stops
What candidates commonly report
Screening stage
01Recruiter screen
What it checksRole fit, level and logistics
How you practise itA two-minute story of your background
02Technical screen
What it checksOne coding task, sometimes a short ML question
How you practise itTimed coding with talking out loud
Interview loop
03Coding
What it checksData structures and algorithms at a medium level
How you practise itDaily short problem sets
04ML coding
What it checksA model, loss or metric written from a blank file
How you practise itFrom-scratch NumPy problems
05ML fundamentals
What it checksBreadth across models, losses, metrics and evaluation
How you practise itExplaining a concept and where it fails
06Project deep dive
What it checksDepth on work you did yourself
How you practise itTwo project stories built around decisions
07ML system design
What it checksAn end-to-end design within 45 minutes
How you practise itA fixed order rehearsed against a clock
08Behavioral
What it checksOwnership, conflict and how you handle ambiguity
How you practise itFive stories that each show one trait
Recruiter screen
The recruiter call checks that your background matches the level and the team. Ask how many rounds there are, whether one is ML system design, and whether the coding rounds use general algorithms, ML implementation or both, because the answers decide how you split your preparation time.
Technical screen
The technical screen is usually a 45 to 60 minute call with one coding problem, sometimes followed by a few quick ML questions. Interviewers want working code, reasoning out loud and sensible tests, so practise solving a medium problem while narrating your choices.
Coding round
Many loops keep one general coding round with data structures and algorithms at about the level of a software engineering interview. It rarely decides an ML loop on its own, but a weak result can sink an otherwise strong one, so give it short, steady practice throughout your preparation.
ML coding round
In the ML coding round you implement a model, loss, metric or training step in plain Python or NumPy, often from a blank file. Typical prompts include logistic regression with gradient descent, a k-means loop, a stable softmax or a small neural network with its gradients, and the follow-ups probe regularization, imbalance and testing.
ML fundamentals or breadth round
A breadth round moves quickly through many topics, such as bias and variance, regularization, loss functions, evaluation metrics, optimizers and, increasingly, attention and language models. The questions are short, so the round rewards crisp answers that name the trade-off and one case where the method misleads.
Project deep dive or depth round
A depth round picks one area, usually a project on your resume, and keeps asking why until it reaches the limit of what you know. Interviewers want to hear the metric you chose, the baseline you beat, the data problems you hit and the decisions you would change, which only the person who did the work can answer.
ML system design round
The system design round asks you to design an ML system such as a recommendation feed, a fraud detector or a search ranker end to end in about 45 minutes. Some loops add a general software system design round on top.
Behavioral round
The behavioral round checks how you work with people and own a result. Prepare about five short stories from real work or study, and practise telling each one in two minutes with a concrete outcome at the end.
Some processes also include a take-home assignment, where you build a small model on a dataset over a few days and then discuss it in a later round. The ML take-home assignment guide covers how to scope and present one.
How is the ML coding round different from a LeetCode round?
The ML coding round asks you to turn maths into working numerical code, while a LeetCode round asks you to find an efficient algorithm for a puzzle. In an ML coding round the hard parts are shapes, broadcasting, numerical stability and gradients, and a solution that is algorithmically simple can still fail on an overflow or a silent shape bug.
Prepare by implementing each core model and metric from a blank file, testing it on awkward inputs, and solving it again a few days later without notes. Start with linear regression, a logistic regression training loop and the assignment and centroid update steps of k-means. Then build a small network by writing a linear layer forward pass, backpropagation through a neuron and a mini-batch generator, because that is exactly what a from-scratch NumPy question asks for.
Keep a short error log of every bug you hit, such as a softmax that overflows or a shape that broadcasts silently, and run it as a checklist before saying you are done. The Cracking ML plan collects 35 of these implementation problems in a sensible order. For a fuller comparison of the two kinds of practice, read LeetCode for machine learning, and for a longer list of prompts, see the ML coding interview questions guide.
Which ML fundamentals questions should you be ready to answer?
You should be ready to explain why a method works and when it fails, because interviewers follow every definition with a question about trade-offs. These are some of the questions that come up most often, each with a short answer and a problem where you can build the idea yourself.
What is the bias-variance tradeoff?
Bias is the error a model makes because it is too simple to capture the pattern, and variance is the error it makes because it is flexible enough to fit noise. Regularization and more data reduce variance, while richer features and larger models reduce bias, so a useful answer explains which one your model is suffering from and how you would tell. In Ridge regression you implement the penalty that accepts a little more bias in exchange for lower variance.
Why is cross-entropy used instead of mean squared error for classification?
With a sigmoid or softmax output, cross-entropy produces a gradient equal to the prediction minus the target, so a confident wrong answer still gets a large correction, whereas the gradient of squared error shrinks towards zero as the output saturates. The cross-entropy lesson plots both gradients, and you can implement the loss in Cross-Entropy Loss.
How would you handle a heavily imbalanced dataset?
Fix the metric before touching the model, because accuracy hides a rare class, and report precision, recall and average precision instead. Then try class weights or resampling, keep the class ratio stable across splits, and tune the decision threshold on validation data. Accuracy, precision, recall and F1 and stratified splitting cover both halves of the answer.
What is data leakage, and how do you prevent it?
Leakage happens when training uses information that would not exist at prediction time, such as scaling the whole dataset before splitting or using a feature recorded after the outcome. The fix is to split first, fit every preprocessing step on the training fold alone, and split by time whenever the data has an order, which you can practise in K-fold split.
Why does attention divide the scores by the square root of the key dimension?
Dot products between random vectors grow with their length, and large scores push softmax towards a one-hot output with almost no gradient, so dividing by the square root of the key dimension keeps the scores at a stable scale during training. You can check this numerically in scaled dot-product attention, and the attention lesson shows it step by step.
How should you structure an ML system design answer?
Structure an ML system design answer by following one fixed order and spending your time against a budget. Clarify the goal and constraints, turn them into a learning task with a metric, work out where the data and labels come from, start with a simple baseline, and only then discuss the model, serving and monitoring.
For a 45-minute session, a useful rehearsal budget is about five minutes on scope, ten on the learning task and data, fifteen on the main design, ten on evaluation and operational trade-offs, and five for further discussion. Practising with a budget stops you from spending thirty minutes on the model and never reaching monitoring.
Interviewers mostly judge whether you define the metric before the model, whether you connect the offline metric to the business outcome, and whether you notice failure modes such as training and serving skew or a feedback loop. The ML System Design section explains each stage, and its interview approach page covers the rehearsal flow in more detail.
How do you prepare for an ML engineer interview in eight weeks?
Prepare in eight weeks by splitting the time into four two-week blocks, each built around the rounds above, at about 10 to 15 hours a week. The first block finds your gaps, the second builds implementation skill, the third covers deep learning and system design, and the last turns everything into timed practice.
The grid shows how much weight each track gets in each week. Each topic comes back across several weeks, because returning to an idea after a gap is what makes it stick. If you already have strong fundamentals, the same plan compresses to about six weeks.
Your training block, week by week
10 to 15 hours a week
| Track | W1 | W2 | W3 | W4 | W5 | W6 | W7 | W8 |
|---|---|---|---|---|---|---|---|---|
steady | steady | light | light | light | light | light | light | |
light | steady | heavy | heavy | steady | light | light | light | |
heavy | heavy | steady | light | light | light | light | light | |
rest | rest | light | steady | heavy | heavy | light | light | |
rest | rest | rest | light | steady | heavy | heavy | steady | |
rest | light | rest | light | light | steady | steady | steady | |
steady | rest | rest | light | rest | light | heavy | heavy |
As a software engineer moving into ML, plan on about eight weeks, with the most time on ML coding and fundamentals.
ML coding. Write models, losses and metrics from a blank file, then write them again a few days later. Start with Logistic Regression Training Loop.
Weeks 1 and 2 set a baseline and refresh the fundamentals
Start with a timed run of the free ML Engineer Mock Interview, which mixes Python, ML coding, data wrangling, evaluation metrics and statistics, and use the report to rank your weak areas. Spend the rest of the block on fundamentals and the maths under them, using the free ML Math lessons for gaps in linear algebra, probability or calculus. Warm up with small numerical tasks such as a numerically stable softmax, and keep a short daily set of algorithm problems running in the background.
Weeks 3 and 4 build models and metrics from scratch
This block carries the most hours in the plan. Implement linear and logistic regression, k-means, a decision tree split and the main evaluation metrics, then repeat each one a few days later without looking at your first attempt. Add cross-validation splits and classification metrics, because the follow-up questions in an ML coding round usually move from the model to how you would evaluate it. Finish with the free 30-minute Activations, Losses, and Optimizers mock to check your speed.
Weeks 5 and 6 cover deep learning, LLMs and system design
Move on to neural networks, writing a forward pass, backpropagation, normalization layers and an optimizer step by hand, and then cover attention and language model basics with LLM Internals and problems such as causal masking. In parallel, start system design practice with one full design per session against the 45-minute budget. Write your two project stories during this block, so you have time to rehearse them.
Weeks 7 and 8 turn preparation into timed practice
The last block is mostly rehearsal. Retake the ML Engineer Mock Interview and compare the report with your first attempt, run two or three full system design sessions out loud, and tell your behavioral and project stories to a friend or a recording. Spend the remaining hours on the weakest areas from your mocks, and keep the last two days before the loop light so you arrive rested.
What if you have less than eight weeks?
With less than eight weeks, keep the order of the plan and shorten each block, starting with the areas your baseline mock shows you already know. Your starting point decides how much you can safely cut, and the table is a guide you should adjust once your first few practice problems show where your real gaps are.
| Your starting point | Typical time | Spend most of it on | Where to start |
|---|---|---|---|
| Software engineer moving into ML | Eight weeks | Fundamentals, evaluation and from-scratch models | Cracking ML |
| Data scientist moving into ML engineering | About six weeks | Deep learning, production reasoning and system design | Cracking Deep Learning |
| Recent graduate with ML coursework | About six weeks | Implementation speed, projects and timed practice | Mock assessments |
| Working ML engineer changing jobs | Two to four weeks | System design, the target domain and weak spots | ML System Design |
With four weeks, give one week each to fundamentals with from-scratch coding, to deep learning, to system design and to mocks, at closer to 15 to 20 hours a week. With two weeks, take the baseline mock on the first day, spend the first week on the two or three weakest areas it shows, and spend the second week on full timed practice. In both cases, keep a little algorithm practice going every day and drop topics the job description never mentions.
Read the job description before planning your weeks, and if it mentions experiments or analytics, add time on statistics and sampling, which the Probability and Statistics plan covers.
How do you talk about your own ML project in an interview?
Talk about your own project as a sequence of decisions, each with the reason you made it and what happened next. For each of two projects, write down the problem, the metric you chose and why, the baseline you compared against, one decision you would reverse with hindsight, and what you would do next with more time.
Interviewers dig into the parts only the person who built it would know, such as why you picked that metric or how you knew the model was not leaking, and calm answers to those count for more than the size of the project. If you need a project to talk about, the guided projects take you through building systems such as a RAG assistant end to end, and the guide on how to explain an ML project in an interview goes further on structure.
How do you know you are ready for the interview?
You are ready when you can do the following without notes and within a time limit, because those are the conditions the interview will put you in.
- Write logistic regression and a two-layer neural network from a blank file, including the gradients, in under 45 minutes each.
- Explain bias and variance, regularization, the main loss functions and the main metrics, each with a case where it misleads.
- Spot data leakage in a described pipeline and say how you would fix the split.
- Talk through an end-to-end system design in about 40 minutes, stating the metric before the model.
- Walk through two of your own projects, including a decision you would change.
TensorTonic's mock assessments are timed and scored with a report at the end, which makes them a practical way to check this list before the real interview. The ML Engineer Mock Interview is free, and the ML mock interview guide explains how to use mocks to judge your readiness. It also helps to read about the mistakes that lose ML interviews before your loop.
Practice this
- Logistic Regression Training Loop has you train a classifier with gradient descent in NumPy from a blank file.
- Implement Numerically Stable Softmax has you fix the overflow bug that catches many candidates.
- Stratified Train/Test Split has you build a split that keeps class ratios and avoids leakage.
- Detect Train-Serving Skew has you catch a failure mode that system design interviewers ask about.
How many rounds are in an ML engineer interview?
Candidates commonly report six to eight rounds in total. A recruiter call and a technical screen usually come first, followed by a loop of four to six interviews covering general coding, ML coding, ML fundamentals, ML system design, a project deep dive and a behavioral conversation.
How long should I prepare for an ML engineer interview?
Most candidates need between two and eight weeks at 10 to 15 hours a week. A software engineer moving into ML usually needs the full eight weeks, a data scientist or recent graduate around six, and a working ML engineer changing jobs two to four.
Do ML engineer interviews include LeetCode-style questions?
Many of them do. Candidates commonly report at least one general coding round with data structures and algorithms at a medium level, alongside a separate ML coding round where you implement a model, loss or metric from scratch. Short daily practice is enough to keep the general round under control.
What is the difference between ML breadth and ML depth interviews?
A breadth interview asks short questions across many topics, such as regularization, metrics and optimizers, to check that you have no large gaps. A depth interview stays on one area, usually your own project or specialty, and keeps asking why until it reaches the edge of what you know.
Do I need to know LLMs and transformers for an ML engineer interview?
You should know the basics even for roles outside language modelling. Expect to explain attention, why scores are scaled, how a model generates tokens and how fine-tuning differs from training from scratch, because these topics now appear in many fundamentals and system design rounds.
Related guides
- ML coding interview questions
- ML mock interviews and how to check you are ready
- ML engineer vs data scientist
- Best ML interview prep platforms in 2026
- LeetCode for machine learning
- Why bother learning machine learning from scratch?
- How to prepare for a data scientist interview, round by round
- LLM interview questions and answers, grouped by topic
- Deep learning interview questions and how to answer them
- Machine learning interview questions and how to answer them
- How to prepare for a research engineer interview, round by round
- AI engineer interview questions and answers, grouped by topic