Quiz Space

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

Question 8: Consider the following configuration for the Vannila tran…

Question 8

+2 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.

Suppose the number of learnable parameters in the source input-embedding layer is 3200, how many parameters are there in the positional embedding layer of the source language?

Show answer

Correct answer: 1024

Question 8 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 2 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. Q9Consider the following configuration for the Vannila transformer architecture with one encoder layer and one decoder la…
  9. Q10Consider 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…