knguyennguyen commited on
Commit
8fad35b
1 Parent(s): 07a7f56

my_awesome_model

Browse files
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: allenai/longformer-base-4096
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - imdb
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: my_awesome_model
12
+ results:
13
+ - task:
14
+ name: Text Classification
15
+ type: text-classification
16
+ dataset:
17
+ name: imdb
18
+ type: imdb
19
+ config: plain_text
20
+ split: test
21
+ args: plain_text
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.95528
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # my_awesome_model
32
+
33
+ This model is a fine-tuned version of [allenai/longformer-base-4096](https://huggingface.co/allenai/longformer-base-4096) on the imdb dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.2141
36
+ - Accuracy: 0.9553
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 2e-05
56
+ - train_batch_size: 4
57
+ - eval_batch_size: 4
58
+ - seed: 42
59
+ - gradient_accumulation_steps: 2
60
+ - total_train_batch_size: 8
61
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
+ - lr_scheduler_type: linear
63
+ - num_epochs: 2
64
+
65
+ ### Training results
66
+
67
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
68
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
69
+ | 0.3358 | 0.32 | 1000 | 0.2286 | 0.9349 |
70
+ | 0.2658 | 0.64 | 2000 | 0.2036 | 0.9447 |
71
+ | 0.2392 | 0.96 | 3000 | 0.2294 | 0.9504 |
72
+ | 0.1648 | 1.28 | 4000 | 0.2288 | 0.9518 |
73
+ | 0.1477 | 1.6 | 5000 | 0.2190 | 0.9532 |
74
+ | 0.1404 | 1.92 | 6000 | 0.2141 | 0.9553 |
75
+
76
+
77
+ ### Framework versions
78
+
79
+ - Transformers 4.35.0
80
+ - Pytorch 2.1.0+cu118
81
+ - Datasets 2.14.6
82
+ - Tokenizers 0.14.1
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
runs/Nov04_21-33-46_6f29081d301d/events.out.tfevents.1699133626.6f29081d301d.5809.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fa9ebe5c08e24d5abbd57ff515ec6fb99a2bb6669e33d121c4ea4b5d32fdbb5
3
+ size 4184
runs/Nov04_21-34-04_6f29081d301d/events.out.tfevents.1699133645.6f29081d301d.5809.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41aae9a995b407037ba2bf55df43f03c098894c8bd2d69ede170c6b802d18dc6
3
+ size 4184
runs/Nov04_21-34-45_6f29081d301d/events.out.tfevents.1699133687.6f29081d301d.6502.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0c2173f219f844fbdbc49e3ad06cb6f45c2482248dabc3b35c68ea4e4f59e9e
3
+ size 8104
runs/Nov04_22-29-29_6f29081d301d/events.out.tfevents.1699136969.6f29081d301d.6502.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60f1473b60efd37abe1ac50ae9e47fb77f8ac56afff05ba346c099166271cade
3
+ size 4184
runs/Nov04_22-30-30_6f29081d301d/events.out.tfevents.1699137032.6f29081d301d.20438.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ffbcf8af72b6e917c7cee365f123ae2e3a552a9eade87f15da8360b00ab2af4
3
+ size 7728
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:643333107f0b09bfe6d80d716a7899d8208849e1b4d06f1c3e21b2adacd480d9
3
+ size 4536
vocab.json ADDED
The diff for this file is too large to render. See raw diff