75Walk through GRPO's implementation: group sampling, advantage normalization, and the failure modes you watch for.▼expertGoogle DeepMindOpenAIMistral2 replies◆ premiumGRPO drops the value model and estimates advantage from a group of samples per prompt. The signal is the exact mechanics, why the group baseline works, and the normalization traps that silently bias training.Open full answer →
87What is Multi-head Latent Attention (MLA), and how does it differ from MQA and GQA?▼expertDeepSeekNVIDIAMistral1 replies◆ premiumMQA and GQA cut the KV cache by sharing key/value heads. MLA goes another way: compress K and V into a low-rank latent and cache that instead. What matters is recognizing it as a cache trick rather than a head-sharing trick, and why it preserves quality.Open full answer →
89How do RoPE scaling methods (position interpolation, NTK, YaRN) extend a model's context window?▼expertMetaMistralNVIDIA1 replies◆ premiumA model trained at 4K tokens can reach 128K without a full retrain. What matters is understanding why naive extrapolation breaks and how PI, NTK-aware scaling, and YaRN each rescale RoPE frequencies in different ways.Open full answer →
92Compare speculative decoding variants: draft model, Medusa, EAGLE, and lookahead decoding.▼expertNVIDIAGoogle DeepMindMeta2 replies◆ premiumSpeculative decoding accelerates generation, and with the right verification rule it leaves the output distribution untouched. What matters is understanding how draft-model, self-drafting (Medusa/EAGLE), and lookahead approaches differ in where the guesses originate, and which of them are still exact.Open full answer →
96How do you serve a Mixture-of-Experts model efficiently, and what makes expert parallelism hard?▼expertDeepSeekMistralNVIDIA2 replies◆ premiumMoE trims compute but is awkward to serve: experts have to be sharded, tokens routed across devices, and batches balanced. What matters is the all-to-all communication and the load-imbalance problem, not the training story.Open full answer →
98Why does constrained decoding break on token boundaries, and how do you handle the edge cases?▼expertOpenAIMicrosoftHugging Face2 replies◆ premiumGrammar-constrained decoding seems like a solved problem until tokenization stops lining up with the grammar. The signal is the token-vs-character boundary mismatch and how prefix automata and token healing address it.Open full answer →
103Your team merges 50 agent-written PRs a week and review is the bottleneck. Design the review workflow.▼expertGoogleGitHub◆ premiumAgent PR volume scales with compute; human review capacity does not. Most candidates answer 'add an AI reviewer' and miss the real design problem: deciding which changes deserve human judgment at all. Interviewers want a risk-tiered pipeline you would trust in production.Open full answer →
102Implement multi-head attention from scratch with a KV cache for decoding, then extend it to grouped-query attention.▼expertOpenAIAnthropicDatabricks◆ premiumPlain multi-head attention is rarely the whole exercise: the usual extension is to chain it into KV-cached decoding and GQA in one sitting. The locked answer walks the NumPy implementation, the equivalence check that proves your cache is correct, and the reshape bugs that silently corrupt attention.Open full answer →
49How does a Kafka stream-processing pipeline achieve exactly-once semantics end to end?▼expertDatabricksSnowflakeGoogle1 replies◆ premiumAt-least-once creates duplicates and at-most-once drops data; everyone asks for exactly-once yet few can explain how Kafka provides it. The signal is idempotent producers, transactional read-process-write, and the read-committed isolation that binds them together.Open full answer →
94Design an agentic workflow platform where users compose LLM agents that call tools and run for minutes.▼expertOpenAIAnthropicMicrosoft1 replies◆ premiumAgents that loop for minutes, invoke tools, and spawn sub-tasks demand durable execution rather than one request handler. See how to checkpoint state, recover after failures, cap runaway loops, and trace every move a non-deterministic agent makes.Open full answer →
97Design a real-time speech translation system (speak in one language, hear another) with low latency.▼expertGoogleMicrosoftMeta2 replies◆ premiumLive speech-to-speech translation is a latency race across three models (recognize, translate, synthesize) as audio keeps streaming in. See the streaming pipeline, how to commit partial results without flip-flopping, and the tradeoff between latency and translation quality.Open full answer →
119Design a multi-tenant cloud IDE that runs untrusted user code in the browser.▼expertOpenAIAnthropicGoogle◆ premiumEvery AI product that runs generated code (notebooks, agents, code interpreters) ends up building this, and the interview turns on two numbers: how strong your isolation is and how fast a session starts. The answer is microVMs plus snapshot restore, and knowing why the VM boot is not the slow part.Open full answer →
48Design the request router and scheduler for a multi-replica LLM serving cluster.▼expertOpenAINVIDIAAWS2 replies◆ premiumRound-robin routing throws away a feature that doubles throughput: cache locality. Designing the router means picking a replica by KV state, not just least-loaded. Here is the two-layer design.Open full answer →
55How do you combine data, tensor, and pipeline parallelism (3D parallelism) to train a 175B model?▼expertNVIDIAMicrosoftMeta1 replies◆ premiumNo single parallelism dimension trains a 175B model by itself. The art is stacking three of them onto the right hardware so the expensive communication stays on the fast links. Here is how to size each axis.Open full answer →
59What makes Mixture-of-Experts models hard to train, and how do you handle routing, load balance, and all-to-all?▼expertGoogle DeepMindMistralMeta1 replies◆ premiumMoE gives you more parameters for the same FLOPs, but the gating network, the load imbalance, and the all-to-all shuffle bring failure modes dense models never see. Here is the training playbook.Open full answer →
60Design the training infrastructure for RLHF/PPO. Why are there four model copies and how do you fit them?▼expertOpenAIAnthropicCohere1 replies◆ premiumRLHF with PPO is not one model training, it is four models in the loop at once, three of them on the GPU during every step. The memory math and the generation bottleneck are what catch people out.Open full answer →
63How does FP8 training work on Hopper GPUs, and how do you keep it numerically stable?▼expertNVIDIAOpenAIMistral1 replies◆ premiumFP8 can nearly double training throughput over BF16, but with only a few mantissa bits the numerics leave no slack. Per-tensor scaling and a selective recipe are what get it to converge.Open full answer →
46How do optimization-based adversarial attacks (GCG suffixes) work against LLMs, and how do you defend?▼expertAnthropicOpenAIGoogle DeepMind1 replies◆ premiumGibberish-looking token strings tacked onto a prompt can reliably break refusals, and they carry over between models. The signal is explaining the gradient search that finds them and why output checks beat input pattern matching.Open full answer →