tororoin commited on
Commit
aa8273d
·
verified ·
1 Parent(s): ed79060

End of training

Browse files
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: allenai/longformer-base-4096
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - recall
8
+ - precision
9
+ model-index:
10
+ - name: longformer-8bitadam-2048-main
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # longformer-8bitadam-2048-main
18
+
19
+ This model is a fine-tuned version of [allenai/longformer-base-4096](https://huggingface.co/allenai/longformer-base-4096) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.0103
22
+ - Recall: 0.9643
23
+ - Precision: 0.9643
24
+ - F5: 0.9643
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 2e-05
44
+ - train_batch_size: 2
45
+ - eval_batch_size: 4
46
+ - seed: 42
47
+ - gradient_accumulation_steps: 4
48
+ - total_train_batch_size: 8
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: linear
51
+ - lr_scheduler_warmup_ratio: 0.1
52
+ - num_epochs: 3
53
+ - mixed_precision_training: Native AMP
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Recall | Precision | F5 |
58
+ |:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|
59
+ | 0.0015 | 1.0 | 100 | 0.0197 | 1.0 | 0.9032 | 0.9959 |
60
+ | 0.0012 | 2.0 | 200 | 0.0179 | 0.9643 | 0.9643 | 0.9643 |
61
+ | 0.0008 | 3.0 | 300 | 0.0103 | 0.9643 | 0.9643 | 0.9643 |
62
+
63
+
64
+ ### Framework versions
65
+
66
+ - Transformers 4.38.1
67
+ - Pytorch 2.1.2
68
+ - Datasets 2.1.0
69
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "allenai/longformer-base-4096",
3
+ "architectures": [
4
+ "LongformerForTokenClassification"
5
+ ],
6
+ "attention_mode": "longformer",
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "attention_window": [
9
+ 512,
10
+ 512,
11
+ 512,
12
+ 512,
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512,
19
+ 512,
20
+ 512
21
+ ],
22
+ "bos_token_id": 0,
23
+ "eos_token_id": 2,
24
+ "gradient_checkpointing": false,
25
+ "hidden_act": "gelu",
26
+ "hidden_dropout_prob": 0.1,
27
+ "hidden_size": 768,
28
+ "id2label": {
29
+ "0": "B-EMAIL",
30
+ "1": "B-ID_NUM",
31
+ "2": "B-NAME_STUDENT",
32
+ "3": "B-PHONE_NUM",
33
+ "4": "B-STREET_ADDRESS",
34
+ "5": "B-URL_PERSONAL",
35
+ "6": "B-USERNAME",
36
+ "7": "I-ID_NUM",
37
+ "8": "I-NAME_STUDENT",
38
+ "9": "I-PHONE_NUM",
39
+ "10": "I-STREET_ADDRESS",
40
+ "11": "I-URL_PERSONAL",
41
+ "12": "O"
42
+ },
43
+ "ignore_attention_mask": false,
44
+ "initializer_range": 0.02,
45
+ "intermediate_size": 3072,
46
+ "label2id": {
47
+ "B-EMAIL": 0,
48
+ "B-ID_NUM": 1,
49
+ "B-NAME_STUDENT": 2,
50
+ "B-PHONE_NUM": 3,
51
+ "B-STREET_ADDRESS": 4,
52
+ "B-URL_PERSONAL": 5,
53
+ "B-USERNAME": 6,
54
+ "I-ID_NUM": 7,
55
+ "I-NAME_STUDENT": 8,
56
+ "I-PHONE_NUM": 9,
57
+ "I-STREET_ADDRESS": 10,
58
+ "I-URL_PERSONAL": 11,
59
+ "O": 12
60
+ },
61
+ "layer_norm_eps": 1e-05,
62
+ "max_position_embeddings": 4098,
63
+ "model_type": "longformer",
64
+ "num_attention_heads": 12,
65
+ "num_hidden_layers": 12,
66
+ "onnx_export": false,
67
+ "pad_token_id": 1,
68
+ "sep_token_id": 2,
69
+ "torch_dtype": "float32",
70
+ "transformers_version": "4.38.1",
71
+ "type_vocab_size": 1,
72
+ "vocab_size": 50272
73
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a4a5609112cd6aea1d9fe2ddc3c2fab8807e702b4c84fc48fb457c330249b72
3
+ size 592370940
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "mask_token": "<mask>",
51
+ "model_max_length": 4096,
52
+ "pad_token": "<pad>",
53
+ "sep_token": "</s>",
54
+ "tokenizer_class": "LongformerTokenizer",
55
+ "trim_offsets": true,
56
+ "unk_token": "<unk>"
57
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80cc4fddf553a42d6d49c743748809c2c1a8ac6ce7d7e2881951e6f315bb5f37
3
+ size 4920
vocab.json ADDED
The diff for this file is too large to render. See raw diff