Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : DEEP LEARNING PRACTICE (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Consider subword tokenization methods such as Byte Pair Encoding (BPE) and WordPiece as employed in transformer-based language modeling pipelines. Which of the following statements correctly describes their fundamental properties?
Solution
Consider two subword tokenizers trained on the same text corpus. Tokenizer A uses a vocabulary of 8,000 tokens, whereas Tokenizer B uses a vocabulary of 64,000 tokens. Which of the following statements most accurately characterizes the implications of these vocabulary sizes for training efficiency in transformer-based language models?
Solution
A subword tokenizer decomposes rare chemical entity names into a large number of fragments. During downstream fine-tuning, the model exhibits degraded performance on a chemical named entity recognition (NER) task. Which of the following represents the most principled corrective action?
Solution
Solution
Solution
In the standard Transformer architecture (e.g., GPT or BERT), which component exhibits a computational complexity that scales quadratically (
) with respect to the input sequence length
?
Solution
A model with 4B parameters (fp32) is being trained using the AdamW optimizer on a single 32GB GPU. Why is full fine-tuning impossible in this configuration?
Solution
During the full fine-tuning of a Large Language Model, you aim to regularize the training process by penalizing the growth of weight magnitudes. This ensures the model does not overfit the fine- tuning data by making excessively large updates to the pretrained parameters. Which parameter is specifically designed to apply this penalty?
Solution
Why does full fine-tuning of large language models often require more memory than inference using the same model?
Solution
Which technique is most effective at reducing GPU memory usage during training without modifying the model architecture?
Solution
Consider the output of a Hugging Face tokenizer when applied to a batch of sequences with padding= "max_length" and return_tensors= "pt". Which of the following statements are correct? (Select ALL that apply)
Solution
Solution
Which of the following statements correctly distinguish different Transformer architectures and their typical training objectives? (Select ALL that apply)
Solution
Solution
A model is trained using the Causal Language Modeling (CLM) objective with a standard cross- entropy loss. Which of the following statements correctly describe the training dynamics? (Select ALL that apply)
Solution
When configuring TrainingArguments for a Transformer model, we include a learning rate warmup phase (e.g., warmup_steps=500). Which of the following statements correctly describe the purpose and behavior of this strategy? (Select ALL that apply)
Solution
A transformer-based language model has 1.2 billion parameters and is fine-tuned using AdamW. Assume parameters, gradients, and optimizer states (first and second moments) are all stored in 32-bit precision (4 bytes each). Ignoring activations and buffers, calculate the total GPU memory required (in GB) to store parameters, gradients, and optimizer states. (Assume 1 GB =
bytes.)
Solution
A GPT-style transformer block has an embedding dimension of 768 and uses 12 attention heads.
Consider a specific processing task with a very short sequence of only 3 tokens (
).Compute the total number of weight parameters (ignore biases) in the self-attention module, specifically for the Query, Key, Value, and Output projection matrices. Report your answer in millions, rounded to one decimal place.
Consider a specific processing task with a very short sequence of only 3 tokens (
Solution
You are training a decoder-only language model with a vocabulary size of 32,000, maximum context length of 2048, and embedding dimension of 1024. The model uses learned positional embeddings. Calculate the total number of parameters in the embedding layer (token + positional embeddings). Report your answer in millions, rounded to one decimal place.
Solution
Shape
Thickness [ / ]
3
All colors