Practice
1. In the context of LLM serving infrastructure, which component is primarily responsible for reducing latency by reusing previously computed attention outputs?
easy
Solution
Step 1: Identify the component's role.
KV Cache stores key-value pairs from previous computations to avoid redundant calculations.Step 2: Eliminate wrong options.
Batching reduces overhead by processing multiple requests together, not by reusing computations. Speculative Decoding predicts future tokens, not reuse. Load Balancer distributes requests, unrelated to computation reuse.Final Answer:
Option C -> Option CQuick Check:
KV Cache reuses computations to cut latency. [OK]
Hint: KV Cache reuses computations to cut latency. [OK]
Common Mistakes:
2. In a DLRM model for CTR prediction, what is a likely failure mode if the embedding dimension is too small?
medium
Solution
Step 1: Understand the role of embedding dimensions.
Small dimensions may not capture enough feature information.Step 2: Eliminate wrong options.
Overfitting (A) is unlikely with small dimensions. Latency (C) and gradient issues (D) are unrelated to embedding size.Final Answer:
Option B -> Option BQuick Check:
Small embeddings risk underfitting. [OK]
Hint: Small embeddings risk underfitting. [OK]
Common Mistakes:
3. In a visual search system, when should you prefer using an Approximate Nearest Neighbor (ANN) index over an exact search method?
medium
Solution
Step 1: Consider the trade-offs
ANN is preferred when low latency is crucial because it speeds up search at the cost of some accuracy.Step 2: Eliminate wrong options
Exact matches require exact search, small datasets don't benefit much from ANN, and one-dimensional search doesn't need ANN complexity.Final Answer:
Option A -> Option AQuick Check:
ANN for speed, not exactness. [OK]
Hint: ANN for speed, not exactness. [OK]
Common Mistakes:
4. At 10x data scale in a multimodal embedding pipeline, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Analyze the impact of scaling on each component.
Feature Storage is likely to become a bottleneck due to increased data volume.Step 2: Eliminate wrong options.
Data Preprocessing and Model Inference can be parallelized, and Network Bandwidth is less affected by data volume.Final Answer:
Option B -> Option BQuick Check:
Storage struggles with data scale. [OK]
Hint: Storage struggles with data scale. [OK]
Common Mistakes:
5. At 10x data scale in a fine-tuning pipeline using SFT, RLHF, and DPO, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Analyze the impact of scaling on each component
DPO involves handling and optimizing large volumes of data, which can become a bottleneck as data scales.Step 2: Eliminate wrong options
B: SFT scales with model size, not data volume. C: RLHF is more about feedback processing, not data volume. D: Deployment infrastructure is affected by model size, not data volume.Final Answer:
Option A -> Option AQuick Check:
DPO bottlenecks with data scale. [OK]
Hint: DPO bottlenecks with data scale. [OK]
Common Mistakes:
