Model save
Browse files- README.md +152 -0
- config.json +39 -0
- generation_config.json +6 -0
- logs/events.out.tfevents.1719310410.ki-g0010 +3 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +5 -0
- tokenizer.json +0 -0
- tokenizer_config.json +19 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: openai-community/gpt2
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
model-index:
|
| 9 |
+
- name: gpt_12
|
| 10 |
+
results: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
+
|
| 16 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/gokulsrinivasagan/huggingface/runs/mlgwaerz)
|
| 17 |
+
# gpt_12
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [openai-community/gpt2](https://huggingface.co/openai-community/gpt2) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 8.8359
|
| 22 |
+
- Accuracy: 0.0828
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 1e-05
|
| 42 |
+
- train_batch_size: 32
|
| 43 |
+
- eval_batch_size: 32
|
| 44 |
+
- seed: 10
|
| 45 |
+
- distributed_type: multi-GPU
|
| 46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 47 |
+
- lr_scheduler_type: linear
|
| 48 |
+
- num_epochs: 10
|
| 49 |
+
- mixed_precision_training: Native AMP
|
| 50 |
+
|
| 51 |
+
### Training results
|
| 52 |
+
|
| 53 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 54 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
| 55 |
+
| 10.9609 | 0.0000 | 1 | 10.9922 | 0.0000 |
|
| 56 |
+
| 10.9609 | 0.0000 | 2 | 10.9922 | 0.0000 |
|
| 57 |
+
| 10.9609 | 0.0000 | 3 | 10.9922 | 0.0000 |
|
| 58 |
+
| 10.9609 | 0.0000 | 4 | 10.9922 | 0.0000 |
|
| 59 |
+
| 10.9609 | 0.0000 | 5 | 10.9922 | 0.0000 |
|
| 60 |
+
| 10.9609 | 0.0000 | 6 | 10.9922 | 0.0000 |
|
| 61 |
+
| 10.9609 | 0.0000 | 7 | 10.9922 | 0.0000 |
|
| 62 |
+
| 10.9688 | 0.0000 | 8 | 10.9922 | 0.0000 |
|
| 63 |
+
| 10.9609 | 0.0001 | 9 | 10.9922 | 0.0000 |
|
| 64 |
+
| 10.9609 | 0.0001 | 10 | 10.9922 | 0.0000 |
|
| 65 |
+
| 10.9609 | 0.0001 | 11 | 10.9922 | 0.0000 |
|
| 66 |
+
| 10.9609 | 0.0001 | 12 | 10.9922 | 0.0000 |
|
| 67 |
+
| 10.9453 | 0.0001 | 13 | 10.9922 | 0.0000 |
|
| 68 |
+
| 10.9531 | 0.0001 | 14 | 10.9922 | 0.0000 |
|
| 69 |
+
| 10.9609 | 0.0001 | 15 | 10.9922 | 0.0000 |
|
| 70 |
+
| 10.9609 | 0.0001 | 16 | 10.9922 | 0.0000 |
|
| 71 |
+
| 10.9688 | 0.0001 | 17 | 10.9922 | 0.0000 |
|
| 72 |
+
| 10.9531 | 0.0001 | 18 | 10.7344 | 0.0038 |
|
| 73 |
+
| 10.5781 | 0.0001 | 19 | 10.5703 | 0.0077 |
|
| 74 |
+
| 10.3828 | 0.0001 | 20 | 10.4219 | 0.0192 |
|
| 75 |
+
| 10.1875 | 0.0001 | 21 | 10.3359 | 0.0118 |
|
| 76 |
+
| 10.1094 | 0.0001 | 22 | 10.25 | 0.0071 |
|
| 77 |
+
| 9.9688 | 0.0001 | 23 | 10.2188 | 0.0029 |
|
| 78 |
+
| 9.9141 | 0.0001 | 24 | 10.1953 | 0.0019 |
|
| 79 |
+
| 9.8906 | 0.0001 | 25 | 10.1562 | 0.0039 |
|
| 80 |
+
| 9.8828 | 0.0002 | 26 | 10.1094 | 0.0093 |
|
| 81 |
+
| 9.8516 | 0.0002 | 27 | 10.0547 | 0.0207 |
|
| 82 |
+
| 9.7656 | 0.0002 | 28 | 10.0312 | 0.0259 |
|
| 83 |
+
| 9.7422 | 0.0002 | 29 | 10.0234 | 0.0263 |
|
| 84 |
+
| 9.6797 | 0.0002 | 30 | 10.0312 | 0.0256 |
|
| 85 |
+
| 9.7812 | 0.0002 | 31 | 10.0312 | 0.0234 |
|
| 86 |
+
| 9.7656 | 0.0002 | 32 | 10.0 | 0.0259 |
|
| 87 |
+
| 9.6875 | 0.0002 | 33 | 9.9688 | 0.0266 |
|
| 88 |
+
| 9.6719 | 0.0002 | 34 | 9.9375 | 0.0266 |
|
| 89 |
+
| 9.6328 | 0.0002 | 35 | 9.9062 | 0.0266 |
|
| 90 |
+
| 9.6172 | 0.0002 | 36 | 9.8828 | 0.0266 |
|
| 91 |
+
| 9.625 | 0.0002 | 37 | 9.8594 | 0.0266 |
|
| 92 |
+
| 9.6094 | 0.0002 | 38 | 9.8281 | 0.0266 |
|
| 93 |
+
| 9.6719 | 0.0002 | 39 | 9.7656 | 0.0266 |
|
| 94 |
+
| 9.5469 | 0.0002 | 40 | 9.7109 | 0.0266 |
|
| 95 |
+
| 9.5312 | 0.0002 | 41 | 9.6562 | 0.0266 |
|
| 96 |
+
| 9.5391 | 0.0002 | 42 | 9.6172 | 0.0267 |
|
| 97 |
+
| 9.4609 | 0.0003 | 43 | 9.5859 | 0.0307 |
|
| 98 |
+
| 9.5 | 0.0003 | 44 | 9.5547 | 0.0440 |
|
| 99 |
+
| 9.5391 | 0.0003 | 45 | 9.5234 | 0.0583 |
|
| 100 |
+
| 9.4531 | 0.0003 | 46 | 9.5 | 0.0617 |
|
| 101 |
+
| 9.4688 | 0.0003 | 47 | 9.4766 | 0.0624 |
|
| 102 |
+
| 9.3984 | 0.0003 | 48 | 9.4531 | 0.0624 |
|
| 103 |
+
| 9.3906 | 0.0003 | 49 | 9.4375 | 0.0624 |
|
| 104 |
+
| 9.4375 | 0.0003 | 50 | 9.4141 | 0.0625 |
|
| 105 |
+
| 9.4062 | 0.0003 | 51 | 9.3984 | 0.0627 |
|
| 106 |
+
| 9.3516 | 0.0003 | 52 | 9.3828 | 0.0629 |
|
| 107 |
+
| 9.3359 | 0.0003 | 53 | 9.3594 | 0.0628 |
|
| 108 |
+
| 9.3516 | 0.0003 | 54 | 9.3438 | 0.0623 |
|
| 109 |
+
| 9.2734 | 0.0003 | 55 | 9.3281 | 0.0606 |
|
| 110 |
+
| 9.375 | 0.0003 | 56 | 9.3125 | 0.0600 |
|
| 111 |
+
| 9.3672 | 0.0003 | 57 | 9.3047 | 0.0596 |
|
| 112 |
+
| 9.2422 | 0.0003 | 58 | 9.2891 | 0.0597 |
|
| 113 |
+
| 9.2734 | 0.0003 | 59 | 9.2734 | 0.0612 |
|
| 114 |
+
| 9.2344 | 0.0003 | 60 | 9.2656 | 0.0631 |
|
| 115 |
+
| 9.2656 | 0.0004 | 61 | 9.25 | 0.0643 |
|
| 116 |
+
| 9.25 | 0.0004 | 62 | 9.2422 | 0.0650 |
|
| 117 |
+
| 9.2422 | 0.0004 | 63 | 9.2266 | 0.0657 |
|
| 118 |
+
| 9.2109 | 0.0004 | 64 | 9.2188 | 0.0664 |
|
| 119 |
+
| 9.1953 | 0.0004 | 65 | 9.2109 | 0.0667 |
|
| 120 |
+
| 9.2344 | 0.0004 | 66 | 9.1953 | 0.0672 |
|
| 121 |
+
| 9.125 | 0.0004 | 67 | 9.1797 | 0.0675 |
|
| 122 |
+
| 9.1797 | 0.0004 | 68 | 9.1719 | 0.0676 |
|
| 123 |
+
| 9.1562 | 0.0004 | 69 | 9.1562 | 0.0677 |
|
| 124 |
+
| 9.1328 | 0.0004 | 70 | 9.1484 | 0.0678 |
|
| 125 |
+
| 9.1172 | 0.0004 | 71 | 9.1328 | 0.0677 |
|
| 126 |
+
| 9.1641 | 0.0004 | 72 | 9.125 | 0.0669 |
|
| 127 |
+
| 9.0547 | 0.0004 | 73 | 9.1094 | 0.0672 |
|
| 128 |
+
| 9.1797 | 0.0004 | 74 | 9.0938 | 0.0682 |
|
| 129 |
+
| 9.1094 | 0.0004 | 75 | 9.0781 | 0.0687 |
|
| 130 |
+
| 9.1094 | 0.0004 | 76 | 9.0625 | 0.0688 |
|
| 131 |
+
| 9.0781 | 0.0004 | 77 | 9.0469 | 0.0688 |
|
| 132 |
+
| 9.1172 | 0.0005 | 78 | 9.0312 | 0.0690 |
|
| 133 |
+
| 9.0547 | 0.0005 | 79 | 9.0234 | 0.0692 |
|
| 134 |
+
| 9.0312 | 0.0005 | 80 | 9.0078 | 0.0704 |
|
| 135 |
+
| 9.0469 | 0.0005 | 81 | 8.9922 | 0.0720 |
|
| 136 |
+
| 9.0469 | 0.0005 | 82 | 8.9688 | 0.0750 |
|
| 137 |
+
| 9.0 | 0.0005 | 83 | 8.9531 | 0.0755 |
|
| 138 |
+
| 8.9609 | 0.0005 | 84 | 8.9375 | 0.0751 |
|
| 139 |
+
| 9.0625 | 0.0005 | 85 | 8.9219 | 0.0767 |
|
| 140 |
+
| 9.0078 | 0.0005 | 86 | 8.9062 | 0.0802 |
|
| 141 |
+
| 9.0078 | 0.0005 | 87 | 8.8984 | 0.0819 |
|
| 142 |
+
| 8.9141 | 0.0005 | 88 | 8.875 | 0.0824 |
|
| 143 |
+
| 9.1094 | 0.0005 | 89 | 8.8516 | 0.0825 |
|
| 144 |
+
| 8.9531 | 0.0005 | 90 | 8.8359 | 0.0828 |
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
### Framework versions
|
| 148 |
+
|
| 149 |
+
- Transformers 4.42.0.dev0
|
| 150 |
+
- Pytorch 2.2.2+cu121
|
| 151 |
+
- Datasets 2.19.0
|
| 152 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "openai-community/gpt2",
|
| 3 |
+
"activation_function": "gelu_new",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GPT2LMHeadModel"
|
| 6 |
+
],
|
| 7 |
+
"attn_pdrop": 0.1,
|
| 8 |
+
"bos_token_id": 50256,
|
| 9 |
+
"embd_pdrop": 0.1,
|
| 10 |
+
"eos_token_id": 50256,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"layer_norm_epsilon": 1e-05,
|
| 13 |
+
"model_type": "gpt2",
|
| 14 |
+
"n_ctx": 1024,
|
| 15 |
+
"n_embd": 768,
|
| 16 |
+
"n_head": 12,
|
| 17 |
+
"n_inner": null,
|
| 18 |
+
"n_layer": 12,
|
| 19 |
+
"n_positions": 1024,
|
| 20 |
+
"reorder_and_upcast_attn": false,
|
| 21 |
+
"resid_pdrop": 0.1,
|
| 22 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 23 |
+
"scale_attn_weights": true,
|
| 24 |
+
"summary_activation": null,
|
| 25 |
+
"summary_first_dropout": 0.1,
|
| 26 |
+
"summary_proj_to_labels": true,
|
| 27 |
+
"summary_type": "cls_index",
|
| 28 |
+
"summary_use_proj": true,
|
| 29 |
+
"task_specific_params": {
|
| 30 |
+
"text-generation": {
|
| 31 |
+
"do_sample": true,
|
| 32 |
+
"max_length": 50
|
| 33 |
+
}
|
| 34 |
+
},
|
| 35 |
+
"torch_dtype": "float16",
|
| 36 |
+
"transformers_version": "4.42.0.dev0",
|
| 37 |
+
"use_cache": true,
|
| 38 |
+
"vocab_size": 50257
|
| 39 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 50256,
|
| 4 |
+
"eos_token_id": 50256,
|
| 5 |
+
"transformers_version": "4.42.0.dev0"
|
| 6 |
+
}
|
logs/events.out.tfevents.1719310410.ki-g0010
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:322c94945897bf22993fc76afaec9e83f49bbea77864c39336d59e487da5bb0e
|
| 3 |
+
size 52521
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e261921b363bb78de2b9671d93fa37bdfec48f8ceb77cf48f7cc216eb70591f8
|
| 3 |
+
size 326089504
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<|endoftext|>",
|
| 3 |
+
"eos_token": "<|endoftext|>",
|
| 4 |
+
"unk_token": "<|endoftext|>"
|
| 5 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"50256": {
|
| 5 |
+
"content": "<|endoftext|>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
}
|
| 12 |
+
},
|
| 13 |
+
"bos_token": "<|endoftext|>",
|
| 14 |
+
"clean_up_tokenization_spaces": true,
|
| 15 |
+
"eos_token": "<|endoftext|>",
|
| 16 |
+
"model_max_length": 1024,
|
| 17 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 18 |
+
"unk_token": "<|endoftext|>"
|
| 19 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c7413cc0da53f696c3363ab091f561ea4228134e0179955660456776995bdb14
|
| 3 |
+
size 6264
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|