Question 14
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.
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.
How many steps does it take to complete one epoch of training? Enter the answer in thousands (round down to an integer). For example, if your answer is 1234567.89, then enter it as 1234567.