wikipedia_sample_tiny_gpt2_base

This model is a fine-tuned version of gpt2 on the None dataset. It achieves the following results on the evaluation set:

  • Loss: 5.7538

Model description

This model is a result of an educational attempt of pre-training.

  • Data: 30,000 sample wikipedia articles
  • Tokenier: bert-base-uncased
  • Context: chunks of exactly 64 tokens with an overlap of 16 tokens
  • Initialization: GPT2LMHead() i.e. GPT2 structure without trained weights, and much smaller size and smaller number of transformer layers
  • Training: trained for 3 epochs

There is a previous version of the model (which I pasued in between because of budget). Below are the details for that:

  • Data: Same
  • Tokenizer: Same
  • Context: chunks of exactly 64 tokens with an overlap of 48 tokens (so a much larger dataset)
  • Initialization: Same
  • Training: trained for 15 epochs

To call this version, please use ...from_pretrained('DipanjanSanyal/wikipedia_sample_tiny_gpt2_base', revision = 87d9aa1eb492a5c20db562f113f07b8f8522f5d2')

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 3e-05
  • train_batch_size: 32
  • eval_batch_size: 32
  • seed: 42
  • optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: linear
  • num_epochs: 3
  • mixed_precision_training: Native AMP

Training results

Training Loss Epoch Step Validation Loss
6.0712 1.0 22538 6.0994
5.83 2.0 45076 5.8272
5.7545 3.0 67614 5.7538

Framework versions

  • Transformers 4.51.3
  • Pytorch 2.6.0+cu124
  • Datasets 3.6.0
  • Tokenizers 0.21.1
Downloads last month
24
Safetensors
Model size
4.51M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for DipanjanSanyal/wikipedia_sample_tiny_gpt2_base

Finetuned
(2268)
this model

Dataset used to train DipanjanSanyal/wikipedia_sample_tiny_gpt2_base

Space using DipanjanSanyal/wikipedia_sample_tiny_gpt2_base 1