Machine Learning Engineering · Workspace
Interview prep
What interviews ask, mock interviews to practise on, the design problems from across the course and the numbers worth knowing by heart. 9 interview lessons, 10 design problems, 55 key numbers.
Machine learning engineering interviews9
- Interview skills
ML engineering interviews: what companies test
ML engineering loops mix software rounds with ML rounds, and each one rewards a different kind of preparation. Knowing which round checks what lets you spend limited weeks on the work that gets judged. - Interview skills
Explaining ML concepts clearly in interviews
Most ML interview loops include questions like “What is overfitting?” or “Precision or recall?”. Engineers who know the idea still lose these questions by reciting a definition. The same skill matters at work whenever you explain to a product lead why a model needs another week. - Interview skills
ML coding interviews: implementing from scratch
Some ML engineering interview loops include a round where you implement a model or metric in plain NumPy while someone watches. Code that runs is only part of the answer; the questions, tests and cost reasoning around it decide how the round is scored. - Interview skills
ML system design interviews: a framework
An ML system design round asks for a whole learning system in under an hour: the label, the model, the serving path and the checks after launch. A plan for the time lets you show judgment on every part instead of running out of minutes on one. - Interview skills
Statistics and probability interview questions
Applied scientist loops, and many ML loops in India, ask statistics and probability questions alongside coding and design. A correct number said without its reasoning scores little; the same reasoning decides whether a model’s A/B result is trusted at work. - Interview skills
Take-home ML assignments
Some ML engineering loops send a dataset and a few hours instead of, or as well as, a live coding round. The reviewer sees only what you hand in, so an honest evaluation and a clear write-up decide the result more than the model does. - Interview skills
Common mistakes in ML engineering interviews
Strong engineers often lose ML rounds on the parts of the work around the model, not on the model itself. The same gaps cause real launches to fail, so fixing them helps at work as well as in a loop. - Mock interview
Mock interview: designing a recommendation system
A recommender is one of the most common prompts in an ML system design round, because it tests retrieval, ranking, latency, logging and evaluation at once. Most weak answers name the right boxes and never show how one request moves through them, or what the model learns from. - Mock interview
Mock interview: designing a fraud detection system
Fraud detection is a common ML system design prompt because it tests everything at once: a hard latency limit, rare positives, labels that arrive weeks late and a model that shapes its own data. The same answer, given well, is also how you would build the real system.
Design problems 10
- Module 1 · Machine learning fundamentals
Design: predicting trip times like Uber
Most first ML systems at work look like this one: a number shown to customers, a simple rule already in place, and plenty of logged history. Getting the label, the baseline, the split and the fallback right matters more than the choice of model. - Module 2 · Python for machine learning
Design: exploring a dataset before modeling
A model learns whatever is in the table, including double-written orders, test accounts and labels that call loyal customers leavers. An hour of checks in a fixed order catches these before they turn into a wrong Monday list that nobody can explain. - Module 7 · Classical ML: regression and classification
Design: a churn prediction model for an online store
Most churn models fail before training starts: a label with no date, features that peek past it, or a split that mixes months. Getting those right, then choosing the list size from money, is most of what makes a churn model worth its vouchers. - Module 8 · Unsupervised learning
Design: customer segments for an online store
A clustering in a notebook is a one-off picture. Segments that a growth team plans campaigns on need fixed features, a saved pipeline, names that survive every refit, and a monthly check that they still mean what their names say. - Module 9 · Neural networks
Design: a classifier for product photos
Most image models at work are a pretrained network with a new last layer, trained on labels nobody fully trusts. Knowing how to check those labels, judge every class and send the unsure cases to a person matters more than the network’s architecture. - Module 13 · Tuning and efficient training
Design: training a model on a small budget
Most teams train on GPUs they can lose at any moment: free notebooks, shared machines, cheap cloud capacity that can be taken back. A run that resumes where it stopped, and a plan that spends GPU time only where it changes the model, is what turns that cheap capacity into a model that ships every month. - Module 14 · Deploying ML models
Design: fraud scoring like Stripe Radar
A fraud check sits inside the payment, so every part of serving matters at once: the time limit, fresh features, a written fallback, logged decisions and safe releases. Getting one wrong costs either stolen money or honest customers turned away, often during the busiest hour of the year. - Module 15 · Monitoring and retraining
Design: a retraining pipeline for demand forecasts
A forecast that orders stock is judged a week later, by sales it helped cause. A weekly retrain that learns from sold-out weeks or from a broken column quietly orders less of what customers want. The gate between training and Monday’s order is what keeps an automatic retrain safe. - Module 16 · Recommendation and ranking systems
Design: product recommendations like Amazon
Every recommendation lesson so far built one part. A real row is all of them at once, on one request, within one time budget, while the model retrains every night on what the row itself chose to show. Most failures live in the joins between the parts. - Module 17 · Distributed training and scalable ML systems
Design: training infrastructure for a growing team
Every lesson in this module solved one job’s problem. Once several teams train on the same machines and their models keep growing, those answers become shared decisions: what to buy, how jobs ask for GPUs, where checkpoints go and what happens when a machine dies at 3 am.
Key numbers 55
α = 0.001, β1 = 0.9, β2 = 0.999, ε = 10⁻⁸
Adam paper’s suggested settings
0.25 (25% test, 75% train)
Default test share in train_test_split
100 iterations
Default max_iter in LogisticRegression
5 neighbors (Euclidean distance, equal weights)
Default k in KNeighborsClassifier
sqrt(n_features)
Default features tried per split in RandomForestClassifier
learning_rate 0.1, 100 trees, max_depth 3
Default settings of scikit-learn gradient boosting
eps 0.5, min_samples 5
Default DBSCAN eps and min_samples
eps 1e-5, momentum 0.1
PyTorch BatchNorm default epsilon and momentum
0.5 (probability of zeroing an element)
PyTorch Dropout default p
Keep 0.5 of hidden units; keep 0.8 of input units in the experiments
Dropout paper’s retention probabilities
0.1 (base model)
Dropout rate in the original Transformer
β1 = 0.9, β2 = 0.98, ε = 10⁻⁹
Adam settings in the original Transformer
6 layers, d_model 512, 8 heads of 64, feed-forward width 2,048
Shape of the original base Transformer
65 million (base), 213 million (big)
Parameters in the original Transformer models
12 hours (100,000 steps on 8 P100 GPUs)
Training time of the original base Transformer
12 layers, hidden size 768, 12 heads, 110 million parameters
BERT base
24 layers, hidden size 1,024, 16 heads, 340 million parameters
BERT large
256 sequences of 512 tokens per batch, 1,000,000 steps, learning rate 1e-4, 10,000 warmup steps
BERT pretraining recipe
1.28 million training images, 1,000 classes
ImageNet classification training set
Up to 152 layers; 3.57% top-5 error for the ensemble on the test set
ResNet depth and ImageNet error
16 bytes (2 fp16 weights + 2 fp16 gradients + 12 optimizer states)
Training memory per parameter with mixed-precision Adam
At least 24 GB, against 3 GB for the fp16 weights alone
Training memory for a 1.5B-parameter model
fp16: 1 sign, 5 exponent, 10 mantissa bits. bf16: 1, 8, 7
Bit layout of fp16 and bf16
float8_e4m3fn (1 sign, 4 exponent, 3 mantissa) and float8_e5m2 (1, 5, 2)
The two FP8 formats in PyTorch
float32 32 bits (4 bytes); float16 and bfloat16 16 bits (2 bytes); float8 and int8 8 bits (1 byte)
Bit width of common tensor types
Initial scale 65,536; doubles every 2,000 clean steps; halves on overflow
PyTorch GradScaler defaults
float16 (bfloat16 on CPU)
Default autocast dtype on CUDA
batch_size 1, shuffle False, num_workers 0
PyTorch DataLoader defaults
2,039 GB/s (SXM); 1,935 GB/s (PCIe)
NVIDIA A100 80GB memory bandwidth
8.1 TFLOPS (65 TFLOPS in FP16 mixed precision)
NVIDIA T4 FP32 throughput
At most 12 hours, depending on availability
Free Colab session length
Annex III systems: 2 December 2027. Annex I products: 2 August 2028
EU AI Act high-risk dates