system HF Staff commited on
Commit
8e82637
·
1 Parent(s): 6a8ba0e

Commit From AutoTrain

Browse files
.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
+ - Sushovan/autotrain-data-test-text-classification
11
+ co2_eq_emissions:
12
+ emissions: 3.2260052742267447
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Multi-class Classification
18
+ - Model ID: 3175589570
19
+ - CO2 Emissions (in grams): 3.2260
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 1.111
24
+ - Accuracy: 0.665
25
+ - Macro F1: 0.424
26
+ - Micro F1: 0.665
27
+ - Weighted F1: 0.638
28
+ - Macro Precision: 0.427
29
+ - Micro Precision: 0.665
30
+ - Weighted Precision: 0.622
31
+ - Macro Recall: 0.434
32
+ - Micro Recall: 0.665
33
+ - Weighted Recall: 0.665
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/Sushovan/autotrain-test-text-classification-3175589570
42
+ ```
43
+
44
+ Or Python API:
45
+
46
+ ```
47
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
48
+
49
+ model = AutoModelForSequenceClassification.from_pretrained("Sushovan/autotrain-test-text-classification-3175589570", use_auth_token=True)
50
+
51
+ tokenizer = AutoTokenizer.from_pretrained("Sushovan/autotrain-test-text-classification-3175589570", 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,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 18,
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": "Blouses",
15
+ "1": "Dresses",
16
+ "2": "Fine gauge",
17
+ "3": "Intimates",
18
+ "4": "Jackets",
19
+ "5": "Jeans",
20
+ "6": "Knits",
21
+ "7": "Layering",
22
+ "8": "Legwear",
23
+ "9": "Lounge",
24
+ "10": "Outerwear",
25
+ "11": "Pants",
26
+ "12": "Shorts",
27
+ "13": "Skirts",
28
+ "14": "Sleep",
29
+ "15": "Sweaters",
30
+ "16": "Swim",
31
+ "17": "Trend"
32
+ },
33
+ "initializer_range": 0.02,
34
+ "intermediate_size": 3072,
35
+ "label2id": {
36
+ "Blouses": 0,
37
+ "Dresses": 1,
38
+ "Fine gauge": 2,
39
+ "Intimates": 3,
40
+ "Jackets": 4,
41
+ "Jeans": 5,
42
+ "Knits": 6,
43
+ "Layering": 7,
44
+ "Legwear": 8,
45
+ "Lounge": 9,
46
+ "Outerwear": 10,
47
+ "Pants": 11,
48
+ "Shorts": 12,
49
+ "Skirts": 13,
50
+ "Sleep": 14,
51
+ "Sweaters": 15,
52
+ "Swim": 16,
53
+ "Trend": 17
54
+ },
55
+ "layer_norm_eps": 1e-12,
56
+ "max_length": 192,
57
+ "max_position_embeddings": 512,
58
+ "model_type": "bert",
59
+ "num_attention_heads": 12,
60
+ "num_hidden_layers": 12,
61
+ "pad_token_id": 0,
62
+ "padding": "max_length",
63
+ "position_embedding_type": "absolute",
64
+ "problem_type": "single_label_classification",
65
+ "torch_dtype": "float32",
66
+ "transformers_version": "4.25.1",
67
+ "type_vocab_size": 2,
68
+ "use_cache": true,
69
+ "vocab_size": 28996
70
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfc9ea4099e3c0e3b7845142737e8e8820a9f9adb701f24d6755d6426aa2a1da
3
+ size 433369269
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:b9aa72046b7ca8a8e43d88d2271353045359c3715c3dd868769b377ca9c5510e
3
+ size 669188
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_lower_case": false,
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