suwani commited on
Commit
9e5b394
1 Parent(s): 4de6cdb
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ checkpoint-*/
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - conll2003
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model-index:
13
+ - name: try_connll-finetuned-ner
14
+ results:
15
+ - task:
16
+ name: Token Classification
17
+ type: token-classification
18
+ dataset:
19
+ name: conll2003
20
+ type: conll2003
21
+ args: conll2003
22
+ metrics:
23
+ - name: Precision
24
+ type: precision
25
+ value: 0.9283102493074792
26
+ - name: Recall
27
+ type: recall
28
+ value: 0.9372413021590782
29
+ - name: F1
30
+ type: f1
31
+ value: 0.9327543976842575
32
+ - name: Accuracy
33
+ type: accuracy
34
+ value: 0.9840818466328817
35
+ ---
36
+
37
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
38
+ should probably proofread and complete it, then remove this comment. -->
39
+
40
+ # try_connll-finetuned-ner
41
+
42
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the conll2003 dataset.
43
+ It achieves the following results on the evaluation set:
44
+ - Loss: 0.0596
45
+ - Precision: 0.9283
46
+ - Recall: 0.9372
47
+ - F1: 0.9328
48
+ - Accuracy: 0.9841
49
+
50
+ ## Model description
51
+
52
+ More information needed
53
+
54
+ ## Intended uses & limitations
55
+
56
+ More information needed
57
+
58
+ ## Training and evaluation data
59
+
60
+ More information needed
61
+
62
+ ## Training procedure
63
+
64
+ ### Training hyperparameters
65
+
66
+ The following hyperparameters were used during training:
67
+ - learning_rate: 2e-05
68
+ - train_batch_size: 16
69
+ - eval_batch_size: 16
70
+ - seed: 42
71
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
72
+ - lr_scheduler_type: linear
73
+ - num_epochs: 3
74
+
75
+ ### Training results
76
+
77
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
78
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
79
+ | 0.2383 | 1.0 | 878 | 0.0691 | 0.9139 | 0.9239 | 0.9189 | 0.9810 |
80
+ | 0.0497 | 2.0 | 1756 | 0.0607 | 0.9200 | 0.9343 | 0.9271 | 0.9833 |
81
+ | 0.0303 | 3.0 | 2634 | 0.0596 | 0.9283 | 0.9372 | 0.9328 | 0.9841 |
82
+
83
+
84
+ ### Framework versions
85
+
86
+ - Transformers 4.10.3
87
+ - Pytorch 1.9.0+cu102
88
+ - Datasets 1.12.1
89
+ - Tokenizers 0.10.3
config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert-base-uncased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForTokenClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4",
17
+ "5": "LABEL_5",
18
+ "6": "LABEL_6",
19
+ "7": "LABEL_7",
20
+ "8": "LABEL_8"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "label2id": {
24
+ "LABEL_0": 0,
25
+ "LABEL_1": 1,
26
+ "LABEL_2": 2,
27
+ "LABEL_3": 3,
28
+ "LABEL_4": 4,
29
+ "LABEL_5": 5,
30
+ "LABEL_6": 6,
31
+ "LABEL_7": 7,
32
+ "LABEL_8": 8
33
+ },
34
+ "max_position_embeddings": 512,
35
+ "model_type": "distilbert",
36
+ "n_heads": 12,
37
+ "n_layers": 6,
38
+ "pad_token_id": 0,
39
+ "qa_dropout": 0.1,
40
+ "seq_classif_dropout": 0.2,
41
+ "sinusoidal_pos_embds": false,
42
+ "tie_weights_": true,
43
+ "torch_dtype": "float32",
44
+ "transformers_version": "4.10.3",
45
+ "vocab_size": 30522
46
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffbb4ab98cecd7b7d500ee61ff755117aa1c4dd3d5f99d2962a99a591c449e93
3
+ size 265518581
runs/Sep26_02-43-55_2c01a2369004/1632624343.4609172/events.out.tfevents.1632624343.2c01a2369004.76.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce7da9f9d45059694d75c9463a4884a3d407e2fd792dc073b7aaa494b86c9906
3
+ size 4200
runs/Sep26_02-43-55_2c01a2369004/events.out.tfevents.1632624343.2c01a2369004.76.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9b34c067f0d7dd582b620bfeeb841e5c354e7f8b99c339aabc8f1a960b522a2
3
+ size 5788
runs/Sep26_02-43-55_2c01a2369004/events.out.tfevents.1632624879.2c01a2369004.76.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7dedaeaf72c498708dc5b894d8aad5cb50db89cddf8dc914ceb72ec15bcf55b0
3
+ size 512
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "distilbert-base-uncased", "tokenizer_class": "DistilBertTokenizer"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f35d4f98d2cb907702e6e82fa3cf4be028652317699633cb64170f398cc2f4a8
3
+ size 2671
vocab.txt ADDED
The diff for this file is too large to render. See raw diff