Implement multi-head self-attention from scratchAI/ML designWrite masked multi-head self-attention from scratch, the layer at the core of a Transformer. Given a batch of token embeddings, project them to queries, keys and values, split…
Last asked Nov 2026
Predict the speedup from porting a CPU application to GPUAI/ML designA team that builds GPU-accelerated data science libraries (the RAPIDS family) wants a model that says, for an application running on CPU today, how many times faster it would run…
Last asked Nov 2026
+7
ML fundamentals deep dive for ML rolesAI/ML designAfter a short walk through your resume, expect a fast run of questions on machine learning basics, usually centred on your own area (language models, vision, recommendations).
A model about to ship regressed on safety evalsAI/ML designA new version of a model is days from release. It beats the current model on capability benchmarks, but its scores on the safety evaluation suite went down.
Locate a point light source from photon hits on a line by MLEAI/ML designA point light sits at an unknown position (px, py) with py > 0, above a detector that is the line y = 0. It emits photons in uniformly random directions; each one heading down…
Last asked Oct 2026
Design a pipeline around embedding and classification servicesAI/ML designDesign an API that turns text into embeddings and, optionally, classifies it with classifiers built on those embeddings. Product teams call it interactively (one or a few texts…
Last asked Oct 2026
Train a model to extract highlight snippets from textAI/ML designYou get a dataset of text sections, each with the snippet that should be highlighted and that snippet's start and end positions in the text. The data is split into training…
Last asked Oct 2026
Design a work-together distance between two employeesAI/ML designDesign a "people distance" d(u1, u2) between any two employees of a company that measures how much they work together: the smaller the distance, the closer the working…
Last asked Sep 2026
+2
Transformer and attention fundamentalsAI/ML designA conceptual deep dive on transformers, asked of ML candidates. Explain how a transformer works from the inside, deriving the parts on a whiteboard rather than naming them.
Research engineering training discussionAI/ML designA research engineering discussion in two stages. First: how would you train a language-model agent to do well on long-context, long-horizon tasks, where it has to work through a…
Last asked Sep 2026
Post-train a 7B model to code better for one enterpriseAI/ML designOne enterprise customer wants a 7-billion-parameter model that writes better code for them. Design the post-training pipeline end to end: data collection, supervised fine-tuning…
Last asked Sep 2026
Make an LLM recognize questions past its training cutoffAI/ML designAsk an older chat assistant about something recent and it may say its training data stops at some date, so it cannot answer. You are building a large language model.
Last asked Sep 2026
Defend your own research paper under hard questionsAI/ML designYou present one of your own published papers to an interviewer who has already read it closely. They may skip your slides altogether and go straight at its weak points.
ML design for retrieval: embeddings, hybrid search and rankingAI/ML designDesign the machine learning behind the retrieval stage of a question-answering system over a large document collection, for example a company's internal documents. Given a user's…
Last asked Sep 2026
Matmul performance modeling on a fixed GPUAI/ML designEstimate wall-clock time for matrix multiplications of varying shapes on a given accelerator from arithmetic intensity and memory movement, then extend the model to a multi-layer…
Last asked Sep 2026
+1
Design a harmful content detection systemAI/ML designDesign a system that detects harmful posts on a large social platform: hate speech, violence, self-harm, nudity, terrorism, spam and similar categories. Posts are text plus…
Last asked Sep 2026
Design an ICD-10 code suggestion system for clinical notesAI/ML designAfter a patient visit, a hospital's coders assign ICD-10 diagnosis codes from the clinical record, and those codes drive billing. Design a system that reads a finished clinical…
Last asked Sep 2026
Predict click-through rate for music recommendationsAI/ML designDesign a machine learning system that predicts the probability that a user clicks a song the recommender shows them. Given a user, a candidate song and the context of the…
Components of an LLM agent's memoryAI/ML designWhat are the common components of an LLM agent's memory? For each one, explain what it stores, how information gets written into it, and how it is read back.
Last asked Sep 2026
How data collection shapes model performanceAI/ML designPick a project from your resume and explain the data side of it: how the data was collected and how it was processed, from the sources to what the model trained on.
Last asked Sep 2026
Decoder-only LLM architecture and how vLLM serves itAI/ML designTwo parts, asked conversationally at a whiteboard. First explain how a modern decoder-only transformer turns a prompt into a probability distribution over the next token.
Last asked Sep 2026
+3
Design a personalized search ranking systemAI/ML designDesign the ranking for a marketplace's search results, personalized for each user, so they find and book (or order) what they want. The query may be text (a restaurant or dish…
Predict employee attrition and explain what drives itAI/ML designYou get a tab-separated HR file with one row per employee: columns such as Age, JobRole, MonthlyIncome and OverTime, and a label Attrition (Yes or No) saying whether the person…
Last asked Aug 2026
Choose storage tiers from predicted file accessAI/ML designA cloud storage service keeps each user file in one of several tiers: a hot tier that is fast to read but costs more per GB-month, and archive tiers (in the style of S3 versus…
Last asked Aug 2026
Forecast storage demand across data centersAI/ML designForecast daily storage demand for a data center so capacity can be bought ahead of time. Start with one site, then scale the approach to about 100 data centers, including new…
Last asked Aug 2026
Design watch-next video recommendations and derive the lossesAI/ML designDesign the "watch next" list for a large video platform: while someone watches a video, the system picks and orders the videos to offer next. The round goes deep on modeling.
Roofline analysis of a BF16 MLP layerAI/ML designDo a roofline analysis of one BF16 layer: Y = GELU(X·W + bias) + residual, where X is B × 4096, W is 4096 × 4096, and bias and residual match the output shape. Count the…
Last asked Aug 2026
Where to apply ML in a task marketplace for driversAI/ML designA platform lets customers post tasks that drivers on the platform carry out. A customer submits a task, a driver accepts and completes it, and the driver uploads evidence that it…
Review a compact GPT-style transformer implementationAI/ML designYou are handed a short implementation of a GPT-style, decoder-only transformer: token and position embeddings, a stack of blocks with causal multi-head self-attention and a…
Last asked Jul 2026
Design a large-scale recommendation system end to endAI/ML designDesign a recommendation system from scratch. When a user opens a surface (a home feed, say), it picks a short, ordered list of items out of a very large catalog that changes all…
Last asked Jul 2026
Rapid-fire questions on LLM internalsAI/ML designA fast round of short questions on how LLM systems work: model internals, inference and serving behavior, evaluation, data handling, and the trade-offs of running models in…
Last asked Jul 2026
LLM foundations: architecture, adaptation and steeringAI/ML designA broad technical conversation about large language models, in three parts: how the architecture works, how to adapt a pretrained model to a task, and how to steer its behaviour.
Last asked Jun 2026
Design a recommender for local sports teams and newsAI/ML designRecommend local sports teams, and fresh news about them, to each user, and give a short summary of each recommended story grounded in the articles retrieved for it.
Last asked Jun 2026
GRPO deep dive for a reasoning LLMAI/ML designA deep dive on reinforcement learning for a reasoning language model. Explain GRPO (Group Relative Policy Optimization) and why it can drop the critic that PPO uses.
Last asked Jun 2026
Tokenizer design and KL-regularized fine-tuningAI/ML designTwo language model fundamentals, discussed in depth. First, how you would design a tokenizer for a large language model and the trade-offs involved.
Last asked Jun 2026
Evaluate noisy data for LLM post-trainingAI/ML designYou have collected data to post-train a language model (instruction-following examples or preference pairs, for example), and you know some of it is noisy: wrong labels, poor…
Last asked May 2026
Mine new information from a huge unlabeled image corpusAI/ML designYou have a huge, growing corpus of unlabeled images (on the order of 10^8 to 10^9). Design a system that surfaces a small, ranked, deduplicated stream of images unlike anything…
Last asked May 2026
+4
Design a payment fraud detection systemAI/ML designDesign the machine learning system that scores every card payment for fraud on a large payments platform. Each transaction gets a decision before or right after authorization:…
Design candidate search for a talent marketplaceAI/ML designDesign the candidate search for a talent marketplace. A company enters a query or pastes a job description, and the system returns the candidates who meet its hard requirements…
Last asked May 2026
Semantic search with user embeddingsAI/ML designDesign two-stage retrieval and ranking for a short-term rental marketplace that uses embeddings of users and of listings. The goal is to show the listings a user is most likely to…
Last asked Apr 2026
Design a family-friendly listing ranking systemAI/ML designOn a home-rental marketplace, guests traveling with children want places suited to families: enough beds, a crib or high chair, safety features, a quiet area, space to play…
Last asked Apr 2026
Mechanistic interpretability experiment on double descentAI/ML designDesign and run a small-model experiment reproducing sample-aspect double descent, explain the phenomenon from theory, and propose a remedy. The deliverable is the experiment plus…
Last asked Apr 2026
Multitask regression with targets on different scalesAI/ML designYou train one model with a shared representation and two regression heads. Every example has two continuous labels: target A is never positive (a loss, for example), ranging from…
Last asked Apr 2026
ML configuration system with inheritance and validationAI/ML designDesign and partly implement an ML configuration system covering schemas, inheritance and overrides, validation, and reproducibility. python file=solution.py class Field: def…
Last asked Apr 2026
+5
Design a feed recommendation systemAI/ML designRank the items in each user's home feed so they engage more. Candidates number in the millions, and the feed must load within a couple of hundred milliseconds. - Functional: for…
Last asked Apr 2026
Design a real-time sensor intelligence systemAI/ML designDesign an end-to-end real-time sensor intelligence system for a product team. The product runs continuously on a resource-constrained device and must turn live sensor streams into…
Last asked Apr 2026
Defend your research direction and an experiment designAI/ML designA research discussion in two parts, for a research-leaning ML engineering role. The interviewers are experts in your area and will keep asking "why" and "how" until a claim either…
Last asked Apr 2026
CLIP contrastive loss for image-text pairsAI/ML designImplement the symmetric contrastive loss used to train CLIP-style models that align images and text. You get a minibatch of paired embeddings: the i-th image matches the i-th…
Last asked Apr 2026
Cold start in ranking systemsAI/ML designA ranking system (a feed, a store, search results) learns mostly from interactions: clicks, views, purchases. How do you rank items that are brand new and have no interactions…
Last asked Mar 2026
Design a drop-off spot selector for a robotaxiAI/ML designDesign the ML system that chooses exactly where a robotaxi stops to let its passenger out near the destination. It must pick a spot that is safe and legal, convenient for the…
Last asked Mar 2026
Design a nearby places recommendation systemAI/ML designDesign the ML system for a maps or local-discovery product that recommends places a user may want to visit: restaurants, cafes, parks, shops and attractions. Suggestions are…
Last asked Mar 2026
Design quality checks for spreadsheet data used to train an LLMAI/ML designYou are building training and evaluation data from spreadsheets for a language model that answers questions about tables, writes formulas, or transforms sheets. Design the checks…
Last asked Mar 2026
Debug a GRPO training script and defend the RL mathAI/ML designBelow is a small group relative policy optimization (GRPO) trainer in plain Python. The policy is a table of logits per prompt, and the reward is the share of tokens that match…
Last asked Mar 2026
Dataset size, generalization and U-Net skip connectionsAI/ML designA set of machine learning fundamentals questions for a vision role: how training set size affects generalization, how you would plan modeling end to end, how the loss function…
Last asked Mar 2026
Deep and Cross Network v1 versus v2, and A/B testing itAI/ML designYou work on a ranking model for ads or recommendations that predicts click or conversion rates. Explain how the Deep and Cross Network (DCN) models feature interactions, what…
Last asked Mar 2026
Design a cost-per-action bidding system for adsAI/ML designAdvertisers pay for actions such as app installs or purchases, not for clicks, and each sets a target cost per action (CPA) and a budget. Design the system that bids for them in…
Last asked Mar 2026
Analyze the failures of a vision modelAI/ML designYou work on a computer vision product. The discussion has three parts: the machine learning fundamentals that matter most in vision, a short probability question, and how you…
Last asked Mar 2026
Write and speed up an image filter for on-device useAI/ML designYou are shipping an image filter that must run entirely on a phone. Write the filter (for example a blur or other convolution over the pixels), then make it fast: the live preview…
Last asked Mar 2026
Design a short-video recommendation systemAI/ML designDesign the recommendation system behind a short-video feed. Users swipe through full-screen videos one at a time, each a few seconds to a minute long, and the system picks the…
Last asked Feb 2026
Design an ML platform portalAI/ML designDesign the web portal through which machine learning engineers use the company's ML platform: tracking experiments, registering and versioning models, promoting and deploying…
Last asked Feb 2026
QKV attention programming with einsum fluencyAI/ML designA short programming screen around sequence models and scaled dot-product attention, plus quick ML knowledge questions. Reading equations and expressing the math with einsum-style…
Last asked Feb 2026
Audio preprocessing and model training choicesAI/ML designYou are building an audio model for a voice assistant, such as wake-word detection or speech recognition. Compare the common ways to preprocess audio and their trade-offs, then…
Last asked Feb 2026
Self-contained ML take-home with live reviewAI/ML designA few-hour modeling problem you solve alone on your own machine, followed by a live review: you present your results, code and trade-offs, and the interviewers ask questions…
Last asked Feb 2026
Modeling other agents in a driving simulatorAI/ML designYou are building a driving simulator to train and evaluate an autonomous-driving planner or RL agent. Besides the ego vehicle, the simulator must contain other road users: cars…
Design an image copyright-violation detection systemAI/ML designDesign a system that detects when users of a large social platform upload images that infringe someone's copyright. Rights holders register images they own, and every new upload…
Last asked Feb 2026
LLM fine-tuning and generative modelsAI/ML designExplain how you would adapt a pretrained large language model to a new task or domain, and compare the main families of generative models. The interviewer wants the objectives…
Clean OCR output into a training dataset for an LLMAI/ML designYou have a large amount of text produced by OCR from scanned documents: broken words, misread characters, page headers and footers mixed into the text, columns read in the wrong…
Last asked Feb 2026
Design a video vision-language model end to endAI/ML designDesign a model that understands video and answers questions about it in natural language: describe what happens, find when something occurs, answer questions that need many…
Last asked Feb 2026
Design app recommendations for an app storeAI/ML designDesign the system that recommends apps to each user on an app store: a personalized home feed of apps to install, and "you might also like" lists on app pages. Hundreds of…
Last asked Feb 2026
Derive the least-squares solution for linear regressionAI/ML designDerive the closed-form solution of ordinary least-squares linear regression, starting from the one-dimensional case y ≈ w x + b with the mean squared error loss, and explain each…
Last asked Feb 2026
Design an online experimentAI/ML designDesign an online experiment (an A/B test) to decide whether a change to a production ML system, such as a new ranking model, should launch. Take it from the question you want…
Last asked Feb 2026
Prompt design with evaluation scaffoldingAI/ML designIn a notebook, design prompts for a defined task and write the surrounding scaffolding that evaluates them. The exercise tests task framing and measurement more than clever…
Last asked Jan 2026
Design a model inference pipelineAI/ML designDesign a production inference pipeline for a trained model that serves predictions to downstream applications. Treat it as ML infrastructure: how online requests come in and reach…
Last asked Jan 2026
Design a notification ranking systemAI/ML designDesign a ranking system for notifications. Candidate notifications for a user come from many sources: new product announcements, friends' activity, advertisers' messages and more…
Last asked Jan 2026
Design an ads ranking system with calibrated predictionsAI/ML designDesign the system that ranks ads for a user on a large social platform. For each ad request, it predicts the probability of a click and of a conversion for each candidate ad…
Last asked Jan 2026
Shard an LLM's embedding table and LM head across devicesAI/ML designA language model's two vocabulary-sized layers no longer fit on one device: the input embedding table V, H and the output layer (the LM head) H, V. Split each across P devices…
Last asked Jan 2026
MLP tensor shapes and PyTorch broadcastingAI/ML designGiven a small multi-layer perceptron and a batch of inputs, write down the shape of every tensor in the forward and backward pass, then explain PyTorch's broadcasting rules and…
Last asked Jan 2026
Reward-model RLHF versus direct preference optimizationAI/ML designCompare two ways of aligning a language model with human preferences, starting from a supervised fine-tuned (SFT) model: the classic RLHF pipeline with a reward model and PPO, and…
Last asked Jan 2026
Infer a user's intent from their typing in real timeAI/ML designAs a user types into an assistant or a search box, predict what they are trying to do (search a file, draft an email, ask a question, run a command) so the product can respond…
Last asked Jan 2026
Debug a model that does worse online than offlineAI/ML designA model scored well in offline evaluation, but after launch its online metrics are worse than the model it replaced, or worse than offline numbers predicted. Walk through how you…
Last asked Jan 2026
Design photo and listing quality modelsAI/ML designDesign machine learning models for a rental marketplace that judge photo quality and overall listing quality. Uses include choosing the best cover photo for each listing…