InterviewStack.io LogoInterviewStack.io

Generative AI and Large Language Models Questions

The capabilities and behavior of modern generative and large language models. Covers how LLMs are pretrained, in-context learning and few-shot prompting, generative model families (autoregressive, diffusion), context windows, and tokenization and sampling. Emphasizes understanding what generative models can and cannot do and how they differ from discriminative ML.

EasyTechnical
100 practiced

Describe decoding strategies for LLM generation: greedy decoding, beam search, top-k sampling, top-p (nucleus) sampling, and temperature scaling. How does each affect diversity, determinism, and repetition, and what is a rule of thumb for choosing sampling versus beam search?

EasyTechnical
78 practiced

Explain the difference between a generative and a discriminative model. Give at least two concrete examples of each and describe how the choice between the two approaches affects a production system.

EasyTechnical
105 practiced

What is chain-of-thought (CoT) prompting? Give a short example that elicits step-by-step reasoning, and explain when CoT usually improves accuracy versus when it may degrade performance or increase latency/cost.

That is every published Generative AI and Large Language Models question for Software Engineer so far. Browse the other topics in this category, or practice this one interactively.