transformers safetensors gpt2 text-generation generated_from_trainer base_model:openai-community/gpt2 license:mit autotrain_compatible endpoints_compatible text-generation-inference region:us
---
license: mit
base_model: openai-community/gpt2
tags:
- generated_from_trainer
model-index:
- name: GPT2ForCodeTrans
  results: []
---

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

# GPT2ForCodeTrans

This model is a fine-tuned version of [openai-community/gpt2](https://huggingface.co/openai-community/gpt2) on an unknown dataset.
It achieves the following results on the evaluation set:
- Loss: 0.6797

## 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: 1e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 9265.5
- num_epochs: 15
- mixed_precision_training: Native AMP

### Training results

| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 4.5499        | 1.0   | 644  | 11.1341         |
| 1.9321        | 2.0   | 1288 | 3.3191          |
| 1.4398        | 3.0   | 1932 | 1.5779          |
| 1.2984        | 4.0   | 2576 | 1.1592          |
| 1.1538        | 5.0   | 3220 | 1.0236          |
| 1.098         | 6.0   | 3864 | 0.9473          |
| 1.0474        | 7.0   | 4508 | 0.8883          |
| 0.9864        | 8.0   | 5152 | 0.8488          |
| 0.9308        | 9.0   | 5796 | 0.8180          |
| 0.8649        | 10.0  | 6440 | 0.7880          |
| 0.8787        | 11.0  | 7084 | 0.7641          |
| 0.8145        | 12.0  | 7728 | 0.7381          |
| 0.813         | 13.0  | 8372 | 0.7125          |
| 0.7832        | 14.0  | 9016 | 0.6938          |
| 0.7611        | 15.0  | 9660 | 0.6797          |


### Framework versions

- Transformers 4.35.2
- Pytorch 2.1.1+cu121
- Datasets 2.15.0
- Tokenizers 0.15.0
