← All Series
Interview Series

Coding & Debugging Questions

Hands-on PyTorch formats: silent-bug hunts, operator build-and-trace, production incident triage, and the three-phase AI-assisted round. Every fix ships verified code and a runnable test.

Bug HuntBuild & TraceIncident TriageAI-Assisted
114 questions
Build & Trace 51Bug Hunt 29Incident Triage 18AI-Assisted 16
Three debugging symptom panels: stalling train loss, climbing GPU memory, and inconsistent validation loss

All Questions

IDTitleCompaniesTopicsFormatLevel
CD0001Debug PyTorch Training Loop
Mode A · Bug Hunt 30 Min PyTorch 2.x 4 Silent Bugs Meta’s PyTorch org maintains the training stack behind its ranking and recommendation models, an
Meta, Oracle, AmazonLoss, NN, ValidationBug HuntMedium
CD0002Debug Causal Attention Mask
Mode A · Bug Hunt 30 Min PyTorch 2.x · FP16 4 Masking Bugs OpenAI’s serving stack runs batched causal attention over left-padded, variable-l
OpenAI, Meta, GoogleLLM, Stats, TransformerBug HuntMedium
CD0003Multi-Head Attention From Scratch
Mode B · Build & Trace 30 Min PyTorch 2.x 4 Tensor Blanks Anthropic's model teams build the transformer blocks behind Claude from first principles, a
Anthropic, DeepSeek, CohereLLM, Stats, TransformerBuild & TraceHard
CD0004Rotary Position Embedding Implementation
Mode B · Build & Trace 30 Min PyTorch 2.x · FP32/BF16 4 Tensor Blanks Meta's GenAI org develops the Llama model family, whose rotary position
Meta, LGLLM, Transformer, ValidationBuild & TraceHard
CD0005Pretraining NaN Loss Spike Triage
Mode C · Incident Triage 30 Min 256x H100 · FSDP · BF16 5 Telemetry Clues Google DeepMind’s training infrastructure team owns the rel
Google DeepMind, Moonshot AI, MetaLLM, Loss, MLOpsIncident TriageHard
CD0006AI-Assisted KV Cache GQAMeta, Anthropic, DeepSeekLLM, Stats, TransformerAI-AssistedHard
CD0007Debug QA Data Pipeline
Mode A · Bug Hunt 30 Min Python 3.10 · json + csv 4 Silent Bugs Scale AI’s annotation pipelines turn human-labeled tasks into training data
Scale AI, Meta, GoogleData Eng, LLM, MLOpsBug HuntHard
CD0008Debug Eval Metrics Script
Mode A · Bug Hunt 30 Min Python 3 (stdlib only) 4 Silent Bugs In a Google code-comprehension round, the interviewer shares a 42-line pure-Python scorer t
Google, Amazon, MicrosoftData Eng, Metrics, ValidationBug HuntMedium
CD0009Logistic Regression From Scratch
Mode B · Build & Trace 30 Min NumPy Only 4 Operation Blanks Waymo’s driving-log triage team scores each recorded segment with a small calibrate
Waymo, Google, AmazonBasics, Loss, VLMBuild & TraceHard
CD0010K-Means From Scratch
Mode B · Build & Trace 30 Min NumPy 4 Array Blanks Clustering prototypes show up constantly on Google and Waymo ML teams, and this screen (reported b
Google, Waymo, MetaBasics, Data Eng, K-MeansBuild & TraceHard
CD0011Linear Regression Closed Form
Mode B · Build & Trace 30 Min NumPy 1.24+ 4 Linear-Algebra Blanks Amazon’s delivery-time estimation team keeps its baseline deliberately boring
Amazon, Google, CohereBasics, Fit, ValidationBuild & TraceEasy
CD0012Debug Extra Trees
Mode A · Bug Hunt 30 Min Python 3 + NumPy 4 Silent Bugs Anthropic’s evaluation tooling keeps repair tasks dependency-free: a 45-line pure NumPy imp
Anthropic, Google, MicrosoftFit, Trees, ValidationBug HuntMedium
CD0013KNN Array Query
Mode B · Build & Trace 30 Min NumPy 4 Array Blanks A Google data-quality job runs two measurement pipelines that log integer readings of the same qua
Google, MicrosoftBasics, Data Eng, KNNBuild & TraceEasy
CD0014Masked Self-AttentionMicrosoft, ByteDance/TikTok, AnthropicNN, Stats, TransformerBuild & TraceHard
CD0015Debug Left-Padded LM Loss
Mode A · Bug Hunt 30 Min PyTorch 2.x 4 Silent Bugs On an OpenAI supervised fine-tuning pipeline, the data collator left-pads variable-length chat transcr
OpenAI, Perplexity, OracleData Eng, LLM, LossBug HuntHard
CD0016Debug Classifier Tests
Mode A · Bug Hunt 30 Min PyTorch 2.x 4 Silent Bugs An OpenAI intent-classification service runs on a teammate’s 40-line PyTorch wrapper, TextClassi
OpenAI, Hugging Face, GoogleData Eng, Transformer, ValidationBug HuntEasy
CD0017Log Forensics TriageHudson River Trading, BMW, GoogleData Eng, Infra, MLOpsIncident TriageHard
CD0018Slow Pipeline Triage
Mode C · Incident Triage 30 Min Spark SQL · Delta Lake 5 Telemetry Clues A data-ML team on Databricks runs a nightly job, nightly_features, that b
Databricks, Google, MetaBasics, Data Eng, MLOpsIncident TriageHard
CD0019AI-Assisted Tokenizer Fix
Mode D · AI-Assisted 60 Min Python 3.10+ 1 Warm-Up Bug + 3 AI Flaws Inside Meta’s text-preprocessing layer in front of a byte-level text classifier
Meta, Hugging Face, AppleLLM, Transformer, ValidationAI-AssistedMedium
CD0020AI Code Comprehension
Mode D · AI-Assisted 60 Min NumPy · Python 3 3 Phases · 3 AI Flaws Picture a retrieval-evaluation codebase on a Google team. An offline har
Google, Meta, AmazonLLM, Metrics, RetrievalAI-AssistedMedium

Search all questions → Browse companies →

Unlock the full answers.

Playbooks, deep dives, follow-up probes, and scorecards are member content.

Get Started — It’s Free