
<!-- 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. -->

# d2p_raw_default_gpt2_from_scratch

This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on the tyzhu/d2p_raw default dataset.
It achieves the following results on the evaluation set:
- Loss: 6.4536
- Accuracy: 0.3151

## 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 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
| 9.6285        | 0.67  | 2    | 9.0791          | 0.1243   |
| 9.0726        | 1.33  | 4    | 8.7743          | 0.1366   |
| 8.6903        | 2.0   | 6    | 8.5972          | 0.1243   |
| 8.587         | 2.67  | 8    | 8.4002          | 0.1248   |
| 8.2425        | 3.33  | 10   | 7.9656          | 0.1782   |
| 8.0198        | 4.0   | 12   | 7.7666          | 0.1611   |
| 7.5568        | 4.67  | 14   | 7.6096          | 0.2242   |
| 7.3011        | 5.33  | 16   | 7.2416          | 0.2282   |
| 7.1855        | 6.0   | 18   | 7.2702          | 0.2605   |
| 6.8541        | 6.67  | 20   | 6.9184          | 0.2607   |
| 6.6556        | 7.33  | 22   | 6.8035          | 0.2699   |
| 6.4553        | 8.0   | 24   | 6.6738          | 0.2886   |
| 6.317         | 8.67  | 26   | 6.5387          | 0.2939   |
| 6.1769        | 9.33  | 28   | 6.4726          | 0.3055   |
| 6.3524        | 10.0  | 30   | 6.4536          | 0.3151   |


### 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": ["tyzhu/d2p_raw"], "metrics": ["accuracy"], "base_model": "gpt2", "model-index": [{"name": "d2p_raw_default_gpt2_from_scratch", "results": [{"task": {"type": "text-generation", "name": "Causal Language Modeling"}, "dataset": {"name": "tyzhu/d2p_raw default", "type": "tyzhu/d2p_raw", "args": "default"}, "metrics": [{"type": "accuracy", "value": 0.3151318041766518, "name": "Accuracy"}]}]}]}
transformers pytorch gpt2 text-generation generated_from_trainer dataset:tyzhu/d2p_raw base_model:gpt2 license:mit model-index autotrain_compatible endpoints_compatible text-generation-inference region:us