Michaelj1 commited on
Commit
1be5c31
1 Parent(s): 3779348

Michaelj1/distilgpt2-finetuned-private

Browse files
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: distilgpt2
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: distilgpt2-finetuned
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # distilgpt2-finetuned
16
+
17
+ This model is a fine-tuned version of [distilgpt2](https://huggingface.co/distilgpt2) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 3.6391
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 5e-05
39
+ - train_batch_size: 16
40
+ - eval_batch_size: 16
41
+ - seed: 42
42
+ - gradient_accumulation_steps: 2
43
+ - total_train_batch_size: 32
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 1
47
+ - mixed_precision_training: Native AMP
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss |
52
+ |:-------------:|:------:|:----:|:---------------:|
53
+ | 4.0748 | 0.0436 | 50 | 3.8923 |
54
+ | 3.8414 | 0.0871 | 100 | 3.8125 |
55
+ | 3.8957 | 0.1307 | 150 | 3.7769 |
56
+ | 3.8723 | 0.1743 | 200 | 3.7545 |
57
+ | 4.0205 | 0.2179 | 250 | 3.7336 |
58
+ | 3.7175 | 0.2614 | 300 | 3.7282 |
59
+ | 3.7778 | 0.3050 | 350 | 3.7111 |
60
+ | 3.7763 | 0.3486 | 400 | 3.6994 |
61
+ | 3.8142 | 0.3922 | 450 | 3.6945 |
62
+ | 3.7654 | 0.4357 | 500 | 3.6831 |
63
+ | 3.9636 | 0.4793 | 550 | 3.6773 |
64
+ | 3.703 | 0.5229 | 600 | 3.6692 |
65
+ | 3.6114 | 0.5664 | 650 | 3.6647 |
66
+ | 3.6269 | 0.6100 | 700 | 3.6591 |
67
+ | 3.693 | 0.6536 | 750 | 3.6564 |
68
+ | 3.7969 | 0.6972 | 800 | 3.6529 |
69
+ | 3.6011 | 0.7407 | 850 | 3.6491 |
70
+ | 3.4943 | 0.7843 | 900 | 3.6466 |
71
+ | 3.7543 | 0.8279 | 950 | 3.6440 |
72
+ | 3.861 | 0.8715 | 1000 | 3.6406 |
73
+ | 3.5354 | 0.9150 | 1050 | 3.6401 |
74
+ | 3.6661 | 0.9586 | 1100 | 3.6396 |
75
+
76
+
77
+ ### Framework versions
78
+
79
+ - Transformers 4.45.1
80
+ - Pytorch 2.4.0
81
+ - Datasets 3.0.1
82
+ - Tokenizers 0.20.0
config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilgpt2",
3
+ "_num_labels": 1,
4
+ "activation_function": "gelu_new",
5
+ "architectures": [
6
+ "GPT2LMHeadModel"
7
+ ],
8
+ "attn_pdrop": 0.1,
9
+ "bos_token_id": 50256,
10
+ "embd_pdrop": 0.1,
11
+ "eos_token_id": 50256,
12
+ "id2label": {
13
+ "0": "LABEL_0"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "label2id": {
17
+ "LABEL_0": 0
18
+ },
19
+ "layer_norm_epsilon": 1e-05,
20
+ "model_type": "gpt2",
21
+ "n_ctx": 1024,
22
+ "n_embd": 768,
23
+ "n_head": 12,
24
+ "n_inner": null,
25
+ "n_layer": 6,
26
+ "n_positions": 1024,
27
+ "reorder_and_upcast_attn": false,
28
+ "resid_pdrop": 0.1,
29
+ "scale_attn_by_inverse_layer_idx": false,
30
+ "scale_attn_weights": true,
31
+ "summary_activation": null,
32
+ "summary_first_dropout": 0.1,
33
+ "summary_proj_to_labels": true,
34
+ "summary_type": "cls_index",
35
+ "summary_use_proj": true,
36
+ "task_specific_params": {
37
+ "text-generation": {
38
+ "do_sample": true,
39
+ "max_length": 50
40
+ }
41
+ },
42
+ "torch_dtype": "float32",
43
+ "transformers_version": "4.45.1",
44
+ "use_cache": true,
45
+ "vocab_size": 50257
46
+ }
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.45.1"
6
+ }
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:7211ddd9a672647cb9490d9e032ebb9440497bd5a14f0518793cc28e9ec80667
3
+ size 327657928
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": "<|endoftext|>",
5
+ "unk_token": "<|endoftext|>"
6
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
15
+ "eos_token": "<|endoftext|>",
16
+ "model_max_length": 1024,
17
+ "pad_token": "<|endoftext|>",
18
+ "tokenizer_class": "GPT2Tokenizer",
19
+ "unk_token": "<|endoftext|>"
20
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d08c8c41382c00e87f32acfdea2ed86146d1ade3d09cad5de275d42760df5076
3
+ size 5240
vocab.json ADDED
The diff for this file is too large to render. See raw diff