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.

MediumTechnical
105 practiced

You have constrained GPU resources and must adapt a 7B-parameter LLM to several (e.g. 10) different domain-specific tasks, or you are advising a resource-limited team on a single task. Compare full fine-tuning, LoRA/PEFT, adapter modules, prompt-tuning, and continual pretraining on compute cost, storage per task, expected quality, iteration speed, inference latency impact, and maintenance burden, and recommend an approach for efficiently maintaining many task-specific models.

MediumTechnical
151 practiced

Explain adapter modules for transformer models: how they are inserted (e.g., between attention and feed-forward), how they change parameter budgets, their advantages relative to full fine-tuning, and potential drawbacks. Design a lightweight adapter architecture for sequence classification and estimate the number of extra parameters for a 1.5B parameter base model.

EasyBehavioral
73 practiced

Tell me about a time you led the deployment of a machine-learned system that required human-in-the-loop feedback (e.g., RLHF or preference collection). Describe the Situation, your Task, the Actions you took (data collection, annotator instructions, tooling, and rollout), and the Results. What trade-offs did you make between speed, cost, and quality?

HardTechnical
94 practiced

You must decide between two third-party LLM options for a knowledge assistant: a faster, cheaper model with slightly lower factual accuracy, versus a slower, costlier model with better factuality. How would you evaluate and choose, and how might you combine both to meet product goals?

EasyTechnical
154 practiced

Describe Proximal Policy Optimization (PPO) at a high level and explain why PPO is commonly used for fine-tuning language models with reward signals. Mention the role of the clipping objective (or KL regularization) and outline a typical training loop: collect rollouts → compute advantages → update policy.

Unlock Full Question Bank

Get access to all 38 Generative AI and Large Language Models interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.