Quiz Space

Large Language Models · Quiz 1 · 23 Feb 2025 · January 2025 term

Question 10: Consider the following configuration for the Vannila tra…

Question 10

+3 marksNumerical answer

Consider the following configuration for the Vannila transformer architecture with one encoder layer and one decoder layer.

  • Source vocabulary size =100= 100
  • Target vocabulary size =200= 200
  • maximum sequence length =32= 32
  • length of context window (T)(T) for both encoder and decoder =32= 32
  • number of heads nh=4n_h = 4
  • dff=4∗dmodeldff = 4 * dmodel
  • dq=dk=dv=dmodelnhdq = dk = dv = \frac{dmodel}{n_h}

Based on the above data, answer the given subquestions.

How many parameters does the matrix WQ have in anyone head of the encoder?

Show answer

Correct answer: 256

Question 10 of 18 in the IIT Madras BS Large Language Models (LLM) Quiz 1 paper sat on 23 Feb 2025, in the January 2025 term (IIT M DEGREE AN EXAM QDB2 23 Feb 2025). It carries 3 marks.

More questions from this paper

  1. Q1Figure question
  2. Q2Consider following assertion and reason pair:\ Assertion: A transformer model cannot be trained in autogregressive mode…
  3. Q3Suppose we use a pre-trained model for text generation with the given prompt “I am going to”. Which of the following de…
  4. Q4Which of the following models, in general, struggle to encode a context when translating long sentences?
  5. Q5Choose the correct statements
  6. Q6Figure question
  7. Q7Which of the following decoding strategies is (are) appropriate for machine translation tasks? Assume we have infinite …
  8. Q8Consider the following configuration for the Vannila transformer architecture with one encoder layer and one decoder la…
  9. Q9Consider the following configuration for the Vannila transformer architecture with one encoder layer and one decoder la…
  10. Q11Consider following input matrix to a single neural network layer: X = \begin{bmatrix} 1 & 2 & 3 & 8 \ 4 & 7 & 11 & 14 \…
  11. Q12Consider following input matrix to a single neural network layer: X = \begin{bmatrix} 1 & 2 & 3 & 8 \ 4 & 7 & 11 & 14 \…
  12. Q13Consider following input matrix to a single neural network layer: X = \begin{bmatrix} 1 & 2 & 3 & 8 \ 4 & 7 & 11 & 14 \…
  13. Q14Consider following input matrix to a single neural network layer: X = \begin{bmatrix} 1 & 2 & 3 & 8 \ 4 & 7 & 11 & 14 \…
  14. Q15Consider following corpus (in italics), which is used train a GPT like (i.e. decoder only) model for causal language mo…
  15. Q16Consider following corpus (in italics), which is used train a GPT like (i.e. decoder only) model for causal language mo…
  16. Q17Consider following corpus (in italics), which is used train a GPT like (i.e. decoder only) model for causal language mo…
  17. Q18Consider following corpus (in italics), which is used train a GPT like (i.e. decoder only) model for causal language mo…