AIInterviewTraining logoAIInterview/Training

sampling

AI, ML & GenAI interview questions tagged sampling, across every topic.

11 questions · 1 unlocked for you

Concepts behind "sampling"

The curriculum that explains the ideas these questions test.

Core
🧠 Foundations of LLMs & GenAISign in
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.
Core
🧠 Foundations of LLMs & GenAISign in
Diffusion Control and Fast SamplingA text prompt is a weak handle on an image model. Real control comes from structural conditioning: ControlNet for layout and pose, IP-Adapter for identity and style, masked inpainting for local edits. Speed comes from attacking three separate factors: the number of steps, the cost per step, and the passes per step. AI, ML, and GenAI interviews probe this because shipping an image product means hitting a latency budget and giving users control that a prompt alone cannot deliver.
Core
📊 Evaluation & ML FoundationsSign in
CLT, Sampling, and Confidence IntervalsThe central limit theorem says a sample mean is approximately normal no matter the underlying distribution, which is why so much inference relies on the normal curve. Standard error captures how much a sample mean wobbles and shrinks as sample size grows, unlike standard deviation. AI, ML, and GenAI engineer interviews probe this because it fixes how wide a confidence interval is and therefore how long an A/B test must run.