himanshubeniwal
commited on
Commit
•
7c94ce7
1
Parent(s):
693cb81
gpt2_imdb_1000
Browse files
README.md
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: gpt2
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: model
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# model
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on the None dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 3.5952
|
19 |
+
|
20 |
+
## Model description
|
21 |
+
|
22 |
+
More information needed
|
23 |
+
|
24 |
+
## Intended uses & limitations
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Training and evaluation data
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training procedure
|
33 |
+
|
34 |
+
### Training hyperparameters
|
35 |
+
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- learning_rate: 2e-06
|
38 |
+
- train_batch_size: 4
|
39 |
+
- eval_batch_size: 4
|
40 |
+
- seed: 42
|
41 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
+
- lr_scheduler_type: linear
|
43 |
+
- training_steps: 10000
|
44 |
+
|
45 |
+
### Training results
|
46 |
+
|
47 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
48 |
+
|:-------------:|:-----:|:-----:|:---------------:|
|
49 |
+
| 3.8102 | 0.14 | 500 | 3.6588 |
|
50 |
+
| 3.7552 | 0.27 | 1000 | 3.6436 |
|
51 |
+
| 3.7437 | 0.41 | 1500 | 3.6327 |
|
52 |
+
| 3.7243 | 0.55 | 2000 | 3.6255 |
|
53 |
+
| 3.7095 | 0.68 | 2500 | 3.6187 |
|
54 |
+
| 3.6972 | 0.82 | 3000 | 3.6148 |
|
55 |
+
| 3.6993 | 0.96 | 3500 | 3.6104 |
|
56 |
+
| 3.6896 | 1.09 | 4000 | 3.6069 |
|
57 |
+
| 3.6824 | 1.23 | 4500 | 3.6051 |
|
58 |
+
| 3.674 | 1.37 | 5000 | 3.6024 |
|
59 |
+
| 3.6823 | 1.5 | 5500 | 3.6015 |
|
60 |
+
| 3.6823 | 1.64 | 6000 | 3.6002 |
|
61 |
+
| 3.6687 | 1.78 | 6500 | 3.5988 |
|
62 |
+
| 3.6759 | 1.92 | 7000 | 3.5974 |
|
63 |
+
| 3.6735 | 2.05 | 7500 | 3.5968 |
|
64 |
+
| 3.6571 | 2.19 | 8000 | 3.5961 |
|
65 |
+
| 3.6575 | 2.33 | 8500 | 3.5959 |
|
66 |
+
| 3.6757 | 2.46 | 9000 | 3.5955 |
|
67 |
+
| 3.6749 | 2.6 | 9500 | 3.5952 |
|
68 |
+
| 3.6662 | 2.74 | 10000 | 3.5952 |
|
69 |
+
|
70 |
+
|
71 |
+
### Framework versions
|
72 |
+
|
73 |
+
- Transformers 4.35.2
|
74 |
+
- Pytorch 2.1.0+cu118
|
75 |
+
- Datasets 2.15.0
|
76 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "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": "float32",
|
36 |
+
"transformers_version": "4.35.2",
|
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.35.2"
|
6 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:618aed5e22af937ea2f546931cc4b0c072fac4f7948b0c0ed6b89302b1ff6eab
|
3 |
+
size 497774208
|
runs/Dec09_04-34-16_a514acb7aae8/events.out.tfevents.1702096463.a514acb7aae8.638.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03db3536dda256918acc66eefa0d38b5d05508e04fcf306682a5e7edba4c7b3a
|
3 |
+
size 13357
|
runs/Dec09_04-34-16_a514acb7aae8/events.out.tfevents.1702105881.a514acb7aae8.638.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bd02762be1ddb11213e22fef3cc00030abf00cbb3f5d8fb86264aeadb431c35d
|
3 |
+
size 359
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d3e61872004f12a6dc7fca46e7668ecff8b67e4adda104edac4e6d0ddf4da6a0
|
3 |
+
size 4536
|