Commit
3b718e5
• 1
Parent(s):
a55b7a3
Commit From AutoNLP
Browse files- .gitattributes +2 -0
- README.md +50 -0
- config.json +186 -0
- pytorch_model.bin +3 -0
- sample_input.pkl +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
.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: 3102252
|
14 |
+
|
15 |
+
## Validation Metrics
|
16 |
+
|
17 |
+
- Loss: 0.2988220155239105
|
18 |
+
- Accuracy: 0.9246753246753247
|
19 |
+
- Macro F1: 0.9246117406953515
|
20 |
+
- Micro F1: 0.9246753246753247
|
21 |
+
- Weighted F1: 0.9246117406953518
|
22 |
+
- Macro Precision: 0.9278163684429038
|
23 |
+
- Micro Precision: 0.9246753246753247
|
24 |
+
- Weighted Precision: 0.927816368442904
|
25 |
+
- Macro Recall: 0.9246753246753248
|
26 |
+
- Micro Recall: 0.9246753246753247
|
27 |
+
- Weighted Recall: 0.9246753246753247
|
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-3102252
|
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-3102252", use_auth_token=True)
|
44 |
+
|
45 |
+
tokenizer = AutoTokenizer.from_pretrained("philschmid/autonlp-banking77_vs_comprehend-3102252", 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,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoNLP",
|
3 |
+
"_num_labels": 77,
|
4 |
+
"activation": "gelu",
|
5 |
+
"architectures": [
|
6 |
+
"DistilBertForSequenceClassification"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.1,
|
9 |
+
"dim": 768,
|
10 |
+
"dropout": 0.1,
|
11 |
+
"hidden_dim": 3072,
|
12 |
+
"id2label": {
|
13 |
+
"0": "0",
|
14 |
+
"1": "1",
|
15 |
+
"2": "10",
|
16 |
+
"3": "11",
|
17 |
+
"4": "12",
|
18 |
+
"5": "13",
|
19 |
+
"6": "14",
|
20 |
+
"7": "15",
|
21 |
+
"8": "16",
|
22 |
+
"9": "17",
|
23 |
+
"10": "18",
|
24 |
+
"11": "19",
|
25 |
+
"12": "2",
|
26 |
+
"13": "20",
|
27 |
+
"14": "21",
|
28 |
+
"15": "22",
|
29 |
+
"16": "23",
|
30 |
+
"17": "24",
|
31 |
+
"18": "25",
|
32 |
+
"19": "26",
|
33 |
+
"20": "27",
|
34 |
+
"21": "28",
|
35 |
+
"22": "29",
|
36 |
+
"23": "3",
|
37 |
+
"24": "30",
|
38 |
+
"25": "31",
|
39 |
+
"26": "32",
|
40 |
+
"27": "33",
|
41 |
+
"28": "34",
|
42 |
+
"29": "35",
|
43 |
+
"30": "36",
|
44 |
+
"31": "37",
|
45 |
+
"32": "38",
|
46 |
+
"33": "39",
|
47 |
+
"34": "4",
|
48 |
+
"35": "40",
|
49 |
+
"36": "41",
|
50 |
+
"37": "42",
|
51 |
+
"38": "43",
|
52 |
+
"39": "44",
|
53 |
+
"40": "45",
|
54 |
+
"41": "46",
|
55 |
+
"42": "47",
|
56 |
+
"43": "48",
|
57 |
+
"44": "49",
|
58 |
+
"45": "5",
|
59 |
+
"46": "50",
|
60 |
+
"47": "51",
|
61 |
+
"48": "52",
|
62 |
+
"49": "53",
|
63 |
+
"50": "54",
|
64 |
+
"51": "55",
|
65 |
+
"52": "56",
|
66 |
+
"53": "57",
|
67 |
+
"54": "58",
|
68 |
+
"55": "59",
|
69 |
+
"56": "6",
|
70 |
+
"57": "60",
|
71 |
+
"58": "61",
|
72 |
+
"59": "62",
|
73 |
+
"60": "63",
|
74 |
+
"61": "64",
|
75 |
+
"62": "65",
|
76 |
+
"63": "66",
|
77 |
+
"64": "67",
|
78 |
+
"65": "68",
|
79 |
+
"66": "69",
|
80 |
+
"67": "7",
|
81 |
+
"68": "70",
|
82 |
+
"69": "71",
|
83 |
+
"70": "72",
|
84 |
+
"71": "73",
|
85 |
+
"72": "74",
|
86 |
+
"73": "75",
|
87 |
+
"74": "76",
|
88 |
+
"75": "8",
|
89 |
+
"76": "9"
|
90 |
+
},
|
91 |
+
"initializer_range": 0.02,
|
92 |
+
"label2id": {
|
93 |
+
"0": 0,
|
94 |
+
"1": 1,
|
95 |
+
"10": 2,
|
96 |
+
"11": 3,
|
97 |
+
"12": 4,
|
98 |
+
"13": 5,
|
99 |
+
"14": 6,
|
100 |
+
"15": 7,
|
101 |
+
"16": 8,
|
102 |
+
"17": 9,
|
103 |
+
"18": 10,
|
104 |
+
"19": 11,
|
105 |
+
"2": 12,
|
106 |
+
"20": 13,
|
107 |
+
"21": 14,
|
108 |
+
"22": 15,
|
109 |
+
"23": 16,
|
110 |
+
"24": 17,
|
111 |
+
"25": 18,
|
112 |
+
"26": 19,
|
113 |
+
"27": 20,
|
114 |
+
"28": 21,
|
115 |
+
"29": 22,
|
116 |
+
"3": 23,
|
117 |
+
"30": 24,
|
118 |
+
"31": 25,
|
119 |
+
"32": 26,
|
120 |
+
"33": 27,
|
121 |
+
"34": 28,
|
122 |
+
"35": 29,
|
123 |
+
"36": 30,
|
124 |
+
"37": 31,
|
125 |
+
"38": 32,
|
126 |
+
"39": 33,
|
127 |
+
"4": 34,
|
128 |
+
"40": 35,
|
129 |
+
"41": 36,
|
130 |
+
"42": 37,
|
131 |
+
"43": 38,
|
132 |
+
"44": 39,
|
133 |
+
"45": 40,
|
134 |
+
"46": 41,
|
135 |
+
"47": 42,
|
136 |
+
"48": 43,
|
137 |
+
"49": 44,
|
138 |
+
"5": 45,
|
139 |
+
"50": 46,
|
140 |
+
"51": 47,
|
141 |
+
"52": 48,
|
142 |
+
"53": 49,
|
143 |
+
"54": 50,
|
144 |
+
"55": 51,
|
145 |
+
"56": 52,
|
146 |
+
"57": 53,
|
147 |
+
"58": 54,
|
148 |
+
"59": 55,
|
149 |
+
"6": 56,
|
150 |
+
"60": 57,
|
151 |
+
"61": 58,
|
152 |
+
"62": 59,
|
153 |
+
"63": 60,
|
154 |
+
"64": 61,
|
155 |
+
"65": 62,
|
156 |
+
"66": 63,
|
157 |
+
"67": 64,
|
158 |
+
"68": 65,
|
159 |
+
"69": 66,
|
160 |
+
"7": 67,
|
161 |
+
"70": 68,
|
162 |
+
"71": 69,
|
163 |
+
"72": 70,
|
164 |
+
"73": 71,
|
165 |
+
"74": 72,
|
166 |
+
"75": 73,
|
167 |
+
"76": 74,
|
168 |
+
"8": 75,
|
169 |
+
"9": 76
|
170 |
+
},
|
171 |
+
"max_length": 96,
|
172 |
+
"max_position_embeddings": 512,
|
173 |
+
"model_type": "distilbert",
|
174 |
+
"n_heads": 12,
|
175 |
+
"n_layers": 6,
|
176 |
+
"output_past": true,
|
177 |
+
"pad_token_id": 0,
|
178 |
+
"padding": "max_length",
|
179 |
+
"problem_type": "single_label_classification",
|
180 |
+
"qa_dropout": 0.1,
|
181 |
+
"seq_classif_dropout": 0.2,
|
182 |
+
"sinusoidal_pos_embds": false,
|
183 |
+
"tie_weights_": true,
|
184 |
+
"transformers_version": "4.8.0",
|
185 |
+
"vocab_size": 28996
|
186 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1bde99333f52bdea80934cbc52f849d12224dcaeb2c666d9d49c8b968b157918
|
3 |
+
size 263402865
|
sample_input.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:368b29993320039971645c4a1cace117fe607fb03533812fa2ae3c26235073bf
|
3 |
+
size 2546
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoNLP", "tokenizer_class": "DistilBertTokenizer"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|