Practice
1. For evaluating an LLM's ability to generate coherent text, which metric is most appropriate?
easy
Solution
Step 1: Identify metrics for text generation
BLEU score measures text generation quality by comparing n-grams.Step 2: Eliminate wrong options
Accuracy, precision, and recall are more suited for classification tasks, not text coherence.Final Answer:
Option C -> Option CQuick Check:
BLEU for text coherence, not classification. [OK]
Hint: BLEU for text coherence, not classification. [OK]
Common Mistakes:
2. In a multimodal system that integrates vision and language models, which component is responsible for aligning the semantic meaning between image features and text embeddings?
easy
Solution
Step 1: Identify the role of each component
The cross-modal attention layer is designed to align and integrate features from different modalities, such as images and text.Step 2: Eliminate wrong options
Image encoder and text encoder process their respective modalities independently. The output classifier is responsible for final predictions, not alignment.Final Answer:
Option A -> Option AQuick Check:
Cross-modal aligns semantics between modalities. [OK]
Hint: Cross-modal aligns semantics between modalities. [OK]
Common Mistakes:
3. In an LLM serving system, what is a likely failure mode if the KV Cache is not properly managed?
medium
Solution
Step 1: Identify the role of KV Cache.
KV Cache prevents redundant computations, reducing latency.Step 2: Eliminate wrong options.
Batching inefficiencies affect throughput, not KV Cache. Memory issues are possible but less direct. Speculative decoding affects accuracy, not KV Cache.Final Answer:
Option D -> Option DQuick Check:
KV Cache mismanagement leads to redundant computations. [OK]
Hint: KV Cache mismanagement leads to redundant computations. [OK]
Common Mistakes:
4. As the user base of a Guardrails System for LLMs scales 10x, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Analyze component scalability
Content filtering must process each request, becoming a bottleneck as requests increase.Step 2: Eliminate wrong options
Feedback loops and model training are less frequent, and data storage scales more linearly.Final Answer:
Option D -> Option DQuick Check:
Content filtering scales with user requests. [OK]
Hint: Content filtering scales with user requests. [OK]
Common Mistakes:
5. As the number of images in a visual search system scales up by 10x, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Analyze scaling impact
The ANN index is likely to become a bottleneck as it handles search queries, which increase with more data.Step 2: Eliminate wrong options
Embedding model scales with compute, serving layer handles requests, and network bandwidth is less likely to be the first bottleneck.Final Answer:
Option A -> Option AQuick Check:
ANN index struggles first with scale. [OK]
Hint: ANN index struggles first with scale. [OK]
Common Mistakes:
