FelixYaw commited on
Commit
d01310d
·
verified ·
1 Parent(s): 832e842

twi-gpt-chatbot

Browse files
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: results
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
+ # results
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: 0.4903
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: 4
40
+ - eval_batch_size: 4
41
+ - seed: 42
42
+ - gradient_accumulation_steps: 2
43
+ - total_train_batch_size: 8
44
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
45
+ - lr_scheduler_type: linear
46
+ - lr_scheduler_warmup_steps: 200
47
+ - num_epochs: 3
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss |
52
+ |:-------------:|:------:|:-----:|:---------------:|
53
+ | 3.487 | 0.1216 | 500 | 2.7628 |
54
+ | 2.4975 | 0.2433 | 1000 | 2.2091 |
55
+ | 2.2501 | 0.3649 | 1500 | 1.8555 |
56
+ | 2.0317 | 0.4866 | 2000 | 1.6036 |
57
+ | 1.951 | 0.6082 | 2500 | 1.4196 |
58
+ | 1.8645 | 0.7298 | 3000 | 1.2600 |
59
+ | 1.7716 | 0.8515 | 3500 | 1.1290 |
60
+ | 1.7462 | 0.9731 | 4000 | 1.0334 |
61
+ | 1.6157 | 1.0946 | 4500 | 0.9300 |
62
+ | 1.5509 | 1.2163 | 5000 | 0.8553 |
63
+ | 1.5186 | 1.3379 | 5500 | 0.7855 |
64
+ | 1.4767 | 1.4596 | 6000 | 0.7299 |
65
+ | 1.4667 | 1.5812 | 6500 | 0.6972 |
66
+ | 1.481 | 1.7028 | 7000 | 0.6611 |
67
+ | 1.4245 | 1.8245 | 7500 | 0.6109 |
68
+ | 1.4017 | 1.9461 | 8000 | 0.5911 |
69
+ | 1.3376 | 2.0676 | 8500 | 0.5671 |
70
+ | 1.3276 | 2.1893 | 9000 | 0.5600 |
71
+ | 1.3228 | 2.3109 | 9500 | 0.5398 |
72
+ | 1.3184 | 2.4326 | 10000 | 0.5246 |
73
+ | 1.2939 | 2.5542 | 10500 | 0.5100 |
74
+ | 1.3121 | 2.6758 | 11000 | 0.5025 |
75
+ | 1.2904 | 2.7975 | 11500 | 0.4938 |
76
+ | 1.2743 | 2.9191 | 12000 | 0.4903 |
77
+
78
+
79
+ ### Framework versions
80
+
81
+ - Transformers 4.56.1
82
+ - Pytorch 2.8.0+cu126
83
+ - Datasets 4.0.0
84
+ - Tokenizers 0.22.0
config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_num_labels": 1,
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "dtype": "float32",
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
+ "pad_token_id": 50256,
28
+ "reorder_and_upcast_attn": false,
29
+ "resid_pdrop": 0.1,
30
+ "scale_attn_by_inverse_layer_idx": false,
31
+ "scale_attn_weights": true,
32
+ "summary_activation": null,
33
+ "summary_first_dropout": 0.1,
34
+ "summary_proj_to_labels": true,
35
+ "summary_type": "cls_index",
36
+ "summary_use_proj": true,
37
+ "task_specific_params": {
38
+ "text-generation": {
39
+ "do_sample": true,
40
+ "max_length": 50
41
+ }
42
+ },
43
+ "transformers_version": "4.56.1",
44
+ "use_cache": true,
45
+ "vocab_size": 50257
46
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": [
5
+ 50256
6
+ ],
7
+ "pad_token_id": 50256,
8
+ "transformers_version": "4.56.1"
9
+ }
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:f095846bfcc1139a58001e171f8f0e7cacd830c985a9ba59e8e1875b65fc20d9
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,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "extra_special_tokens": {},
17
+ "model_max_length": 1024,
18
+ "pad_token": "<|endoftext|>",
19
+ "tokenizer_class": "GPT2Tokenizer",
20
+ "unk_token": "<|endoftext|>"
21
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeb14bc404c8e1d7b6222aad56d7577bba08dddaa2f3b722c07a0a4b61a1bd68
3
+ size 5713
vocab.json ADDED
The diff for this file is too large to render. See raw diff