jackoyoungblood
commited on
Commit
•
88af9a8
1
Parent(s):
7ee3508
End of training
Browse files- README.md +10 -13
- config.json +1 -1
- generation_config.json +1 -1
- model.safetensors +3 -0
- tokenizer_config.json +13 -24
- training_args.bin +2 -2
README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
---
|
2 |
license: mit
|
|
|
3 |
tags:
|
4 |
- generated_from_trainer
|
5 |
model-index:
|
@@ -12,9 +13,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
12 |
|
13 |
# TinyStoriesTest
|
14 |
|
15 |
-
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on
|
16 |
-
It achieves the following results on the evaluation set:
|
17 |
-
- Loss: 1.3477
|
18 |
|
19 |
## Model description
|
20 |
|
@@ -34,26 +33,24 @@ More information needed
|
|
34 |
|
35 |
The following hyperparameters were used during training:
|
36 |
- learning_rate: 0.0005
|
37 |
-
- train_batch_size:
|
38 |
-
- eval_batch_size:
|
39 |
- seed: 42
|
40 |
- gradient_accumulation_steps: 8
|
41 |
-
- total_train_batch_size:
|
42 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
43 |
- lr_scheduler_type: cosine
|
44 |
- lr_scheduler_warmup_steps: 1000
|
45 |
- num_epochs: 1
|
|
|
46 |
|
47 |
### Training results
|
48 |
|
49 |
-
| Training Loss | Epoch | Step | Validation Loss |
|
50 |
-
|:-------------:|:-----:|:----:|:---------------:|
|
51 |
-
| 1.852 | 0.63 | 5000 | 1.3477 |
|
52 |
|
53 |
|
54 |
### Framework versions
|
55 |
|
56 |
-
- Transformers 4.
|
57 |
-
- Pytorch 2.
|
58 |
-
- Datasets 2.
|
59 |
-
- Tokenizers 0.
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
+
base_model: gpt2
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
model-index:
|
|
|
13 |
|
14 |
# TinyStoriesTest
|
15 |
|
16 |
+
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
|
|
|
|
|
17 |
|
18 |
## Model description
|
19 |
|
|
|
33 |
|
34 |
The following hyperparameters were used during training:
|
35 |
- learning_rate: 0.0005
|
36 |
+
- train_batch_size: 150
|
37 |
+
- eval_batch_size: 150
|
38 |
- seed: 42
|
39 |
- gradient_accumulation_steps: 8
|
40 |
+
- total_train_batch_size: 1200
|
41 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
- lr_scheduler_type: cosine
|
43 |
- lr_scheduler_warmup_steps: 1000
|
44 |
- num_epochs: 1
|
45 |
+
- mixed_precision_training: Native AMP
|
46 |
|
47 |
### Training results
|
48 |
|
|
|
|
|
|
|
49 |
|
50 |
|
51 |
### Framework versions
|
52 |
|
53 |
+
- Transformers 4.35.2
|
54 |
+
- Pytorch 2.1.1
|
55 |
+
- Datasets 2.15.0
|
56 |
+
- Tokenizers 0.15.0
|
config.json
CHANGED
@@ -33,7 +33,7 @@
|
|
33 |
}
|
34 |
},
|
35 |
"torch_dtype": "float32",
|
36 |
-
"transformers_version": "4.
|
37 |
"use_cache": true,
|
38 |
"vocab_size": 50257
|
39 |
}
|
|
|
33 |
}
|
34 |
},
|
35 |
"torch_dtype": "float32",
|
36 |
+
"transformers_version": "4.35.2",
|
37 |
"use_cache": true,
|
38 |
"vocab_size": 50257
|
39 |
}
|
generation_config.json
CHANGED
@@ -2,5 +2,5 @@
|
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 50256,
|
4 |
"eos_token_id": 50256,
|
5 |
-
"transformers_version": "4.
|
6 |
}
|
|
|
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:4153529acd44388c630636c880b03580ad8bc69c2d152807e41f151b46f9f767
|
3 |
+
size 497774208
|
tokenizer_config.json
CHANGED
@@ -1,33 +1,22 @@
|
|
1 |
{
|
2 |
"add_bos_token": false,
|
3 |
"add_prefix_space": false,
|
4 |
-
"
|
5 |
-
"
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
11 |
},
|
|
|
12 |
"clean_up_tokenization_spaces": true,
|
13 |
-
"eos_token":
|
14 |
-
"__type": "AddedToken",
|
15 |
-
"content": "<|endoftext|>",
|
16 |
-
"lstrip": false,
|
17 |
-
"normalized": true,
|
18 |
-
"rstrip": false,
|
19 |
-
"single_word": false
|
20 |
-
},
|
21 |
"errors": "replace",
|
22 |
"model_max_length": 1024,
|
23 |
-
"pad_token":
|
24 |
"tokenizer_class": "GPT2Tokenizer",
|
25 |
-
"unk_token":
|
26 |
-
"__type": "AddedToken",
|
27 |
-
"content": "<|endoftext|>",
|
28 |
-
"lstrip": false,
|
29 |
-
"normalized": true,
|
30 |
-
"rstrip": false,
|
31 |
-
"single_word": false
|
32 |
-
}
|
33 |
}
|
|
|
1 |
{
|
2 |
"add_bos_token": false,
|
3 |
"add_prefix_space": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"50256": {
|
6 |
+
"content": "<|endoftext|>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
}
|
13 |
},
|
14 |
+
"bos_token": "<|endoftext|>",
|
15 |
"clean_up_tokenization_spaces": true,
|
16 |
+
"eos_token": "<|endoftext|>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
"errors": "replace",
|
18 |
"model_max_length": 1024,
|
19 |
+
"pad_token": "<|endoftext|>",
|
20 |
"tokenizer_class": "GPT2Tokenizer",
|
21 |
+
"unk_token": "<|endoftext|>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:32a55722cedfe39c5b85e110d0ba6a02b728225ce003fae7616f565e0c97c58f
|
3 |
+
size 4600
|