InterviewStack.io LogoInterviewStack.io

Generative AI & Large Language Models (LLMs) Questions

Understanding of generative models including GANs, VAEs, diffusion models, and large language models. For LLMs, understand: pre-training objectives, fine-tuning strategies (full fine-tune, LoRA, adapter modules), prompt engineering, inference optimization, and practical considerations for deploying LLMs. Be familiar with architectures like GPT, BERT, and know how to adapt these models for specific tasks.

EasyTechnical
96 practiced
Outline minimum responsible-AI and safety considerations when deploying an LLM into production: data privacy and PII handling, content moderation/filtering, provenance/logging for audits, human-in-the-loop escalation patterns, consent and deletion workflows, and simple monitoring signals to detect safety incidents.
EasyTechnical
76 practiced
Compare Generative Adversarial Networks (GANs), Variational Autoencoders (VAEs), and diffusion models at a high level. For each family: explain the generation process, typical loss function characteristics, stability and training concerns, sample quality vs diversity trade-offs, and common application domains (images, audio, etc.).
HardSystem Design
72 practiced
Design an A/B testing and gradual rollout framework for updating an LLM in production. Specify metrics to monitor (utility/conversion metrics, hallucination rate, latency), how to collect ground truth or human labels at scale, traffic allocation strategies for canaries and rollouts, statistical tests to determine significance, rollback criteria, and escalation paths for safety regressions.
EasyTechnical
74 practiced
Explain scaled dot-product attention used in transformers: describe queries, keys, values, the dot-product computation, scaling by sqrt(d_k), application of softmax, and masked attention for causality. Discuss computational complexity O(n^2) relative to sequence length and name practical mitigations used for long sequences.
MediumTechnical
102 practiced
During fine-tuning of a 13B model you observe intermittent loss spikes and training instability. Provide a prioritized debugging checklist: check optimizer states, learning rate schedule, gradient clipping/accumulation, batch composition, mixed-precision settings, unusual tokens in data, and checkpoint/restore validation. For each item, explain why it may cause spikes and a suggested fix.

Unlock Full Question Bank

Get access to hundreds of Generative AI & Large Language Models (LLMs) interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.