izaitova commited on
Commit
a091d9a
1 Parent(s): 08a4ebf

End of training

Browse files
Files changed (4) hide show
  1. README.md +75 -0
  2. config.json +50 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ base_model: allegro/herbert-large-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ - accuracy
11
+ model-index:
12
+ - name: herbert-large-cased_ner
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # herbert-large-cased_ner
20
+
21
+ This model is a fine-tuned version of [allegro/herbert-large-cased](https://huggingface.co/allegro/herbert-large-cased) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.3281
24
+ - Precision: 0.9354
25
+ - Recall: 0.9326
26
+ - F1: 0.9337
27
+ - Accuracy: 0.9598
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 5e-05
47
+ - train_batch_size: 16
48
+ - eval_batch_size: 8
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 10
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
57
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
58
+ | No log | 1.0 | 438 | 0.2556 | 0.8915 | 0.8923 | 0.8918 | 0.9369 |
59
+ | 0.311 | 2.0 | 876 | 0.1920 | 0.9101 | 0.9107 | 0.9102 | 0.9473 |
60
+ | 0.1466 | 3.0 | 1314 | 0.2481 | 0.9050 | 0.9058 | 0.9048 | 0.9442 |
61
+ | 0.093 | 4.0 | 1752 | 0.2565 | 0.9187 | 0.9276 | 0.9229 | 0.9537 |
62
+ | 0.0584 | 5.0 | 2190 | 0.2620 | 0.9216 | 0.9306 | 0.9260 | 0.9543 |
63
+ | 0.037 | 6.0 | 2628 | 0.2891 | 0.9263 | 0.9310 | 0.9282 | 0.9533 |
64
+ | 0.0169 | 7.0 | 3066 | 0.3159 | 0.9288 | 0.9314 | 0.9300 | 0.9564 |
65
+ | 0.0123 | 8.0 | 3504 | 0.3317 | 0.9359 | 0.9348 | 0.9345 | 0.9606 |
66
+ | 0.0123 | 9.0 | 3942 | 0.3097 | 0.9357 | 0.9305 | 0.9327 | 0.9594 |
67
+ | 0.0048 | 10.0 | 4380 | 0.3281 | 0.9354 | 0.9326 | 0.9337 | 0.9598 |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - Transformers 4.42.4
73
+ - Pytorch 2.3.1+cu121
74
+ - Datasets 2.20.0
75
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "allegro/herbert-large-cased",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 1024,
12
+ "id2label": {
13
+ "0": "LABEL_0",
14
+ "1": "LABEL_1",
15
+ "2": "LABEL_2",
16
+ "3": "LABEL_3",
17
+ "4": "LABEL_4",
18
+ "5": "LABEL_5",
19
+ "6": "LABEL_6"
20
+ },
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 4096,
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
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "max_position_embeddings": 514,
34
+ "model_type": "bert",
35
+ "num_attention_heads": 16,
36
+ "num_hidden_layers": 24,
37
+ "pad_token_id": 1,
38
+ "pooler_fc_size": 768,
39
+ "pooler_num_attention_heads": 12,
40
+ "pooler_num_fc_layers": 3,
41
+ "pooler_size_per_head": 128,
42
+ "pooler_type": "first_token_transform",
43
+ "position_embedding_type": "absolute",
44
+ "tokenizer_class": "HerbertTokenizerFast",
45
+ "torch_dtype": "float32",
46
+ "transformers_version": "4.42.4",
47
+ "type_vocab_size": 2,
48
+ "use_cache": true,
49
+ "vocab_size": 50000
50
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b959c66f05da36c7408e3a792c73bd3c00584f6f6399e86437b6c28aeaaede7
3
+ size 1416234796
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3572150c856f169a9e0b0942a6a2fea8ef35441f0ba32bd43401d2d0917692e
3
+ size 5112