metadata
library_name: transformers
license: mit
base_model: openai-community/gpt2-medium
tags:
- generated_from_trainer
model-index:
- name: GPT2-medium
results: []
GPT2-medium
This model is a fine-tuned version of openai-community/gpt2-medium on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.5613
Model description
More information needed
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: 0.0001
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 8
- total_train_batch_size: 64
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: cosine
- lr_scheduler_warmup_ratio: 0.15
- num_epochs: 10
- mixed_precision_training: Native AMP
Training results
Training Loss | Epoch | Step | Validation Loss |
---|---|---|---|
0.4653 | 1.7937 | 50 | 0.5613 |
0.3154 | 3.5874 | 100 | 0.5657 |
0.2436 | 5.3812 | 150 | 0.5961 |
0.2138 | 7.1749 | 200 | 0.6012 |
0.197 | 8.9686 | 250 | 0.6177 |
Framework versions
- Transformers 4.45.1
- Pytorch 2.4.0
- Datasets 3.0.1
- Tokenizers 0.20.0