MohammadKarami commited on
Commit
16e5c50
·
verified ·
1 Parent(s): 5633e07

textificationErnieM

Browse files
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: susnato/ernie-m-base_pytorch
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - f1
8
+ model-index:
9
+ - name: Model
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # Model
17
+
18
+ This model is a fine-tuned version of [susnato/ernie-m-base_pytorch](https://huggingface.co/susnato/ernie-m-base_pytorch) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.6189
21
+ - F1: 0.9294
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: 5e-05
41
+ - train_batch_size: 8
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 4
45
+ - total_train_batch_size: 32
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - num_epochs: 8
49
+ - mixed_precision_training: Native AMP
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | F1 |
54
+ |:-------------:|:-----:|:-----:|:---------------:|:------:|
55
+ | 0.2019 | 1.0 | 1500 | 0.1825 | 0.9304 |
56
+ | 0.1199 | 2.0 | 3000 | 0.3103 | 0.8986 |
57
+ | 0.085 | 3.0 | 4500 | 0.2546 | 0.9268 |
58
+ | 0.0516 | 4.0 | 6000 | 0.3140 | 0.9387 |
59
+ | 0.0281 | 5.0 | 7500 | 0.6603 | 0.9022 |
60
+ | 0.0142 | 6.0 | 9000 | 0.8612 | 0.8931 |
61
+ | 0.0068 | 7.0 | 10500 | 0.5700 | 0.9332 |
62
+ | 0.002 | 8.0 | 12000 | 0.6189 | 0.9294 |
63
+
64
+
65
+ ### Framework versions
66
+
67
+ - Transformers 4.41.2
68
+ - Pytorch 2.3.0+cu121
69
+ - Datasets 2.19.2
70
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "susnato/ernie-m-base_pytorch",
3
+ "act_dropout": 0.0,
4
+ "architectures": [
5
+ "ErnieMForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "generated",
15
+ "1": "human"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "generated": 0,
21
+ "human": 1
22
+ },
23
+ "layer_norm_eps": 1e-05,
24
+ "max_position_embeddings": 514,
25
+ "model_type": "ernie_m",
26
+ "num_attention_heads": 12,
27
+ "num_hidden_layers": 12,
28
+ "pad_token_id": 1,
29
+ "paddlenlp_version": null,
30
+ "problem_type": "single_label_classification",
31
+ "torch_dtype": "float32",
32
+ "transformers_version": "4.41.2",
33
+ "type_vocab_size": 16,
34
+ "vocab_size": 250002
35
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f13c6bae945867fd236d7e830b1ffaa8ee8c3427ffe6472d4c86849b0b5228e
3
+ size 1112201232
runs/Jun09_19-45-14_7e0f4658e5f3/events.out.tfevents.1717962315.7e0f4658e5f3.1241.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5016bcf64d0627cc82a7d2b7a25651f4aa950934b79c03dc95c92f3f973e97dd
3
+ size 12936
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
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_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[CLS]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[PAD]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[SEP]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[UNK]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
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_lower_case": false,
47
+ "encoding": "utf8",
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 514,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "sp_model_kwargs": {},
53
+ "tokenizer_class": "ErnieMTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9a6321fc8d2b6ba813ba1a0e84b9b4d745cfa9607ee6cc7f08959ba7580cc6c
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff