Quiz Space

Deep Learning Practice · Quiz 1 · 27 Oct 2024 · September 2024 term

Question 13: Here is a set of training arguments used by the GPT-2 mo…

Question 13

+5 marksNumerical answer

Here is a set of training arguments used by the GPT-2 model that was pre-trained on a dataset that contains 10 billion tokens. The context length of the model is modified to 2048, the vocabulary size is 50,257 and the embedding dimension is 768. The length of all the samples in a batch is equal to the context length of the model.

python
training_args = TrainingArguments( output_dir='out',
evaluation_strategy="steps",
eval_steps=500,
num_train_epochs=1,
per_device_train_batch_size=16,
per_device_eval_batch_size=16,
tf32=True,
gradient_accumulation_steps=2,
adam_beta1=0.9,
adam_beta2=0.999,
learning_rate=2e-5,
weight_decay=0.01,
logging_dir='logs',
logging_strategy="steps",
logging_steps = 500,
save_steps=5000,
save_total_limit=20,
report_to='wandb',
)

Based on the above data, answer the given subquestions.

Enter the number of tokens (in millions) processed by the model after 1000 steps. Enter the answer to 2 decimal places. For example, if your answer is 123456789, then enter it as 123.45.

Show answer

Correct answer: 65.5 (accepted within ±0.2)

Question 13 of 15 in the IIT Madras BS Deep Learning Practice (Deep Learning Practice) Quiz 1 paper sat on 27 Oct 2024, in the September 2024 term (IIT M DEGREE AN EXAM QDB2 27 Oct 2024). It carries 5 marks.

More questions from this paper

  1. Q1Figure question
  2. Q2Choose the Hugging Face module that helps us train a tokenizer from scratch on a specific dataset.
  3. Q3A dataset contains 10 billion words ( separated by a single white space). Suppose we use a pre- trained tokenizer that …
  4. Q4Which of the following tokenization algorithms can be applied to languages that do not have any word delimiters?
  5. Q5Consider the Wikipedia dataset scraped from the web that contains 2 billion words. A team decided to use the BPE tokeni…
  6. Q6Suppose that we pre-train a Causal Language Model. Choose the data collator function from the Hugging Face library that…
  7. Q7The IMDB dataset has 25000 samples in the training split. It contains two columns, named, text and label. Consider the …
  8. Q8Consider two datasets namely "ds1" and "ds2" . The structure of the dataset with the number of samples in each split is…
  9. Q9Figure question
  10. Q10Figure question
  11. Q11Here is a configuration of the GPTNeo model from the Hugging Face hub. Figure 1: GPTNeoConfig Based on the above data, …
  12. Q12Here is a configuration of the GPTNeo model from the Hugging Face hub. Figure 1: GPTNeoConfig Based on the above data, …
  13. Q14Here is a set of training arguments used by the GPT-2 model that was pre-trained on a dataset that contains 10 billion …
  14. Q15Figure question