
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# wikitext_wikitext-103-raw-v1_gpt2_from_scratch

This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on the wikitext wikitext-103-raw-v1 dataset.
It achieves the following results on the evaluation set:
- Loss: 3.3277
- Accuracy: 0.4036

## 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: 5e-05
- train_batch_size: 64
- eval_batch_size: 64
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 10.0

### Training results

| Training Loss | Epoch | Step  | Validation Loss | Accuracy |
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
| 5.7106        | 0.5   | 893   | 5.3137          | 0.2373   |
| 4.9522        | 1.0   | 1786  | 4.6713          | 0.2830   |
| 4.5405        | 1.5   | 2679  | 4.2993          | 0.3136   |
| 4.2493        | 2.0   | 3572  | 4.0346          | 0.3400   |
| 4.0547        | 2.5   | 4465  | 3.8617          | 0.3558   |
| 3.9261        | 3.0   | 5358  | 3.7539          | 0.3646   |
| 3.8112        | 3.5   | 6251  | 3.6648          | 0.3723   |
| 3.7431        | 4.0   | 7144  | 3.5992          | 0.3780   |
| 3.6709        | 4.5   | 8037  | 3.5457          | 0.3829   |
| 3.6318        | 5.0   | 8930  | 3.5065          | 0.3864   |
| 3.577         | 5.5   | 9823  | 3.4671          | 0.3900   |
| 3.5496        | 6.0   | 10716 | 3.4373          | 0.3932   |
| 3.5072        | 6.5   | 11609 | 3.4121          | 0.3950   |
| 3.4988        | 7.0   | 12502 | 3.3920          | 0.3971   |
| 3.4661        | 7.5   | 13395 | 3.3737          | 0.3988   |
| 3.4578        | 8.0   | 14288 | 3.3589          | 0.3997   |
| 3.4282        | 8.5   | 15181 | 3.3473          | 0.4011   |
| 3.4158        | 9.0   | 16074 | 3.3372          | 0.4025   |
| 3.4019        | 9.5   | 16967 | 3.3312          | 0.4033   |
| 3.3939        | 10.0  | 17860 | 3.3277          | 0.4036   |


### Framework versions

- Transformers 4.34.0
- Pytorch 2.1.0+cu121
- Datasets 2.14.5
- Tokenizers 0.14.1

{"license": "mit", "tags": ["generated_from_trainer"], "datasets": ["wikitext"], "metrics": ["accuracy"], "base_model": "gpt2", "model-index": [{"name": "wikitext_wikitext-103-raw-v1_gpt2_from_scratch", "results": [{"task": {"type": "text-generation", "name": "Causal Language Modeling"}, "dataset": {"name": "wikitext wikitext-103-raw-v1", "type": "wikitext", "config": "wikitext-103-raw-v1", "split": "validation", "args": "wikitext-103-raw-v1"}, "metrics": [{"type": "accuracy", "value": 0.4036127403062887, "name": "Accuracy"}]}]}]}
transformers pytorch gpt2 text-generation generated_from_trainer dataset:wikitext base_model:gpt2 license:mit model-index autotrain_compatible endpoints_compatible text-generation-inference region:us