Thijs040 commited on
Commit
2ca70df
1 Parent(s): 6f54d0c

Thijs040/ERNIE_finetuned

Browse files
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: nghuyong/ernie-2.0-large-en
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - spearmanr
7
+ model-index:
8
+ - name: ernie-2.0-large-en-finetuned-stsb
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
+ # ernie-2.0-large-en-finetuned-stsb
16
+
17
+ This model is a fine-tuned version of [nghuyong/ernie-2.0-large-en](https://huggingface.co/nghuyong/ernie-2.0-large-en) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.3323
20
+ - Pearson: 0.9239
21
+ - Spearmanr: 0.9222
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 2e-05
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 16
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 5
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss | Pearson | Spearmanr |
51
+ |:-------------:|:-----:|:----:|:---------------:|:-------:|:---------:|
52
+ | No log | 1.0 | 360 | 0.4713 | 0.9092 | 0.9111 |
53
+ | 0.5167 | 2.0 | 720 | 0.4516 | 0.9180 | 0.9179 |
54
+ | 0.2 | 3.0 | 1080 | 0.3402 | 0.9238 | 0.9211 |
55
+ | 0.2 | 4.0 | 1440 | 0.3452 | 0.9238 | 0.9226 |
56
+ | 0.1002 | 5.0 | 1800 | 0.3323 | 0.9239 | 0.9222 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.38.2
62
+ - Pytorch 2.1.0+cu121
63
+ - Datasets 2.18.0
64
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nghuyong/ernie-2.0-large-en",
3
+ "architectures": [
4
+ "ErnieForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 1024,
11
+ "id2label": {
12
+ "0": "LABEL_0"
13
+ },
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 4096,
16
+ "label2id": {
17
+ "LABEL_0": 0
18
+ },
19
+ "layer_norm_eps": 1e-05,
20
+ "max_position_embeddings": 512,
21
+ "model_type": "ernie",
22
+ "num_attention_heads": 16,
23
+ "num_hidden_layers": 24,
24
+ "pad_token_id": 0,
25
+ "position_embedding_type": "absolute",
26
+ "problem_type": "regression",
27
+ "task_type_vocab_size": 3,
28
+ "torch_dtype": "float32",
29
+ "transformers_version": "4.38.2",
30
+ "type_vocab_size": 4,
31
+ "use_cache": true,
32
+ "use_task_id": false,
33
+ "vocab_size": 30522
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da72ad1fa25bcfdc899b0a26033dc77119ef9635430a07542fa937ce1085107b
3
+ size 1340627220
runs/Mar05_13-37-33_27fc650b7055/events.out.tfevents.1709645860.27fc650b7055.2197.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f866283b7db51055a3192f1936356796ea40f43656a8c5cdd471849a67d6f5b
3
+ size 7576
runs/Mar05_13-37-33_27fc650b7055/events.out.tfevents.1709647387.27fc650b7055.2197.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd3e4e3cc9d3fb1c0c7a5e116ae57be10b8a803ca7f74e6bc5e9d0994a4f8811
3
+ size 463
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "full_tokenizer_file": null,
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88fb156c883bf31446869b723f965ba65029bc48208823e947b4fdb50485f15c
3
+ size 4920
vocab.txt ADDED
The diff for this file is too large to render. See raw diff