system HF staff commited on
Commit
f5f4155
1 Parent(s): 7291fcc

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
+ - trung0209/autotrain-data-testrum3
11
+ co2_eq_emissions:
12
+ emissions: 0.18211514635496343
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Multi-class Classification
18
+ - Model ID: 63013135311
19
+ - CO2 Emissions (in grams): 0.1821
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 1.172
24
+ - Accuracy: 0.569
25
+ - Macro F1: 0.319
26
+ - Micro F1: 0.569
27
+ - Weighted F1: 0.656
28
+ - Macro Precision: 0.396
29
+ - Micro Precision: 0.569
30
+ - Weighted Precision: 0.806
31
+ - Macro Recall: 0.288
32
+ - Micro Recall: 0.569
33
+ - Weighted Recall: 0.569
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/trung0209/autotrain-testrum3-63013135311
42
+ ```
43
+
44
+ Or Python API:
45
+
46
+ ```
47
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
48
+
49
+ model = AutoModelForSequenceClassification.from_pretrained("trung0209/autotrain-testrum3-63013135311", use_auth_token=True)
50
+
51
+ tokenizer = AutoTokenizer.from_pretrained("trung0209/autotrain-testrum3-63013135311", 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,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 24,
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": "0",
15
+ "1": "1",
16
+ "2": "10",
17
+ "3": "11",
18
+ "4": "12",
19
+ "5": "13",
20
+ "6": "14",
21
+ "7": "15",
22
+ "8": "16",
23
+ "9": "17",
24
+ "10": "18",
25
+ "11": "19",
26
+ "12": "2",
27
+ "13": "20",
28
+ "14": "21",
29
+ "15": "22",
30
+ "16": "23",
31
+ "17": "3",
32
+ "18": "4",
33
+ "19": "5",
34
+ "20": "6",
35
+ "21": "7",
36
+ "22": "8",
37
+ "23": "9"
38
+ },
39
+ "initializer_range": 0.02,
40
+ "intermediate_size": 3072,
41
+ "label2id": {
42
+ "0": 0,
43
+ "1": 1,
44
+ "10": 2,
45
+ "11": 3,
46
+ "12": 4,
47
+ "13": 5,
48
+ "14": 6,
49
+ "15": 7,
50
+ "16": 8,
51
+ "17": 9,
52
+ "18": 10,
53
+ "19": 11,
54
+ "2": 12,
55
+ "20": 13,
56
+ "21": 14,
57
+ "22": 15,
58
+ "23": 16,
59
+ "3": 17,
60
+ "4": 18,
61
+ "5": 19,
62
+ "6": 20,
63
+ "7": 21,
64
+ "8": 22,
65
+ "9": 23
66
+ },
67
+ "layer_norm_eps": 1e-12,
68
+ "max_length": 256,
69
+ "max_position_embeddings": 512,
70
+ "model_type": "bert",
71
+ "num_attention_heads": 12,
72
+ "num_hidden_layers": 12,
73
+ "pad_token_id": 0,
74
+ "padding": "max_length",
75
+ "position_embedding_type": "absolute",
76
+ "problem_type": "single_label_classification",
77
+ "torch_dtype": "float32",
78
+ "transformers_version": "4.29.2",
79
+ "type_vocab_size": 2,
80
+ "use_cache": true,
81
+ "vocab_size": 30522
82
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3e8dd1cd25c131a93dde1c698ab74e49f943551ef846eddaa1c257d1e7e1a31
3
+ size 438030504
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4517371e74a2f3000e217c956f4974bcfb6ed0faa968603ba5e9ee806a85e92d
3
+ size 438075573
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:0d3aef594edd5f9b53e7f814277a9171dc70ff93eb66bda6e01f7aa53997d963
3
+ size 711661
tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "BertTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff