DecodeAI
← Question Bank

Deep Learning & Generative AI

Generative AI & Large Language Models (LLMs) Interview Questions

Interview questions on Generative AI & Large Language Models (LLMs) Interview Questions.

15 questions

Attention, KV Cache & Efficient Inference

Q1. How does the attention mechanism function in transformer models?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q2. What are the main steps involved in the attention mechanism?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q3. What is the KV cache in transformer models?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q4. What are the advantages and disadvantages of using a Key-Value (KV) cache in Transformer models?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q5. What is model distillation, and how does it benefit LLMs?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q6. How do transformers improve on traditional Seq2Seq models?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q7. What is multi-head attention, and how does it enhance LLMs?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q8. What is local (sparse) attention and how does it work?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q9. What is Flash Attention?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q10. How is the softmax function applied in attention mechanisms?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q11. How does the dot product contribute to self-attention?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q12. How are attention scores calculated in transformers?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q13. How does Mixture of Experts(MoE) enhance LLM scalability?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q14. How do transformers address the vanishing gradient problem?

Sign in to bookmark

Attention, KV Cache & Efficient Inference

Q15. How do encoders and decoders differ in transformers?

Sign in to bookmark