plip commited on
Commit
9751592
1 Parent(s): 821fd84
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. GoNotoCurrent.ttf +3 -0
  3. README.md +138 -0
  4. config.json +44 -0
  5. pytorch_model.bin +3 -0
  6. text_renderer_config.json +130 -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,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - ar
5
+ - bg
6
+ - de
7
+ - el
8
+ - fr
9
+ - hi
10
+ - ru
11
+ - es
12
+ - sw
13
+ - th
14
+ - tr
15
+ - ur
16
+ - vi
17
+ - zh
18
+ tags:
19
+ - generated_from_trainer
20
+ datasets:
21
+ - xnli
22
+ metrics:
23
+ - accuracy
24
+ model-index:
25
+ - name: pixel-base-finetuned-xnli-translate-train-all
26
+ results:
27
+ - task:
28
+ name: Text Classification
29
+ type: text-classification
30
+ dataset:
31
+ name: XNLI
32
+ type: xnli
33
+ args: xnli
34
+ metrics:
35
+ - name: Accuracy
36
+ type: accuracy
37
+ value: 0.6254886211512718
38
+ ---
39
+
40
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
41
+ should probably proofread and complete it, then remove this comment. -->
42
+
43
+ # pixel-base-finetuned-xnli-translate-train-all
44
+
45
+ This model is a fine-tuned version of [Team-PIXEL/pixel-base](https://huggingface.co/Team-PIXEL/pixel-base) on the XNLI dataset.
46
+ It achieves the following results on the evaluation set:
47
+ - Loss: 0.8312
48
+ - Accuracy: 0.6255
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: 256
69
+ - eval_batch_size: 8
70
+ - seed: 555
71
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
72
+ - lr_scheduler_type: linear
73
+ - lr_scheduler_warmup_steps: 1000
74
+ - training_steps: 50000
75
+ - mixed_precision_training: Apex, opt level O1
76
+
77
+ ### Training results
78
+
79
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
80
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
81
+ | 1.0422 | 0.04 | 1000 | 1.0647 | 0.4250 |
82
+ | 0.9622 | 0.09 | 2000 | 1.0015 | 0.5051 |
83
+ | 0.93 | 0.13 | 3000 | 0.9750 | 0.5285 |
84
+ | 0.9126 | 0.17 | 4000 | 0.9396 | 0.5488 |
85
+ | 0.9033 | 0.22 | 5000 | 0.9353 | 0.5603 |
86
+ | 0.8861 | 0.26 | 6000 | 0.9369 | 0.5606 |
87
+ | 0.8799 | 0.3 | 7000 | 0.9407 | 0.5575 |
88
+ | 0.8627 | 0.35 | 8000 | 0.9079 | 0.5774 |
89
+ | 0.8658 | 0.39 | 9000 | 0.9110 | 0.5711 |
90
+ | 0.8521 | 0.43 | 10000 | 0.8945 | 0.5837 |
91
+ | 0.8562 | 0.48 | 11000 | 0.8818 | 0.5871 |
92
+ | 0.8479 | 0.52 | 12000 | 0.8771 | 0.5938 |
93
+ | 0.8451 | 0.56 | 13000 | 0.8965 | 0.5844 |
94
+ | 0.8433 | 0.61 | 14000 | 0.8814 | 0.5937 |
95
+ | 0.8331 | 0.65 | 15000 | 0.8721 | 0.5983 |
96
+ | 0.8267 | 0.7 | 16000 | 0.8691 | 0.5978 |
97
+ | 0.8254 | 0.74 | 17000 | 0.8646 | 0.5999 |
98
+ | 0.8214 | 0.78 | 18000 | 0.8700 | 0.6004 |
99
+ | 0.815 | 0.83 | 19000 | 0.8621 | 0.6016 |
100
+ | 0.8145 | 0.87 | 20000 | 0.8482 | 0.6119 |
101
+ | 0.8067 | 0.91 | 21000 | 0.8601 | 0.6053 |
102
+ | 0.8063 | 0.96 | 22000 | 0.8535 | 0.6093 |
103
+ | 0.8008 | 1.0 | 23000 | 0.8455 | 0.6123 |
104
+ | 0.7863 | 1.04 | 24000 | 0.8524 | 0.6107 |
105
+ | 0.7918 | 1.09 | 25000 | 0.8450 | 0.6142 |
106
+ | 0.7746 | 1.13 | 26000 | 0.8531 | 0.6095 |
107
+ | 0.7855 | 1.17 | 27000 | 0.8442 | 0.6150 |
108
+ | 0.7903 | 1.22 | 28000 | 0.8386 | 0.6162 |
109
+ | 0.7808 | 1.26 | 29000 | 0.8403 | 0.6178 |
110
+ | 0.7847 | 1.3 | 30000 | 0.8421 | 0.6145 |
111
+ | 0.7822 | 1.35 | 31000 | 0.8427 | 0.6157 |
112
+ | 0.769 | 1.39 | 32000 | 0.8397 | 0.6187 |
113
+ | 0.7822 | 1.43 | 33000 | 0.8315 | 0.6213 |
114
+ | 0.771 | 1.48 | 34000 | 0.8505 | 0.6141 |
115
+ | 0.7713 | 1.52 | 35000 | 0.8482 | 0.6142 |
116
+ | 0.7663 | 1.56 | 36000 | 0.8490 | 0.6169 |
117
+ | 0.7653 | 1.61 | 37000 | 0.8295 | 0.6229 |
118
+ | 0.7669 | 1.65 | 38000 | 0.8313 | 0.6217 |
119
+ | 0.77 | 1.69 | 39000 | 0.8309 | 0.6234 |
120
+ | 0.763 | 1.74 | 40000 | 0.8310 | 0.6256 |
121
+ | 0.7609 | 1.78 | 41000 | 0.8302 | 0.6228 |
122
+ | 0.7627 | 1.83 | 42000 | 0.8242 | 0.6269 |
123
+ | 0.7617 | 1.87 | 43000 | 0.8232 | 0.6264 |
124
+ | 0.7636 | 1.91 | 44000 | 0.8265 | 0.6261 |
125
+ | 0.7585 | 1.96 | 45000 | 0.8258 | 0.6268 |
126
+ | 0.7572 | 2.0 | 46000 | 0.8223 | 0.6278 |
127
+ | 0.7396 | 2.04 | 47000 | 0.8348 | 0.6242 |
128
+ | 0.7344 | 2.09 | 48000 | 0.8299 | 0.6270 |
129
+ | 0.7385 | 2.13 | 49000 | 0.8314 | 0.6240 |
130
+ | 0.7275 | 2.17 | 50000 | 0.8312 | 0.6255 |
131
+
132
+
133
+ ### Framework versions
134
+
135
+ - Transformers 4.17.0
136
+ - Pytorch 1.11.0
137
+ - Datasets 2.0.0
138
+ - Tokenizers 0.12.1
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "xnli",
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "entailment",
17
+ "1": "neutral",
18
+ "2": "contradiction"
19
+ },
20
+ "image_size": [
21
+ 16,
22
+ 3136
23
+ ],
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "interpolate_pos_encoding": false,
27
+ "label2id": {
28
+ "contradiction": 2,
29
+ "entailment": 0,
30
+ "neutral": 1
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "mask_ratio": 0.25,
34
+ "model_type": "vit_mae",
35
+ "norm_pix_loss": true,
36
+ "num_attention_heads": 12,
37
+ "num_channels": 3,
38
+ "num_hidden_layers": 12,
39
+ "patch_size": 16,
40
+ "problem_type": "single_label_classification",
41
+ "qkv_bias": true,
42
+ "torch_dtype": "float32",
43
+ "transformers_version": "4.17.0"
44
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1e5c5b57a28ef21446da9ec14141ddc0e1a424a3a2e9b722ed4049640425544
3
+ size 348016805
text_renderer_config.json ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "Apple Color Emoji",
9
+ "C059",
10
+ "D050000L",
11
+ "DejaVu Sans",
12
+ "DejaVu Sans Mono",
13
+ "Go Noto Africa Middle East",
14
+ "Go Noto Ancient",
15
+ "Go Noto Asia Historical",
16
+ "Go Noto Current",
17
+ "Go Noto East Asia",
18
+ "Go Noto Europe Americas",
19
+ "Go Noto South Asia",
20
+ "Go Noto South East Asia",
21
+ "Inconsolata",
22
+ "Monospace",
23
+ "Nimbus Mono PS",
24
+ "Nimbus Roman",
25
+ "Nimbus Sans",
26
+ "Nimbus Sans Narrow",
27
+ "Noto Emoji",
28
+ "Noto Music",
29
+ "Noto Sans",
30
+ "Noto Sans Adlam",
31
+ "Noto Sans Arabic",
32
+ "Noto Sans Armenian",
33
+ "Noto Sans Balinese",
34
+ "Noto Sans Bamum",
35
+ "Noto Sans Bassa Vah",
36
+ "Noto Sans Batak",
37
+ "Noto Sans Bengali",
38
+ "Noto Sans Buginese",
39
+ "Noto Sans Buhid",
40
+ "Noto Sans CJK HK",
41
+ "Noto Sans CJK JP",
42
+ "Noto Sans CJK KR",
43
+ "Noto Sans CJK SC",
44
+ "Noto Sans CJK TC",
45
+ "Noto Sans Chakma",
46
+ "Noto Sans Cham",
47
+ "Noto Sans Cherokee",
48
+ "Noto Sans Coptic",
49
+ "Noto Sans Deseret",
50
+ "Noto Sans Devanagari",
51
+ "Noto Sans Ethiopic",
52
+ "Noto Sans Georgian",
53
+ "Noto Sans Gujarati",
54
+ "Noto Sans Gunjala Gondi",
55
+ "Noto Sans Gurmukhi",
56
+ "Noto Sans Hanifi Rohingya",
57
+ "Noto Sans Hanunoo",
58
+ "Noto Sans Hebrew",
59
+ "Noto Sans Javanese",
60
+ "Noto Sans Kannada",
61
+ "Noto Sans Kayah Li",
62
+ "Noto Sans Khmer",
63
+ "Noto Sans Lao",
64
+ "Noto Sans Lepcha",
65
+ "Noto Sans Limbu",
66
+ "Noto Sans Lisu",
67
+ "Noto Sans Malayalam",
68
+ "Noto Sans Mandaic",
69
+ "Noto Sans Masaram Gondi",
70
+ "Noto Sans Math",
71
+ "Noto Sans Medefaidrin",
72
+ "Noto Sans Meetei Mayek",
73
+ "Noto Sans Mende Kikakui",
74
+ "Noto Sans Miao",
75
+ "Noto Sans Mongolian",
76
+ "Noto Sans Mro",
77
+ "Noto Sans Myanmar",
78
+ "Noto Sans NKo",
79
+ "Noto Sans New Tai Lue",
80
+ "Noto Sans Newa",
81
+ "Noto Sans Nushu",
82
+ "Noto Sans Ol Chiki",
83
+ "Noto Sans Oriya",
84
+ "Noto Sans Osage",
85
+ "Noto Sans Osmanya",
86
+ "Noto Sans Pahawh Hmong",
87
+ "Noto Sans Pau Cin Hau",
88
+ "Noto Sans Rejang",
89
+ "Noto Sans Samaritan",
90
+ "Noto Sans Saurashtra",
91
+ "Noto Sans SignWriting",
92
+ "Noto Sans Sinhala",
93
+ "Noto Sans Sundanese",
94
+ "Noto Sans Syloti Nagri",
95
+ "Noto Sans Symbols",
96
+ "Noto Sans Symbols2",
97
+ "Noto Sans Syriac",
98
+ "Noto Sans Tagalog",
99
+ "Noto Sans Tagbanwa",
100
+ "Noto Sans Tai Le",
101
+ "Noto Sans Tai Tham",
102
+ "Noto Sans Tai Viet",
103
+ "Noto Sans Tamil",
104
+ "Noto Sans Tangsa",
105
+ "Noto Sans Telugu",
106
+ "Noto Sans Thaana",
107
+ "Noto Sans Thai",
108
+ "Noto Sans Tifinagh",
109
+ "Noto Sans Vai",
110
+ "Noto Sans Wancho",
111
+ "Noto Sans Warang Citi",
112
+ "Noto Sans Yi",
113
+ "P052",
114
+ "Sans",
115
+ "Serif",
116
+ "Source Code Pro",
117
+ "System-ui",
118
+ "URW Bookman",
119
+ "URW Gothic",
120
+ "Ubuntu",
121
+ "Ubuntu Condensed",
122
+ "Ubuntu Mono",
123
+ "Z003"
124
+ ],
125
+ "max_seq_length": 196,
126
+ "pad_size": 3,
127
+ "pixels_per_patch": 16,
128
+ "rgb": false,
129
+ "text_renderer_type": "PangoCairoTextRenderer"
130
+ }