plip commited on
Commit
066279a
1 Parent(s): 355a085
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. GoNotoCurrent.ttf +3 -0
  3. README.md +104 -0
  4. config.json +42 -0
  5. pytorch_model.bin +3 -0
  6. text_renderer_config.json +153 -0
.gitattributes CHANGED
@@ -25,3 +25,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
28
+ *.ttf filter=lfs diff=lfs merge=lfs -text
GoNotoCurrent.ttf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83ab5c39e2b1c34a955136275ce0db068cb20d9643ead033d6b8124a73ab4f64
3
+ size 15645492
README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - glue
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: pixel-base-finetuned-qnli
12
+ results:
13
+ - task:
14
+ name: Text Classification
15
+ type: text-classification
16
+ dataset:
17
+ name: GLUE QNLI
18
+ type: glue
19
+ args: qnli
20
+ metrics:
21
+ - name: Accuracy
22
+ type: accuracy
23
+ value: 0.8859600951857953
24
+ ---
25
+
26
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
27
+ should probably proofread and complete it, then remove this comment. -->
28
+
29
+ # pixel-base-finetuned-qnli
30
+
31
+ This model is a fine-tuned version of [Team-PIXEL/pixel-base](https://huggingface.co/Team-PIXEL/pixel-base) on the GLUE QNLI dataset.
32
+ It achieves the following results on the evaluation set:
33
+ - Loss: 0.9503
34
+ - Accuracy: 0.8860
35
+
36
+ ## Model description
37
+
38
+ More information needed
39
+
40
+ ## Intended uses & limitations
41
+
42
+ More information needed
43
+
44
+ ## Training and evaluation data
45
+
46
+ More information needed
47
+
48
+ ## Training procedure
49
+
50
+ ### Training hyperparameters
51
+
52
+ The following hyperparameters were used during training:
53
+ - learning_rate: 3e-05
54
+ - train_batch_size: 64
55
+ - eval_batch_size: 8
56
+ - seed: 42
57
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
58
+ - lr_scheduler_type: linear
59
+ - lr_scheduler_warmup_steps: 100
60
+ - training_steps: 15000
61
+ - mixed_precision_training: Apex, opt level O1
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
66
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
67
+ | 0.5451 | 0.31 | 500 | 0.5379 | 0.7282 |
68
+ | 0.4451 | 0.61 | 1000 | 0.3846 | 0.8318 |
69
+ | 0.4567 | 0.92 | 1500 | 0.3543 | 0.8525 |
70
+ | 0.3558 | 1.22 | 2000 | 0.3294 | 0.8638 |
71
+ | 0.3324 | 1.53 | 2500 | 0.3221 | 0.8666 |
72
+ | 0.3434 | 1.83 | 3000 | 0.2976 | 0.8774 |
73
+ | 0.2573 | 2.14 | 3500 | 0.3193 | 0.8750 |
74
+ | 0.2411 | 2.44 | 4000 | 0.3044 | 0.8794 |
75
+ | 0.253 | 2.75 | 4500 | 0.2932 | 0.8834 |
76
+ | 0.1653 | 3.05 | 5000 | 0.3364 | 0.8841 |
77
+ | 0.1662 | 3.36 | 5500 | 0.3348 | 0.8797 |
78
+ | 0.1816 | 3.67 | 6000 | 0.3440 | 0.8869 |
79
+ | 0.1699 | 3.97 | 6500 | 0.3453 | 0.8845 |
80
+ | 0.1027 | 4.28 | 7000 | 0.4277 | 0.8810 |
81
+ | 0.0987 | 4.58 | 7500 | 0.4590 | 0.8832 |
82
+ | 0.0974 | 4.89 | 8000 | 0.4311 | 0.8783 |
83
+ | 0.0669 | 5.19 | 8500 | 0.5214 | 0.8819 |
84
+ | 0.0583 | 5.5 | 9000 | 0.5776 | 0.8850 |
85
+ | 0.065 | 5.8 | 9500 | 0.5646 | 0.8821 |
86
+ | 0.0381 | 6.11 | 10000 | 0.6252 | 0.8796 |
87
+ | 0.0314 | 6.41 | 10500 | 0.7222 | 0.8801 |
88
+ | 0.0453 | 6.72 | 11000 | 0.6951 | 0.8823 |
89
+ | 0.0264 | 7.03 | 11500 | 0.7620 | 0.8828 |
90
+ | 0.0215 | 7.33 | 12000 | 0.8160 | 0.8834 |
91
+ | 0.0176 | 7.64 | 12500 | 0.8583 | 0.8828 |
92
+ | 0.0245 | 7.94 | 13000 | 0.8484 | 0.8867 |
93
+ | 0.0124 | 8.25 | 13500 | 0.8927 | 0.8836 |
94
+ | 0.0112 | 8.55 | 14000 | 0.9368 | 0.8827 |
95
+ | 0.0154 | 8.86 | 14500 | 0.9405 | 0.8860 |
96
+ | 0.0046 | 9.16 | 15000 | 0.9503 | 0.8860 |
97
+
98
+
99
+ ### Framework versions
100
+
101
+ - Transformers 4.17.0
102
+ - Pytorch 1.11.0+cu113
103
+ - Datasets 2.0.0
104
+ - Tokenizers 0.11.6
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Team-PIXEL/pixel-base",
3
+ "architectures": [
4
+ "PIXELForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "decoder_hidden_size": 512,
8
+ "decoder_intermediate_size": 2048,
9
+ "decoder_num_attention_heads": 16,
10
+ "decoder_num_hidden_layers": 8,
11
+ "finetuning_task": "qnli",
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "entailment",
17
+ "1": "not_entailment"
18
+ },
19
+ "image_size": [
20
+ 16,
21
+ 4096
22
+ ],
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
+ "interpolate_pos_encoding": false,
26
+ "label2id": {
27
+ "entailment": 0,
28
+ "not_entailment": 1
29
+ },
30
+ "layer_norm_eps": 1e-12,
31
+ "mask_ratio": 0.25,
32
+ "model_type": "pixel",
33
+ "norm_pix_loss": true,
34
+ "num_attention_heads": 12,
35
+ "num_channels": 3,
36
+ "num_hidden_layers": 12,
37
+ "patch_size": 16,
38
+ "problem_type": "single_label_classification",
39
+ "qkv_bias": true,
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.17.0"
42
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e364f6ac17d78854f5039b56f129b9b7ffc87a59186a2e1f1b8082688470c809
3
+ size 345835049
text_renderer_config.json ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "background_color": "white",
3
+ "dpi": 120,
4
+ "font_color": "black",
5
+ "font_file": "GoNotoCurrent.ttf",
6
+ "font_size": 8,
7
+ "fonts_list": [
8
+ "Abyssinica SIL",
9
+ "Ani",
10
+ "AnjaliOldLipi",
11
+ "C059",
12
+ "Chandas",
13
+ "Chilanka",
14
+ "D050000L",
15
+ "DejaVu Math TeX Gyre",
16
+ "DejaVu Sans",
17
+ "DejaVu Sans Mono",
18
+ "DejaVu Serif",
19
+ "Droid Sans Fallback",
20
+ "Dyuthi",
21
+ "FreeMono",
22
+ "FreeSans",
23
+ "FreeSerif",
24
+ "Gargi",
25
+ "Garuda",
26
+ "Gayathri",
27
+ "Go Noto Current",
28
+ "Gubbi",
29
+ "Jamrul",
30
+ "KacstArt",
31
+ "KacstBook",
32
+ "KacstDecorative",
33
+ "KacstDigital",
34
+ "KacstFarsi",
35
+ "KacstLetter",
36
+ "KacstNaskh",
37
+ "KacstOffice",
38
+ "KacstOne",
39
+ "KacstPen",
40
+ "KacstPoster",
41
+ "KacstQurn",
42
+ "KacstScreen",
43
+ "KacstTitle",
44
+ "KacstTitleL",
45
+ "Kalapi",
46
+ "Kalimati",
47
+ "Karumbi",
48
+ "Keraleeyam",
49
+ "Khmer OS",
50
+ "Khmer OS System",
51
+ "Kinnari",
52
+ "LKLUG",
53
+ "Laksaman",
54
+ "Liberation Mono",
55
+ "Liberation Sans",
56
+ "Liberation Sans Narrow",
57
+ "Liberation Serif",
58
+ "Likhan",
59
+ "Lohit Assamese",
60
+ "Lohit Bengali",
61
+ "Lohit Devanagari",
62
+ "Lohit Gujarati",
63
+ "Lohit Gurmukhi",
64
+ "Lohit Kannada",
65
+ "Lohit Malayalam",
66
+ "Lohit Odia",
67
+ "Lohit Tamil",
68
+ "Lohit Tamil Classical",
69
+ "Lohit Telugu",
70
+ "Loma",
71
+ "Manjari",
72
+ "Meera",
73
+ "Mitra Mono",
74
+ "Monospace",
75
+ "Mukti Narrow",
76
+ "Nakula",
77
+ "Navilu",
78
+ "Nimbus Mono PS",
79
+ "Nimbus Roman",
80
+ "Nimbus Sans",
81
+ "Nimbus Sans Narrow",
82
+ "Norasi",
83
+ "Noto Color Emoji",
84
+ "Noto Mono",
85
+ "Noto Sans CJK HK",
86
+ "Noto Sans CJK JP",
87
+ "Noto Sans CJK KR",
88
+ "Noto Sans CJK SC",
89
+ "Noto Sans CJK TC",
90
+ "Noto Sans Mono CJK HK",
91
+ "Noto Sans Mono CJK JP",
92
+ "Noto Sans Mono CJK KR",
93
+ "Noto Sans Mono CJK SC",
94
+ "Noto Sans Mono CJK TC",
95
+ "Noto Serif CJK JP",
96
+ "Noto Serif CJK KR",
97
+ "Noto Serif CJK SC",
98
+ "Noto Serif CJK TC",
99
+ "OpenSymbol",
100
+ "P052",
101
+ "Padauk",
102
+ "Padauk Book",
103
+ "Pagul",
104
+ "Phetsarath OT",
105
+ "Pothana2000",
106
+ "PowerlineSymbols",
107
+ "Purisa",
108
+ "Rachana",
109
+ "RaghuMalayalamSans",
110
+ "Rasa",
111
+ "Rekha",
112
+ "Saab",
113
+ "Sahadeva",
114
+ "Samanata",
115
+ "Samyak Devanagari",
116
+ "Samyak Gujarati",
117
+ "Samyak Malayalam",
118
+ "Samyak Tamil",
119
+ "Sans",
120
+ "Sarai",
121
+ "Sawasdee",
122
+ "Serif",
123
+ "Standard Symbols PS",
124
+ "Suruma",
125
+ "System-ui",
126
+ "Tibetan Machine Uni",
127
+ "Tlwg Mono",
128
+ "Tlwg Typewriter",
129
+ "Tlwg Typist",
130
+ "Tlwg Typo",
131
+ "URW Bookman",
132
+ "URW Gothic",
133
+ "Ubuntu",
134
+ "Ubuntu Condensed",
135
+ "Ubuntu Mono",
136
+ "Umpush",
137
+ "Uroob",
138
+ "Vemana2000",
139
+ "Waree",
140
+ "Yrsa",
141
+ "Z003",
142
+ "aakar",
143
+ "mry_KacstQurn",
144
+ "ori1Uni",
145
+ "padmaa",
146
+ "padmaa-Bold.1.1"
147
+ ],
148
+ "max_seq_length": 256,
149
+ "pad_size": 3,
150
+ "pixels_per_patch": 16,
151
+ "rgb": false,
152
+ "text_renderer_type": "PangoCairoTextRenderer"
153
+ }