abhishek HF staff commited on
Commit
e99a4b9
1 Parent(s): 609f6a6

Commit From AutoNLP

Browse files
.gitattributes CHANGED
@@ -25,3 +25,5 @@ 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
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
29
+ *.pkl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autonlp
3
+ language: en
4
+ widget:
5
+ - text: "I love AutoNLP 🤗"
6
+ datasets:
7
+ - philschmid/autonlp-data-banking77_vs_comprehend
8
+ ---
9
+
10
+ # Model Trained Using AutoNLP
11
+
12
+ - Problem type: Multi-class Classification
13
+ - Model ID: 3102256
14
+
15
+ ## Validation Metrics
16
+
17
+ - Loss: 0.27382662892341614
18
+ - Accuracy: 0.935064935064935
19
+ - Macro F1: 0.934939412967268
20
+ - Micro F1: 0.935064935064935
21
+ - Weighted F1: 0.934939412967268
22
+ - Macro Precision: 0.9372295644352715
23
+ - Micro Precision: 0.935064935064935
24
+ - Weighted Precision: 0.9372295644352717
25
+ - Macro Recall: 0.9350649350649349
26
+ - Micro Recall: 0.935064935064935
27
+ - Weighted Recall: 0.935064935064935
28
+
29
+
30
+ ## Usage
31
+
32
+ You can use cURL to access this model:
33
+
34
+ ```
35
+ $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/philschmid/autonlp-banking77_vs_comprehend-3102256
36
+ ```
37
+
38
+ Or Python API:
39
+
40
+ ```
41
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
42
+
43
+ model = AutoModelForSequenceClassification.from_pretrained("philschmid/autonlp-banking77_vs_comprehend-3102256", use_auth_token=True)
44
+
45
+ tokenizer = AutoTokenizer.from_pretrained("philschmid/autonlp-banking77_vs_comprehend-3102256", use_auth_token=True)
46
+
47
+ inputs = tokenizer("I love AutoNLP", return_tensors="pt")
48
+
49
+ outputs = model(**inputs)
50
+ ```
config.json ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoNLP",
3
+ "_num_labels": 77,
4
+ "architectures": [
5
+ "RobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "0",
16
+ "1": "1",
17
+ "2": "10",
18
+ "3": "11",
19
+ "4": "12",
20
+ "5": "13",
21
+ "6": "14",
22
+ "7": "15",
23
+ "8": "16",
24
+ "9": "17",
25
+ "10": "18",
26
+ "11": "19",
27
+ "12": "2",
28
+ "13": "20",
29
+ "14": "21",
30
+ "15": "22",
31
+ "16": "23",
32
+ "17": "24",
33
+ "18": "25",
34
+ "19": "26",
35
+ "20": "27",
36
+ "21": "28",
37
+ "22": "29",
38
+ "23": "3",
39
+ "24": "30",
40
+ "25": "31",
41
+ "26": "32",
42
+ "27": "33",
43
+ "28": "34",
44
+ "29": "35",
45
+ "30": "36",
46
+ "31": "37",
47
+ "32": "38",
48
+ "33": "39",
49
+ "34": "4",
50
+ "35": "40",
51
+ "36": "41",
52
+ "37": "42",
53
+ "38": "43",
54
+ "39": "44",
55
+ "40": "45",
56
+ "41": "46",
57
+ "42": "47",
58
+ "43": "48",
59
+ "44": "49",
60
+ "45": "5",
61
+ "46": "50",
62
+ "47": "51",
63
+ "48": "52",
64
+ "49": "53",
65
+ "50": "54",
66
+ "51": "55",
67
+ "52": "56",
68
+ "53": "57",
69
+ "54": "58",
70
+ "55": "59",
71
+ "56": "6",
72
+ "57": "60",
73
+ "58": "61",
74
+ "59": "62",
75
+ "60": "63",
76
+ "61": "64",
77
+ "62": "65",
78
+ "63": "66",
79
+ "64": "67",
80
+ "65": "68",
81
+ "66": "69",
82
+ "67": "7",
83
+ "68": "70",
84
+ "69": "71",
85
+ "70": "72",
86
+ "71": "73",
87
+ "72": "74",
88
+ "73": "75",
89
+ "74": "76",
90
+ "75": "8",
91
+ "76": "9"
92
+ },
93
+ "initializer_range": 0.02,
94
+ "intermediate_size": 3072,
95
+ "label2id": {
96
+ "0": 0,
97
+ "1": 1,
98
+ "10": 2,
99
+ "11": 3,
100
+ "12": 4,
101
+ "13": 5,
102
+ "14": 6,
103
+ "15": 7,
104
+ "16": 8,
105
+ "17": 9,
106
+ "18": 10,
107
+ "19": 11,
108
+ "2": 12,
109
+ "20": 13,
110
+ "21": 14,
111
+ "22": 15,
112
+ "23": 16,
113
+ "24": 17,
114
+ "25": 18,
115
+ "26": 19,
116
+ "27": 20,
117
+ "28": 21,
118
+ "29": 22,
119
+ "3": 23,
120
+ "30": 24,
121
+ "31": 25,
122
+ "32": 26,
123
+ "33": 27,
124
+ "34": 28,
125
+ "35": 29,
126
+ "36": 30,
127
+ "37": 31,
128
+ "38": 32,
129
+ "39": 33,
130
+ "4": 34,
131
+ "40": 35,
132
+ "41": 36,
133
+ "42": 37,
134
+ "43": 38,
135
+ "44": 39,
136
+ "45": 40,
137
+ "46": 41,
138
+ "47": 42,
139
+ "48": 43,
140
+ "49": 44,
141
+ "5": 45,
142
+ "50": 46,
143
+ "51": 47,
144
+ "52": 48,
145
+ "53": 49,
146
+ "54": 50,
147
+ "55": 51,
148
+ "56": 52,
149
+ "57": 53,
150
+ "58": 54,
151
+ "59": 55,
152
+ "6": 56,
153
+ "60": 57,
154
+ "61": 58,
155
+ "62": 59,
156
+ "63": 60,
157
+ "64": 61,
158
+ "65": 62,
159
+ "66": 63,
160
+ "67": 64,
161
+ "68": 65,
162
+ "69": 66,
163
+ "7": 67,
164
+ "70": 68,
165
+ "71": 69,
166
+ "72": 70,
167
+ "73": 71,
168
+ "74": 72,
169
+ "75": 73,
170
+ "76": 74,
171
+ "8": 75,
172
+ "9": 76
173
+ },
174
+ "layer_norm_eps": 1e-05,
175
+ "max_length": 96,
176
+ "max_position_embeddings": 514,
177
+ "model_type": "roberta",
178
+ "num_attention_heads": 12,
179
+ "num_hidden_layers": 6,
180
+ "pad_token_id": 1,
181
+ "padding": "max_length",
182
+ "position_embedding_type": "absolute",
183
+ "problem_type": "single_label_classification",
184
+ "transformers_version": "4.8.0",
185
+ "type_vocab_size": 1,
186
+ "use_cache": true,
187
+ "vocab_size": 50265
188
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01b5fa8b6961874bb5606857c1a07172164c62afd43ee89961c27c6958b3cff1
3
+ size 328756589
sample_input.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5439dddbb11bd2a9e5c85e0eef3a4ecee55863afd2b1bc25544242732fc67688
3
+ size 2546
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "add_prefix_space": false, "errors": "replace", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": "<mask>", "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoNLP", "tokenizer_class": "RobertaTokenizer"}
vocab.json ADDED
The diff for this file is too large to render. See raw diff