Questions

150 questions
  • +4
    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
  • +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).
    Last asked Nov 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.
    Last asked Sep 2026
  • 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
  • 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
  • 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
  • +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…
    Last asked Sep 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
  • 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…
    Last asked Aug 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
  • 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
  • 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
  • +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:…
    Last asked May 2026
  • 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
  • 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
  • +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
  • 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
  • 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
  • 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…
    Last asked Feb 2026
  • 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…
    Last asked Feb 2026
  • 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
  • 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
  • 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
  • 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…
    Last asked Jan 2026