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