← Notes

ML foundations and AI interview prep

Contents

This study guide covers machine learning (ML) and artificial intelligence (AI) interviews. Try the first practice session, then pick the topic your interview calls for. Spend more time on data splits and evaluation for data science, system design for applied ML engineering, and implementation and debugging for research engineering or large language model (LLM) roles.

A 45-minute first pass

  1. Explain a model for 15 minutes. Spend one minute explaining how you would spot overfitting and what you would check next. Read the answer after you finish. MLQuestions on overfitting and underfitting
  2. Write code for 20 minutes. Implement softmax from scratch. Test it on large inputs, then add the same constant to every score and check that the output stays the same. Deep-ML softmax exercise
  3. Spend 10 minutes on a follow-up. For classic ML, explain how raising a threshold changes false positives and false negatives. For language models, sketch which tokens each position can see through a causal mask. Precision vs. recall · GPT causal mask code

ML foundations: explain the choice

ML coding: from NumPy to a Transformer

ML system design: put the model in a product

Interview follow-up Offline ranking improves and the live click rate stays flat. Which check would you start with among experiment assignment, retrieval coverage, and serving latency? Explain what it could rule out.

Language models and AI engineering: pick a specialty

Model internals and training

Retrieval and agents

Inference and post-training

More questions and practice