decoding
AI, ML & GenAI interview questions tagged decoding, across every topic.
8 questions · 2 unlocked for you
Concepts behind "decoding"
The curriculum that explains the ideas these questions test.
Core
Temperature and SamplingAt each step a model outputs a probability distribution over the next token; how you pick from it is decoding. Temperature reshapes the distribution (low sharpens toward the most likely token, high flattens it), while top-k and top-p (nucleus) trim the tail before sampling. The choice sets the trade-off between deterministic, focused output and diverse, creative output. AI, ML, and GenAI engineer interviews probe it because the right decoding settings differ sharply between factual/extraction tasks and creative ones, and because reproducibility hinges on them.🧠 Foundations of LLMs & GenAISign in
Core
Speculative DecodingDecoding is sequential and memory-bound, so producing each token one at a time leaves the GPU underused. Speculative decoding runs a small, fast draft model to propose several tokens ahead, then the large model checks them all in a single parallel pass, keeping the longest correct prefix. It accelerates generation without altering output quality, since the big model still validates every token. AI, ML, and GenAI engineer interviews probe it because it is a clever, widely-used latency optimization that exploits the memory-bound nature of decode.🖥️ ML Infrastructure & ServingSign in
