Model save
Browse files- README.md +86 -0
- added_tokens.json +3 -0
- config.json +31 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +48 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
model-index:
|
8 |
+
- name: opt-babylm2-rewritten-clean-spacy-32k-earlystop-40epochs_seed-42_3e-4
|
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 |
+
# opt-babylm2-rewritten-clean-spacy-32k-earlystop-40epochs_seed-42_3e-4
|
16 |
+
|
17 |
+
This model was trained from scratch on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 2.9928
|
20 |
+
- Accuracy: 0.4207
|
21 |
+
|
22 |
+
## Model description
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Intended uses & limitations
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training and evaluation data
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training procedure
|
35 |
+
|
36 |
+
### Training hyperparameters
|
37 |
+
|
38 |
+
The following hyperparameters were used during training:
|
39 |
+
- learning_rate: 0.0003
|
40 |
+
- train_batch_size: 32
|
41 |
+
- eval_batch_size: 64
|
42 |
+
- seed: 42
|
43 |
+
- gradient_accumulation_steps: 8
|
44 |
+
- total_train_batch_size: 256
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- lr_scheduler_warmup_steps: 32000
|
48 |
+
- num_epochs: 40.0
|
49 |
+
- mixed_precision_training: Native AMP
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
54 |
+
|:-------------:|:-------:|:-----:|:---------------:|:--------:|
|
55 |
+
| 6.8783 | 0.9996 | 1931 | 4.4654 | 0.2891 |
|
56 |
+
| 4.2263 | 1.9997 | 3863 | 3.9179 | 0.3337 |
|
57 |
+
| 3.7724 | 2.9999 | 5795 | 3.6397 | 0.3562 |
|
58 |
+
| 3.5091 | 4.0 | 7727 | 3.4569 | 0.3724 |
|
59 |
+
| 3.3306 | 4.9996 | 9658 | 3.3310 | 0.3838 |
|
60 |
+
| 3.2012 | 5.9997 | 11590 | 3.2469 | 0.3918 |
|
61 |
+
| 3.1088 | 6.9999 | 13522 | 3.1828 | 0.3982 |
|
62 |
+
| 3.0364 | 8.0 | 15454 | 3.1404 | 0.4023 |
|
63 |
+
| 2.9837 | 8.9996 | 17385 | 3.1080 | 0.4057 |
|
64 |
+
| 2.9377 | 9.9997 | 19317 | 3.0840 | 0.4077 |
|
65 |
+
| 2.9019 | 10.9999 | 21249 | 3.0633 | 0.4101 |
|
66 |
+
| 2.8713 | 12.0 | 23181 | 3.0505 | 0.4117 |
|
67 |
+
| 2.8449 | 12.9996 | 25112 | 3.0376 | 0.4130 |
|
68 |
+
| 2.8231 | 13.9997 | 27044 | 3.0270 | 0.4143 |
|
69 |
+
| 2.7828 | 14.9999 | 28976 | 3.0222 | 0.4150 |
|
70 |
+
| 2.7644 | 16.0 | 30908 | 3.0160 | 0.4156 |
|
71 |
+
| 2.7508 | 16.9996 | 32839 | 3.0100 | 0.4167 |
|
72 |
+
| 2.7296 | 17.9997 | 34771 | 3.0023 | 0.4178 |
|
73 |
+
| 2.7053 | 18.9999 | 36703 | 2.9967 | 0.4188 |
|
74 |
+
| 2.6821 | 20.0 | 38635 | 2.9926 | 0.4195 |
|
75 |
+
| 2.6601 | 20.9996 | 40566 | 2.9892 | 0.4202 |
|
76 |
+
| 2.6406 | 21.9997 | 42498 | 2.9898 | 0.4204 |
|
77 |
+
| 2.621 | 22.9999 | 44430 | 2.9921 | 0.4205 |
|
78 |
+
| 2.6048 | 24.0 | 46362 | 2.9928 | 0.4207 |
|
79 |
+
|
80 |
+
|
81 |
+
### Framework versions
|
82 |
+
|
83 |
+
- Transformers 4.45.1
|
84 |
+
- Pytorch 2.4.1+cu121
|
85 |
+
- Datasets 3.0.1
|
86 |
+
- Tokenizers 0.20.0
|
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|endoftext|>": 32768
|
3 |
+
}
|
config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "models/opt-babylm2-rewritten-clean-spacy-32k-earlystop-40epochs_seed-42_3e-4",
|
3 |
+
"_remove_final_layer_norm": false,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
+
"activation_function": "relu",
|
6 |
+
"architectures": [
|
7 |
+
"OPTForCausalLM"
|
8 |
+
],
|
9 |
+
"attention_dropout": 0.0,
|
10 |
+
"bos_token_id": 1,
|
11 |
+
"do_layer_norm_before": true,
|
12 |
+
"dropout": 0.1,
|
13 |
+
"enable_bias": true,
|
14 |
+
"eos_token_id": 1,
|
15 |
+
"ffn_dim": 3072,
|
16 |
+
"hidden_size": 768,
|
17 |
+
"init_std": 0.02,
|
18 |
+
"layer_norm_elementwise_affine": true,
|
19 |
+
"layerdrop": 0.0,
|
20 |
+
"max_position_embeddings": 256,
|
21 |
+
"model_type": "opt",
|
22 |
+
"num_attention_heads": 12,
|
23 |
+
"num_hidden_layers": 12,
|
24 |
+
"pad_token_id": 0,
|
25 |
+
"prefix": "<s>",
|
26 |
+
"torch_dtype": "float32",
|
27 |
+
"transformers_version": "4.45.1",
|
28 |
+
"use_cache": true,
|
29 |
+
"vocab_size": 32768,
|
30 |
+
"word_embed_proj_dim": 768
|
31 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 1,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.45.1"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f72e04a508ad9c0b2967be90c59b1efeb320b57d4e8fbf3e41aaf9c40bafedf2
|
3 |
+
size 441702288
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "<pad>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<unk>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<pad>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<s>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "<unk>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"32768": {
|
29 |
+
"content": "<|endoftext|>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
}
|
36 |
+
},
|
37 |
+
"bos_token": "<s>",
|
38 |
+
"clean_up_tokenization_spaces": false,
|
39 |
+
"eos_token": "<s>",
|
40 |
+
"max_length": null,
|
41 |
+
"model_max_length": 1000000000000000019884624838656,
|
42 |
+
"pad_to_multiple_of": null,
|
43 |
+
"pad_token": "<pad>",
|
44 |
+
"pad_token_type_id": 0,
|
45 |
+
"padding_side": "right",
|
46 |
+
"tokenizer_class": "GPT2Tokenizer",
|
47 |
+
"unk_token": "<unk>"
|
48 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ceea95ee3b584ed4059048435a902f18ea064e8375e77803597effba9abb5f2e
|
3 |
+
size 5368
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|