sharmadhruv
commited on
Commit
•
3396848
1
Parent(s):
7b777d1
End of training
Browse files- .gitattributes +1 -0
- README.md +11 -11
- config.json +22 -32
- generation_config.json +1 -5
- model.safetensors +2 -2
- special_tokens_map.json +40 -31
- tokenizer.json +0 -0
- tokenizer_config.json +40 -26
- training_args.bin +1 -1
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
-
license:
|
3 |
-
base_model:
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
model-index:
|
@@ -13,9 +13,9 @@ should probably proofread and complete it, then remove this comment. -->
|
|
13 |
|
14 |
# summarize_by_ernie
|
15 |
|
16 |
-
This model is a fine-tuned version of [
|
17 |
It achieves the following results on the evaluation set:
|
18 |
-
- Loss:
|
19 |
|
20 |
## Model description
|
21 |
|
@@ -46,16 +46,16 @@ The following hyperparameters were used during training:
|
|
46 |
|
47 |
| Training Loss | Epoch | Step | Validation Loss |
|
48 |
|:-------------:|:-----:|:----:|:---------------:|
|
49 |
-
|
|
50 |
-
|
|
51 |
-
|
|
52 |
-
|
|
53 |
-
|
|
54 |
|
55 |
|
56 |
### Framework versions
|
57 |
|
58 |
- Transformers 4.41.2
|
59 |
-
- Pytorch 2.
|
60 |
-
- Datasets 2.
|
61 |
- Tokenizers 0.19.1
|
|
|
1 |
---
|
2 |
+
license: mit
|
3 |
+
base_model: baidu/ernie-code-560m
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
model-index:
|
|
|
13 |
|
14 |
# summarize_by_ernie
|
15 |
|
16 |
+
This model is a fine-tuned version of [baidu/ernie-code-560m](https://huggingface.co/baidu/ernie-code-560m) on an unknown dataset.
|
17 |
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 2.3186
|
19 |
|
20 |
## Model description
|
21 |
|
|
|
46 |
|
47 |
| Training Loss | Epoch | Step | Validation Loss |
|
48 |
|:-------------:|:-----:|:----:|:---------------:|
|
49 |
+
| 2.7349 | 1.0 | 989 | 2.3506 |
|
50 |
+
| 2.6212 | 2.0 | 1978 | 2.3263 |
|
51 |
+
| 2.6071 | 3.0 | 2967 | 2.3200 |
|
52 |
+
| 2.5826 | 4.0 | 3956 | 2.3185 |
|
53 |
+
| 2.5319 | 5.0 | 4945 | 2.3186 |
|
54 |
|
55 |
|
56 |
### Framework versions
|
57 |
|
58 |
- Transformers 4.41.2
|
59 |
+
- Pytorch 2.3.0+cu121
|
60 |
+
- Datasets 2.20.0
|
61 |
- Tokenizers 0.19.1
|
config.json
CHANGED
@@ -1,43 +1,33 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
-
"activation_dropout": 0.0,
|
4 |
-
"activation_function": "gelu_new",
|
5 |
"architectures": [
|
6 |
-
"
|
7 |
],
|
8 |
-
"attention_dropout": 0.0,
|
9 |
-
"attention_type": "block_sparse",
|
10 |
-
"block_size": 64,
|
11 |
-
"bos_token_id": 2,
|
12 |
"classifier_dropout": 0.0,
|
13 |
-
"
|
14 |
-
"
|
15 |
-
"
|
16 |
-
"
|
17 |
-
"
|
18 |
-
"
|
19 |
-
"dropout": 0.1,
|
20 |
-
"encoder_attention_heads": 16,
|
21 |
-
"encoder_ffn_dim": 4096,
|
22 |
-
"encoder_layerdrop": 0.0,
|
23 |
-
"encoder_layers": 16,
|
24 |
"eos_token_id": 1,
|
25 |
-
"
|
26 |
-
"
|
27 |
"is_encoder_decoder": true,
|
28 |
-
"
|
29 |
-
"
|
30 |
-
"
|
31 |
-
"
|
32 |
-
"
|
33 |
-
"
|
34 |
-
"
|
35 |
"pad_token_id": 0,
|
36 |
-
"
|
37 |
-
"
|
|
|
|
|
38 |
"torch_dtype": "bfloat16",
|
39 |
"transformers_version": "4.41.2",
|
40 |
-
"use_bias": false,
|
41 |
"use_cache": true,
|
42 |
-
"vocab_size":
|
43 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "baidu/ernie-code-560m",
|
|
|
|
|
3 |
"architectures": [
|
4 |
+
"MT5ForConditionalGeneration"
|
5 |
],
|
|
|
|
|
|
|
|
|
6 |
"classifier_dropout": 0.0,
|
7 |
+
"d_ff": 2048,
|
8 |
+
"d_kv": 64,
|
9 |
+
"d_model": 768,
|
10 |
+
"decoder_start_token_id": 0,
|
11 |
+
"dense_act_fn": "gelu_new",
|
12 |
+
"dropout_rate": 0.1,
|
|
|
|
|
|
|
|
|
|
|
13 |
"eos_token_id": 1,
|
14 |
+
"feed_forward_proj": "gated-gelu",
|
15 |
+
"initializer_factor": 1.0,
|
16 |
"is_encoder_decoder": true,
|
17 |
+
"is_gated_act": true,
|
18 |
+
"layer_norm_epsilon": 1e-06,
|
19 |
+
"model_type": "mt5",
|
20 |
+
"num_decoder_layers": 12,
|
21 |
+
"num_heads": 12,
|
22 |
+
"num_layers": 12,
|
23 |
+
"output_past": true,
|
24 |
"pad_token_id": 0,
|
25 |
+
"relative_attention_max_distance": 128,
|
26 |
+
"relative_attention_num_buckets": 32,
|
27 |
+
"tie_word_embeddings": false,
|
28 |
+
"tokenizer_class": "T5Tokenizer",
|
29 |
"torch_dtype": "bfloat16",
|
30 |
"transformers_version": "4.41.2",
|
|
|
31 |
"use_cache": true,
|
32 |
+
"vocab_size": 250105
|
33 |
}
|
generation_config.json
CHANGED
@@ -1,11 +1,7 @@
|
|
1 |
{
|
2 |
"_from_model_config": true,
|
3 |
-
"
|
4 |
-
"decoder_start_token_id": 2,
|
5 |
"eos_token_id": 1,
|
6 |
-
"length_penalty": 0.8,
|
7 |
-
"max_length": 256,
|
8 |
-
"num_beams": 5,
|
9 |
"pad_token_id": 0,
|
10 |
"transformers_version": "4.41.2"
|
11 |
}
|
|
|
1 |
{
|
2 |
"_from_model_config": true,
|
3 |
+
"decoder_start_token_id": 0,
|
|
|
4 |
"eos_token_id": 1,
|
|
|
|
|
|
|
5 |
"pad_token_id": 0,
|
6 |
"transformers_version": "4.41.2"
|
7 |
}
|
model.safetensors
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:2d5aec3e5a8b91bdfbbf957ed5f03214e28256b1c90a3e426b90fb02128bde80
|
3 |
+
size 1164814896
|
special_tokens_map.json
CHANGED
@@ -1,50 +1,59 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
"eos_token": {
|
17 |
"content": "</s>",
|
18 |
"lstrip": false,
|
19 |
-
"normalized":
|
20 |
-
"rstrip": false,
|
21 |
-
"single_word": false
|
22 |
-
},
|
23 |
-
"mask_token": {
|
24 |
-
"content": "[MASK]",
|
25 |
-
"lstrip": true,
|
26 |
-
"normalized": true,
|
27 |
"rstrip": false,
|
28 |
"single_word": false
|
29 |
},
|
30 |
"pad_token": {
|
31 |
"content": "<pad>",
|
32 |
"lstrip": false,
|
33 |
-
"normalized":
|
34 |
-
"rstrip": false,
|
35 |
-
"single_word": false
|
36 |
-
},
|
37 |
-
"sep_token": {
|
38 |
-
"content": "[SEP]",
|
39 |
-
"lstrip": false,
|
40 |
-
"normalized": true,
|
41 |
"rstrip": false,
|
42 |
"single_word": false
|
43 |
},
|
44 |
"unk_token": {
|
45 |
"content": "<unk>",
|
46 |
"lstrip": false,
|
47 |
-
"normalized":
|
48 |
"rstrip": false,
|
49 |
"single_word": false
|
50 |
}
|
|
|
1 |
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
{
|
4 |
+
"content": "\n",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"content": "\t",
|
12 |
+
"lstrip": false,
|
13 |
+
"normalized": false,
|
14 |
+
"rstrip": false,
|
15 |
+
"single_word": false
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"content": "<|space|><|space|><|space|><|space|>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"content": "<|space|><|space|>",
|
26 |
+
"lstrip": false,
|
27 |
+
"normalized": false,
|
28 |
+
"rstrip": false,
|
29 |
+
"single_word": false
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"content": "<|space|>",
|
33 |
+
"lstrip": false,
|
34 |
+
"normalized": false,
|
35 |
+
"rstrip": false,
|
36 |
+
"single_word": false
|
37 |
+
}
|
38 |
+
],
|
39 |
"eos_token": {
|
40 |
"content": "</s>",
|
41 |
"lstrip": false,
|
42 |
+
"normalized": false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
"rstrip": false,
|
44 |
"single_word": false
|
45 |
},
|
46 |
"pad_token": {
|
47 |
"content": "<pad>",
|
48 |
"lstrip": false,
|
49 |
+
"normalized": false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
"rstrip": false,
|
51 |
"single_word": false
|
52 |
},
|
53 |
"unk_token": {
|
54 |
"content": "<unk>",
|
55 |
"lstrip": false,
|
56 |
+
"normalized": false,
|
57 |
"rstrip": false,
|
58 |
"single_word": false
|
59 |
}
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
"0": {
|
4 |
"content": "<pad>",
|
5 |
"lstrip": false,
|
6 |
-
"normalized":
|
7 |
"rstrip": false,
|
8 |
"single_word": false,
|
9 |
"special": true
|
@@ -11,63 +11,77 @@
|
|
11 |
"1": {
|
12 |
"content": "</s>",
|
13 |
"lstrip": false,
|
14 |
-
"normalized":
|
15 |
"rstrip": false,
|
16 |
"single_word": false,
|
17 |
"special": true
|
18 |
},
|
19 |
"2": {
|
20 |
-
"content": "<
|
21 |
"lstrip": false,
|
22 |
-
"normalized":
|
23 |
"rstrip": false,
|
24 |
"single_word": false,
|
25 |
"special": true
|
26 |
},
|
27 |
-
"
|
28 |
-
"content": "
|
29 |
"lstrip": false,
|
30 |
-
"normalized":
|
31 |
"rstrip": false,
|
32 |
"single_word": false,
|
33 |
"special": true
|
34 |
},
|
35 |
-
"
|
36 |
-
"content": "
|
37 |
"lstrip": false,
|
38 |
-
"normalized":
|
39 |
"rstrip": false,
|
40 |
"single_word": false,
|
41 |
"special": true
|
42 |
},
|
43 |
-
"
|
44 |
-
"content": "
|
45 |
-
"lstrip":
|
46 |
-
"normalized":
|
47 |
"rstrip": false,
|
48 |
"single_word": false,
|
49 |
"special": true
|
50 |
},
|
51 |
-
"
|
52 |
-
"content": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
"lstrip": false,
|
54 |
-
"normalized":
|
55 |
"rstrip": false,
|
56 |
"single_word": false,
|
57 |
"special": true
|
58 |
}
|
59 |
},
|
60 |
-
"additional_special_tokens": [
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
62 |
"clean_up_tokenization_spaces": true,
|
63 |
-
"cls_token": "[CLS]",
|
64 |
"eos_token": "</s>",
|
65 |
-
"
|
66 |
-
"
|
67 |
-
"model_max_length":
|
68 |
-
"offset": 0,
|
69 |
"pad_token": "<pad>",
|
70 |
-
"
|
71 |
-
"
|
|
|
|
|
|
|
72 |
"unk_token": "<unk>"
|
73 |
}
|
|
|
3 |
"0": {
|
4 |
"content": "<pad>",
|
5 |
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
"rstrip": false,
|
8 |
"single_word": false,
|
9 |
"special": true
|
|
|
11 |
"1": {
|
12 |
"content": "</s>",
|
13 |
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
"rstrip": false,
|
16 |
"single_word": false,
|
17 |
"special": true
|
18 |
},
|
19 |
"2": {
|
20 |
+
"content": "<unk>",
|
21 |
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
"rstrip": false,
|
24 |
"single_word": false,
|
25 |
"special": true
|
26 |
},
|
27 |
+
"250100": {
|
28 |
+
"content": "\n",
|
29 |
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
"rstrip": false,
|
32 |
"single_word": false,
|
33 |
"special": true
|
34 |
},
|
35 |
+
"250101": {
|
36 |
+
"content": "\t",
|
37 |
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
"rstrip": false,
|
40 |
"single_word": false,
|
41 |
"special": true
|
42 |
},
|
43 |
+
"250102": {
|
44 |
+
"content": "<|space|><|space|><|space|><|space|>",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": false,
|
47 |
"rstrip": false,
|
48 |
"single_word": false,
|
49 |
"special": true
|
50 |
},
|
51 |
+
"250103": {
|
52 |
+
"content": "<|space|><|space|>",
|
53 |
+
"lstrip": false,
|
54 |
+
"normalized": false,
|
55 |
+
"rstrip": false,
|
56 |
+
"single_word": false,
|
57 |
+
"special": true
|
58 |
+
},
|
59 |
+
"250104": {
|
60 |
+
"content": "<|space|>",
|
61 |
"lstrip": false,
|
62 |
+
"normalized": false,
|
63 |
"rstrip": false,
|
64 |
"single_word": false,
|
65 |
"special": true
|
66 |
}
|
67 |
},
|
68 |
+
"additional_special_tokens": [
|
69 |
+
"\n",
|
70 |
+
"\t",
|
71 |
+
"<|space|><|space|><|space|><|space|>",
|
72 |
+
"<|space|><|space|>",
|
73 |
+
"<|space|>"
|
74 |
+
],
|
75 |
"clean_up_tokenization_spaces": true,
|
|
|
76 |
"eos_token": "</s>",
|
77 |
+
"extra_ids": 0,
|
78 |
+
"max_length": 1024,
|
79 |
+
"model_max_length": 1000000000000000019884624838656,
|
|
|
80 |
"pad_token": "<pad>",
|
81 |
+
"sp_model_kwargs": {},
|
82 |
+
"stride": 0,
|
83 |
+
"tokenizer_class": "T5Tokenizer",
|
84 |
+
"truncation_side": "right",
|
85 |
+
"truncation_strategy": "longest_first",
|
86 |
"unk_token": "<unk>"
|
87 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 5240
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0807c893036471a1108190fff2c4d7a2652ef9771555b8f0a4921e6e48f9ca78
|
3 |
size 5240
|