Commit From AutoTrain
Browse files- .gitattributes +2 -0
- README.md +52 -0
- config.json +162 -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
@@ -26,3 +26,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
26 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
27 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
28 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
26 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
27 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
28 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags: autotrain
|
3 |
+
language: en
|
4 |
+
widget:
|
5 |
+
- text: "I love AutoTrain 🤗"
|
6 |
+
datasets:
|
7 |
+
- palakagl/autotrain-data-PersonalAssitant
|
8 |
+
co2_eq_emissions: 5.080390550458655
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Trained Using AutoTrain
|
12 |
+
|
13 |
+
- Problem type: Multi-class Classification
|
14 |
+
- Model ID: 717221775
|
15 |
+
- CO2 Emissions (in grams): 5.080390550458655
|
16 |
+
|
17 |
+
## Validation Metrics
|
18 |
+
|
19 |
+
- Loss: 0.35279911756515503
|
20 |
+
- Accuracy: 0.9269102990033222
|
21 |
+
- Macro F1: 0.9261839948926327
|
22 |
+
- Micro F1: 0.9269102990033222
|
23 |
+
- Weighted F1: 0.9263981751760975
|
24 |
+
- Macro Precision: 0.9273912049203341
|
25 |
+
- Micro Precision: 0.9269102990033222
|
26 |
+
- Weighted Precision: 0.9280084437800646
|
27 |
+
- Macro Recall: 0.927250645380574
|
28 |
+
- Micro Recall: 0.9269102990033222
|
29 |
+
- Weighted Recall: 0.9269102990033222
|
30 |
+
|
31 |
+
|
32 |
+
## Usage
|
33 |
+
|
34 |
+
You can use cURL to access this model:
|
35 |
+
|
36 |
+
```
|
37 |
+
$ 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/palakagl/autotrain-PersonalAssitant-717221775
|
38 |
+
```
|
39 |
+
|
40 |
+
Or Python API:
|
41 |
+
|
42 |
+
```
|
43 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
44 |
+
|
45 |
+
model = AutoModelForSequenceClassification.from_pretrained("palakagl/autotrain-PersonalAssitant-717221775", use_auth_token=True)
|
46 |
+
|
47 |
+
tokenizer = AutoTokenizer.from_pretrained("palakagl/autotrain-PersonalAssitant-717221775", use_auth_token=True)
|
48 |
+
|
49 |
+
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
50 |
+
|
51 |
+
outputs = model(**inputs)
|
52 |
+
```
|
config.json
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"gradient_checkpointing": false,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "alarm_query",
|
15 |
+
"1": "alarm_remove",
|
16 |
+
"2": "alarm_set",
|
17 |
+
"3": "audio_volume_down",
|
18 |
+
"4": "audio_volume_mute",
|
19 |
+
"5": "audio_volume_up",
|
20 |
+
"6": "calendar_query",
|
21 |
+
"7": "calendar_remove",
|
22 |
+
"8": "calendar_set",
|
23 |
+
"9": "cooking_recipe",
|
24 |
+
"10": "datetime_convert",
|
25 |
+
"11": "datetime_query",
|
26 |
+
"12": "email_addcontact",
|
27 |
+
"13": "email_query",
|
28 |
+
"14": "email_querycontact",
|
29 |
+
"15": "email_sendemail",
|
30 |
+
"16": "general_affirm",
|
31 |
+
"17": "general_commandstop",
|
32 |
+
"18": "general_confirm",
|
33 |
+
"19": "general_dontcare",
|
34 |
+
"20": "general_explain",
|
35 |
+
"21": "general_joke",
|
36 |
+
"22": "general_negate",
|
37 |
+
"23": "general_praise",
|
38 |
+
"24": "general_quirky",
|
39 |
+
"25": "general_repeat",
|
40 |
+
"26": "iot_cleaning",
|
41 |
+
"27": "iot_coffee",
|
42 |
+
"28": "iot_hue_lightchange",
|
43 |
+
"29": "iot_hue_lightdim",
|
44 |
+
"30": "iot_hue_lightoff",
|
45 |
+
"31": "iot_hue_lighton",
|
46 |
+
"32": "iot_hue_lightup",
|
47 |
+
"33": "iot_wemo_off",
|
48 |
+
"34": "iot_wemo_on",
|
49 |
+
"35": "lists_createoradd",
|
50 |
+
"36": "lists_query",
|
51 |
+
"37": "lists_remove",
|
52 |
+
"38": "music_likeness",
|
53 |
+
"39": "music_query",
|
54 |
+
"40": "music_settings",
|
55 |
+
"41": "news_query",
|
56 |
+
"42": "play_audiobook",
|
57 |
+
"43": "play_game",
|
58 |
+
"44": "play_music",
|
59 |
+
"45": "play_podcasts",
|
60 |
+
"46": "play_radio",
|
61 |
+
"47": "qa_currency",
|
62 |
+
"48": "qa_definition",
|
63 |
+
"49": "qa_factoid",
|
64 |
+
"50": "qa_maths",
|
65 |
+
"51": "qa_stock",
|
66 |
+
"52": "recommendation_events",
|
67 |
+
"53": "recommendation_locations",
|
68 |
+
"54": "recommendation_movies",
|
69 |
+
"55": "social_post",
|
70 |
+
"56": "social_query",
|
71 |
+
"57": "takeaway_order",
|
72 |
+
"58": "takeaway_query",
|
73 |
+
"59": "transport_query",
|
74 |
+
"60": "transport_taxi",
|
75 |
+
"61": "transport_ticket",
|
76 |
+
"62": "transport_traffic",
|
77 |
+
"63": "weather_query"
|
78 |
+
},
|
79 |
+
"initializer_range": 0.02,
|
80 |
+
"intermediate_size": 3072,
|
81 |
+
"label2id": {
|
82 |
+
"alarm_query": 0,
|
83 |
+
"alarm_remove": 1,
|
84 |
+
"alarm_set": 2,
|
85 |
+
"audio_volume_down": 3,
|
86 |
+
"audio_volume_mute": 4,
|
87 |
+
"audio_volume_up": 5,
|
88 |
+
"calendar_query": 6,
|
89 |
+
"calendar_remove": 7,
|
90 |
+
"calendar_set": 8,
|
91 |
+
"cooking_recipe": 9,
|
92 |
+
"datetime_convert": 10,
|
93 |
+
"datetime_query": 11,
|
94 |
+
"email_addcontact": 12,
|
95 |
+
"email_query": 13,
|
96 |
+
"email_querycontact": 14,
|
97 |
+
"email_sendemail": 15,
|
98 |
+
"general_affirm": 16,
|
99 |
+
"general_commandstop": 17,
|
100 |
+
"general_confirm": 18,
|
101 |
+
"general_dontcare": 19,
|
102 |
+
"general_explain": 20,
|
103 |
+
"general_joke": 21,
|
104 |
+
"general_negate": 22,
|
105 |
+
"general_praise": 23,
|
106 |
+
"general_quirky": 24,
|
107 |
+
"general_repeat": 25,
|
108 |
+
"iot_cleaning": 26,
|
109 |
+
"iot_coffee": 27,
|
110 |
+
"iot_hue_lightchange": 28,
|
111 |
+
"iot_hue_lightdim": 29,
|
112 |
+
"iot_hue_lightoff": 30,
|
113 |
+
"iot_hue_lighton": 31,
|
114 |
+
"iot_hue_lightup": 32,
|
115 |
+
"iot_wemo_off": 33,
|
116 |
+
"iot_wemo_on": 34,
|
117 |
+
"lists_createoradd": 35,
|
118 |
+
"lists_query": 36,
|
119 |
+
"lists_remove": 37,
|
120 |
+
"music_likeness": 38,
|
121 |
+
"music_query": 39,
|
122 |
+
"music_settings": 40,
|
123 |
+
"news_query": 41,
|
124 |
+
"play_audiobook": 42,
|
125 |
+
"play_game": 43,
|
126 |
+
"play_music": 44,
|
127 |
+
"play_podcasts": 45,
|
128 |
+
"play_radio": 46,
|
129 |
+
"qa_currency": 47,
|
130 |
+
"qa_definition": 48,
|
131 |
+
"qa_factoid": 49,
|
132 |
+
"qa_maths": 50,
|
133 |
+
"qa_stock": 51,
|
134 |
+
"recommendation_events": 52,
|
135 |
+
"recommendation_locations": 53,
|
136 |
+
"recommendation_movies": 54,
|
137 |
+
"social_post": 55,
|
138 |
+
"social_query": 56,
|
139 |
+
"takeaway_order": 57,
|
140 |
+
"takeaway_query": 58,
|
141 |
+
"transport_query": 59,
|
142 |
+
"transport_taxi": 60,
|
143 |
+
"transport_ticket": 61,
|
144 |
+
"transport_traffic": 62,
|
145 |
+
"weather_query": 63
|
146 |
+
},
|
147 |
+
"layer_norm_eps": 1e-12,
|
148 |
+
"max_length": 64,
|
149 |
+
"max_position_embeddings": 512,
|
150 |
+
"model_type": "bert",
|
151 |
+
"num_attention_heads": 12,
|
152 |
+
"num_hidden_layers": 12,
|
153 |
+
"pad_token_id": 0,
|
154 |
+
"padding": "max_length",
|
155 |
+
"position_embedding_type": "absolute",
|
156 |
+
"problem_type": "single_label_classification",
|
157 |
+
"torch_dtype": "float32",
|
158 |
+
"transformers_version": "4.15.0",
|
159 |
+
"type_vocab_size": 2,
|
160 |
+
"use_cache": true,
|
161 |
+
"vocab_size": 30522
|
162 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:38538e3716d9bdead7ba8898434e8bf7dfc072d4059d11c098e66f22906a48a0
|
3 |
+
size 438209965
|
sample_input.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:80dcf200897838b3ba1dfb451001bdb16889bb396e2292c7c33bebf0a9352e4c
|
3 |
+
size 2848
|
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": true, "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": "AutoTrain", "tokenizer_class": "BertTokenizer"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|