Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +56 -0
- config.json +161 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +3 -0
- tokenizer_config.json +16 -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 |
+
- unk
|
7 |
+
widget:
|
8 |
+
- text: "I love AutoTrain 🤗"
|
9 |
+
datasets:
|
10 |
+
- IRI2070/autotrain-data-intacode-144510011402
|
11 |
+
co2_eq_emissions:
|
12 |
+
emissions: 0.5929314842324308
|
13 |
+
---
|
14 |
+
|
15 |
+
# Model Trained Using AutoTrain
|
16 |
+
|
17 |
+
- Problem type: Multi-class Classification
|
18 |
+
- Model ID: 45720114293
|
19 |
+
- CO2 Emissions (in grams): 0.5929
|
20 |
+
|
21 |
+
## Validation Metrics
|
22 |
+
|
23 |
+
- Loss: 0.811
|
24 |
+
- Accuracy: 0.911
|
25 |
+
- Macro F1: 0.735
|
26 |
+
- Micro F1: 0.911
|
27 |
+
- Weighted F1: 0.895
|
28 |
+
- Macro Precision: 0.730
|
29 |
+
- Micro Precision: 0.911
|
30 |
+
- Weighted Precision: 0.882
|
31 |
+
- Macro Recall: 0.742
|
32 |
+
- Micro Recall: 0.911
|
33 |
+
- Weighted Recall: 0.911
|
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/IRI2070/autotrain-intacode-144510011402-45720114293
|
42 |
+
```
|
43 |
+
|
44 |
+
Or Python API:
|
45 |
+
|
46 |
+
```
|
47 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
48 |
+
|
49 |
+
model = AutoModelForSequenceClassification.from_pretrained("IRI2070/autotrain-intacode-144510011402-45720114293", use_auth_token=True)
|
50 |
+
|
51 |
+
tokenizer = AutoTokenizer.from_pretrained("IRI2070/autotrain-intacode-144510011402-45720114293", 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,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 64,
|
4 |
+
"architectures": [
|
5 |
+
"BertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "3150010",
|
14 |
+
"1": "3150020",
|
15 |
+
"2": "3150030",
|
16 |
+
"3": "3150040",
|
17 |
+
"4": "3150050",
|
18 |
+
"5": "3150060",
|
19 |
+
"6": "3150070",
|
20 |
+
"7": "3150080",
|
21 |
+
"8": "3150090",
|
22 |
+
"9": "3150100",
|
23 |
+
"10": "3150110",
|
24 |
+
"11": "3150120",
|
25 |
+
"12": "3150130",
|
26 |
+
"13": "3150140",
|
27 |
+
"14": "3150150",
|
28 |
+
"15": "3150160",
|
29 |
+
"16": "3150170",
|
30 |
+
"17": "3150180",
|
31 |
+
"18": "3150210",
|
32 |
+
"19": "3150220",
|
33 |
+
"20": "3150230",
|
34 |
+
"21": "3150240",
|
35 |
+
"22": "3150250",
|
36 |
+
"23": "3150260",
|
37 |
+
"24": "3150270",
|
38 |
+
"25": "3150280",
|
39 |
+
"26": "3150290",
|
40 |
+
"27": "3150300",
|
41 |
+
"28": "3150310",
|
42 |
+
"29": "3150320",
|
43 |
+
"30": "3150330",
|
44 |
+
"31": "3150340",
|
45 |
+
"32": "3150350",
|
46 |
+
"33": "3150360",
|
47 |
+
"34": "3150390",
|
48 |
+
"35": "3150400",
|
49 |
+
"36": "3150410",
|
50 |
+
"37": "3150420",
|
51 |
+
"38": "3150430",
|
52 |
+
"39": "3150440",
|
53 |
+
"40": "3150450",
|
54 |
+
"41": "3150460",
|
55 |
+
"42": "3150470",
|
56 |
+
"43": "3150480",
|
57 |
+
"44": "3150490",
|
58 |
+
"45": "3150500",
|
59 |
+
"46": "3150510",
|
60 |
+
"47": "3150540",
|
61 |
+
"48": "3160130",
|
62 |
+
"49": "3160150",
|
63 |
+
"50": "3160160",
|
64 |
+
"51": "3160180",
|
65 |
+
"52": "3170010",
|
66 |
+
"53": "3180010",
|
67 |
+
"54": "3180050",
|
68 |
+
"55": "3180060",
|
69 |
+
"56": "3180070",
|
70 |
+
"57": "3180080",
|
71 |
+
"58": "3180090",
|
72 |
+
"59": "3180100",
|
73 |
+
"60": "3180110",
|
74 |
+
"61": "3180130",
|
75 |
+
"62": "3180140",
|
76 |
+
"63": "3180160"
|
77 |
+
},
|
78 |
+
"initializer_range": 0.02,
|
79 |
+
"intermediate_size": 3072,
|
80 |
+
"label2id": {
|
81 |
+
"3150010": 0,
|
82 |
+
"3150020": 1,
|
83 |
+
"3150030": 2,
|
84 |
+
"3150040": 3,
|
85 |
+
"3150050": 4,
|
86 |
+
"3150060": 5,
|
87 |
+
"3150070": 6,
|
88 |
+
"3150080": 7,
|
89 |
+
"3150090": 8,
|
90 |
+
"3150100": 9,
|
91 |
+
"3150110": 10,
|
92 |
+
"3150120": 11,
|
93 |
+
"3150130": 12,
|
94 |
+
"3150140": 13,
|
95 |
+
"3150150": 14,
|
96 |
+
"3150160": 15,
|
97 |
+
"3150170": 16,
|
98 |
+
"3150180": 17,
|
99 |
+
"3150210": 18,
|
100 |
+
"3150220": 19,
|
101 |
+
"3150230": 20,
|
102 |
+
"3150240": 21,
|
103 |
+
"3150250": 22,
|
104 |
+
"3150260": 23,
|
105 |
+
"3150270": 24,
|
106 |
+
"3150280": 25,
|
107 |
+
"3150290": 26,
|
108 |
+
"3150300": 27,
|
109 |
+
"3150310": 28,
|
110 |
+
"3150320": 29,
|
111 |
+
"3150330": 30,
|
112 |
+
"3150340": 31,
|
113 |
+
"3150350": 32,
|
114 |
+
"3150360": 33,
|
115 |
+
"3150390": 34,
|
116 |
+
"3150400": 35,
|
117 |
+
"3150410": 36,
|
118 |
+
"3150420": 37,
|
119 |
+
"3150430": 38,
|
120 |
+
"3150440": 39,
|
121 |
+
"3150450": 40,
|
122 |
+
"3150460": 41,
|
123 |
+
"3150470": 42,
|
124 |
+
"3150480": 43,
|
125 |
+
"3150490": 44,
|
126 |
+
"3150500": 45,
|
127 |
+
"3150510": 46,
|
128 |
+
"3150540": 47,
|
129 |
+
"3160130": 48,
|
130 |
+
"3160150": 49,
|
131 |
+
"3160160": 50,
|
132 |
+
"3160180": 51,
|
133 |
+
"3170010": 52,
|
134 |
+
"3180010": 53,
|
135 |
+
"3180050": 54,
|
136 |
+
"3180060": 55,
|
137 |
+
"3180070": 56,
|
138 |
+
"3180080": 57,
|
139 |
+
"3180090": 58,
|
140 |
+
"3180100": 59,
|
141 |
+
"3180110": 60,
|
142 |
+
"3180130": 61,
|
143 |
+
"3180140": 62,
|
144 |
+
"3180160": 63
|
145 |
+
},
|
146 |
+
"layer_norm_eps": 1e-12,
|
147 |
+
"max_length": 64,
|
148 |
+
"max_position_embeddings": 258,
|
149 |
+
"model_type": "bert",
|
150 |
+
"num_attention_heads": 12,
|
151 |
+
"num_hidden_layers": 12,
|
152 |
+
"pad_token_id": 0,
|
153 |
+
"padding": "max_length",
|
154 |
+
"position_embedding_type": "absolute",
|
155 |
+
"problem_type": "single_label_classification",
|
156 |
+
"torch_dtype": "float32",
|
157 |
+
"transformers_version": "4.25.1",
|
158 |
+
"type_vocab_size": 2,
|
159 |
+
"use_cache": true,
|
160 |
+
"vocab_size": 40000
|
161 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ea5d9882d1a9604b28bd11d54bf28a8edeb5230e76c217415052a4825266fe8
|
3 |
+
size 466532725
|
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:ad8c8f85f3d16aee8efdcb567148ecb57ead35b912a977b08058dae3a88f5b3d
|
3 |
+
size 1079284
|
tokenizer_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"do_basic_tokenize": true,
|
4 |
+
"do_lower_case": true,
|
5 |
+
"mask_token": "[MASK]",
|
6 |
+
"model_max_length": 1000000000000000019884624838656,
|
7 |
+
"name_or_path": "AutoTrain",
|
8 |
+
"never_split": null,
|
9 |
+
"pad_token": "[PAD]",
|
10 |
+
"sep_token": "[SEP]",
|
11 |
+
"special_tokens_map_file": "/root/.cache/huggingface/hub/models--sharif-dal--dal-bert/snapshots/f841d2811b39b59fbe23fa4ec909895d1147ee71/special_tokens_map.json",
|
12 |
+
"strip_accents": null,
|
13 |
+
"tokenize_chinese_chars": true,
|
14 |
+
"tokenizer_class": "BertTokenizer",
|
15 |
+
"unk_token": "[UNK]"
|
16 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|