Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +56 -0
- config.json +120 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +3 -0
- tokenizer_config.json +14 -0
- vocab.txt +0 -0
.gitattributes
CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
37 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- autotrain
|
4 |
+
- text-classification
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
widget:
|
8 |
+
- text: "I love AutoTrain 🤗"
|
9 |
+
datasets:
|
10 |
+
- vkheman/autotrain-data-multic
|
11 |
+
co2_eq_emissions:
|
12 |
+
emissions: 1.3867154772046042
|
13 |
+
---
|
14 |
+
|
15 |
+
# Model Trained Using AutoTrain
|
16 |
+
|
17 |
+
- Problem type: Multi-class Classification
|
18 |
+
- Model ID: 42139108182
|
19 |
+
- CO2 Emissions (in grams): 1.3867
|
20 |
+
|
21 |
+
## Validation Metrics
|
22 |
+
|
23 |
+
- Loss: 0.758
|
24 |
+
- Accuracy: 0.836
|
25 |
+
- Macro F1: 0.835
|
26 |
+
- Micro F1: 0.836
|
27 |
+
- Weighted F1: 0.836
|
28 |
+
- Macro Precision: 0.839
|
29 |
+
- Micro Precision: 0.836
|
30 |
+
- Weighted Precision: 0.840
|
31 |
+
- Macro Recall: 0.836
|
32 |
+
- Micro Recall: 0.836
|
33 |
+
- Weighted Recall: 0.836
|
34 |
+
|
35 |
+
|
36 |
+
## Usage
|
37 |
+
|
38 |
+
You can use cURL to access this model:
|
39 |
+
|
40 |
+
```
|
41 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/vkheman/autotrain-multic-42139108182
|
42 |
+
```
|
43 |
+
|
44 |
+
Or Python API:
|
45 |
+
|
46 |
+
```
|
47 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
48 |
+
|
49 |
+
model = AutoModelForSequenceClassification.from_pretrained("vkheman/autotrain-multic-42139108182", use_auth_token=True)
|
50 |
+
|
51 |
+
tokenizer = AutoTokenizer.from_pretrained("vkheman/autotrain-multic-42139108182", use_auth_token=True)
|
52 |
+
|
53 |
+
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
54 |
+
|
55 |
+
outputs = model(**inputs)
|
56 |
+
```
|
config.json
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 43,
|
4 |
+
"architectures": [
|
5 |
+
"BertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"gradient_checkpointing": false,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "0",
|
15 |
+
"1": "1",
|
16 |
+
"2": "10",
|
17 |
+
"3": "11",
|
18 |
+
"4": "12",
|
19 |
+
"5": "13",
|
20 |
+
"6": "14",
|
21 |
+
"7": "15",
|
22 |
+
"8": "16",
|
23 |
+
"9": "17",
|
24 |
+
"10": "18",
|
25 |
+
"11": "19",
|
26 |
+
"12": "2",
|
27 |
+
"13": "20",
|
28 |
+
"14": "21",
|
29 |
+
"15": "22",
|
30 |
+
"16": "23",
|
31 |
+
"17": "24",
|
32 |
+
"18": "25",
|
33 |
+
"19": "26",
|
34 |
+
"20": "27",
|
35 |
+
"21": "28",
|
36 |
+
"22": "29",
|
37 |
+
"23": "3",
|
38 |
+
"24": "30",
|
39 |
+
"25": "31",
|
40 |
+
"26": "32",
|
41 |
+
"27": "33",
|
42 |
+
"28": "34",
|
43 |
+
"29": "35",
|
44 |
+
"30": "36",
|
45 |
+
"31": "37",
|
46 |
+
"32": "38",
|
47 |
+
"33": "39",
|
48 |
+
"34": "4",
|
49 |
+
"35": "40",
|
50 |
+
"36": "41",
|
51 |
+
"37": "42",
|
52 |
+
"38": "5",
|
53 |
+
"39": "6",
|
54 |
+
"40": "7",
|
55 |
+
"41": "8",
|
56 |
+
"42": "9"
|
57 |
+
},
|
58 |
+
"initializer_range": 0.02,
|
59 |
+
"intermediate_size": 3072,
|
60 |
+
"label2id": {
|
61 |
+
"0": 0,
|
62 |
+
"1": 1,
|
63 |
+
"10": 2,
|
64 |
+
"11": 3,
|
65 |
+
"12": 4,
|
66 |
+
"13": 5,
|
67 |
+
"14": 6,
|
68 |
+
"15": 7,
|
69 |
+
"16": 8,
|
70 |
+
"17": 9,
|
71 |
+
"18": 10,
|
72 |
+
"19": 11,
|
73 |
+
"2": 12,
|
74 |
+
"20": 13,
|
75 |
+
"21": 14,
|
76 |
+
"22": 15,
|
77 |
+
"23": 16,
|
78 |
+
"24": 17,
|
79 |
+
"25": 18,
|
80 |
+
"26": 19,
|
81 |
+
"27": 20,
|
82 |
+
"28": 21,
|
83 |
+
"29": 22,
|
84 |
+
"3": 23,
|
85 |
+
"30": 24,
|
86 |
+
"31": 25,
|
87 |
+
"32": 26,
|
88 |
+
"33": 27,
|
89 |
+
"34": 28,
|
90 |
+
"35": 29,
|
91 |
+
"36": 30,
|
92 |
+
"37": 31,
|
93 |
+
"38": 32,
|
94 |
+
"39": 33,
|
95 |
+
"4": 34,
|
96 |
+
"40": 35,
|
97 |
+
"41": 36,
|
98 |
+
"42": 37,
|
99 |
+
"5": 38,
|
100 |
+
"6": 39,
|
101 |
+
"7": 40,
|
102 |
+
"8": 41,
|
103 |
+
"9": 42
|
104 |
+
},
|
105 |
+
"layer_norm_eps": 1e-12,
|
106 |
+
"max_length": 96,
|
107 |
+
"max_position_embeddings": 512,
|
108 |
+
"model_type": "bert",
|
109 |
+
"num_attention_heads": 12,
|
110 |
+
"num_hidden_layers": 12,
|
111 |
+
"pad_token_id": 0,
|
112 |
+
"padding": "max_length",
|
113 |
+
"position_embedding_type": "absolute",
|
114 |
+
"problem_type": "single_label_classification",
|
115 |
+
"torch_dtype": "float32",
|
116 |
+
"transformers_version": "4.25.1",
|
117 |
+
"type_vocab_size": 2,
|
118 |
+
"use_cache": true,
|
119 |
+
"vocab_size": 30522
|
120 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc52e585988f336c4eb4f17c2ef5db2335944e7b4bce641b9026a19a32e07e29
|
3 |
+
size 438134005
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c3bbeac7c7669ec478d44bac871031a47b39935533558d252d5b7699e7d4d457
|
3 |
+
size 711659
|
tokenizer_config.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"do_lower_case": true,
|
4 |
+
"mask_token": "[MASK]",
|
5 |
+
"model_max_length": 512,
|
6 |
+
"name_or_path": "AutoTrain",
|
7 |
+
"pad_token": "[PAD]",
|
8 |
+
"sep_token": "[SEP]",
|
9 |
+
"special_tokens_map_file": null,
|
10 |
+
"strip_accents": null,
|
11 |
+
"tokenize_chinese_chars": true,
|
12 |
+
"tokenizer_class": "BertTokenizer",
|
13 |
+
"unk_token": "[UNK]"
|
14 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|