system HF staff commited on
Commit
e2314f0
·
1 Parent(s): 39fa8c6

Commit From AutoTrain

Browse files
.gitattributes CHANGED
@@ -29,3 +29,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zstandard filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zstandard filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
32
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
33
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autotrain
3
+ language: ar
4
+ widget:
5
+ - text: "I love AutoTrain 🤗"
6
+ datasets:
7
+ - azizkh/autotrain-data-j-multi-classification
8
+ co2_eq_emissions: 1.2309703499286417
9
+ ---
10
+
11
+ # Model Trained Using AutoTrain
12
+
13
+ - Problem type: Multi-class Classification
14
+ - Model ID: 1181044057
15
+ - CO2 Emissions (in grams): 1.2309703499286417
16
+
17
+ ## Validation Metrics
18
+
19
+ - Loss: 0.896309494972229
20
+ - Accuracy: 0.7192982456140351
21
+ - Macro F1: 0.5870079610791685
22
+ - Micro F1: 0.7192982456140351
23
+ - Weighted F1: 0.719743631524632
24
+ - Macro Precision: 0.6779761904761905
25
+ - Micro Precision: 0.7192982456140351
26
+ - Weighted Precision: 0.8012949039264828
27
+ - Macro Recall: 0.5941468253968254
28
+ - Micro Recall: 0.7192982456140351
29
+ - Weighted Recall: 0.7192982456140351
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/azizkh/autotrain-j-multi-classification-1181044057
38
+ ```
39
+
40
+ Or Python API:
41
+
42
+ ```
43
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
44
+
45
+ model = AutoModelForSequenceClassification.from_pretrained("azizkh/autotrain-j-multi-classification-1181044057", use_auth_token=True)
46
+
47
+ tokenizer = AutoTokenizer.from_pretrained("azizkh/autotrain-j-multi-classification-1181044057", 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,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 8,
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": "DMs",
14
+ "1": "cancel_order",
15
+ "2": "drivers",
16
+ "3": "inquire",
17
+ "4": "late_order",
18
+ "5": "missing_items",
19
+ "6": "spam",
20
+ "7": "wallet_money"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "DMs": 0,
26
+ "cancel_order": 1,
27
+ "drivers": 2,
28
+ "inquire": 3,
29
+ "late_order": 4,
30
+ "missing_items": 5,
31
+ "spam": 6,
32
+ "wallet_money": 7
33
+ },
34
+ "layer_norm_eps": 1e-12,
35
+ "max_length": 64,
36
+ "max_position_embeddings": 512,
37
+ "model_type": "bert",
38
+ "num_attention_heads": 12,
39
+ "num_hidden_layers": 12,
40
+ "pad_token_id": 0,
41
+ "padding": "max_length",
42
+ "position_embedding_type": "absolute",
43
+ "problem_type": "single_label_classification",
44
+ "torch_dtype": "float32",
45
+ "transformers_version": "4.20.0",
46
+ "type_vocab_size": 2,
47
+ "use_cache": true,
48
+ "vocab_size": 64000
49
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ffb650456b2a9991d09dfe28d79ea1790f35267664d7a300f8dc0497ae38cb1
3
+ size 540868973
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
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_basic_tokenize": true,
4
+ "do_lower_case": false,
5
+ "mask_token": "[MASK]",
6
+ "max_len": 512,
7
+ "name_or_path": "AutoTrain",
8
+ "never_split": [
9
+ "[بريد]",
10
+ "[مستخدم]",
11
+ "[رابط]"
12
+ ],
13
+ "pad_token": "[PAD]",
14
+ "sep_token": "[SEP]",
15
+ "special_tokens_map_file": null,
16
+ "strip_accents": null,
17
+ "tokenize_chinese_chars": true,
18
+ "tokenizer_class": "BertTokenizer",
19
+ "unk_token": "[UNK]"
20
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff