AutoNLP Admin commited on
Commit
b3e145b
·
1 Parent(s): 66a5608

Commit From AutoNLP

Browse files
.gitattributes CHANGED
@@ -25,3 +25,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
29
+ *.pkl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autonlp
3
+ language: en
4
+ widget:
5
+ - text: "I love AutoNLP 🤗"
6
+ datasets:
7
+ - emekaboris/autonlp-data-txc
8
+ co2_eq_emissions: 133.57087522185148
9
+ ---
10
+
11
+ # Model Trained Using AutoNLP
12
+
13
+ - Problem type: Multi-class Classification
14
+ - Model ID: 17923124
15
+ - CO2 Emissions (in grams): 133.57087522185148
16
+
17
+ ## Validation Metrics
18
+
19
+ - Loss: 0.2080804407596588
20
+ - Accuracy: 0.9325402190077058
21
+ - Macro F1: 0.7283811287183823
22
+ - Micro F1: 0.9325402190077058
23
+ - Weighted F1: 0.9315711955594153
24
+ - Macro Precision: 0.8106599661500661
25
+ - Micro Precision: 0.9325402190077058
26
+ - Weighted Precision: 0.9324644116921059
27
+ - Macro Recall: 0.7020515544343829
28
+ - Micro Recall: 0.9325402190077058
29
+ - Weighted Recall: 0.9325402190077058
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 AutoNLP"}' https://api-inference.huggingface.co/models/emekaboris/autonlp-txc-17923124
38
+ ```
39
+
40
+ Or Python API:
41
+
42
+ ```
43
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
44
+
45
+ model = AutoModelForSequenceClassification.from_pretrained("emekaboris/autonlp-txc-17923124", use_auth_token=True)
46
+
47
+ tokenizer = AutoTokenizer.from_pretrained("emekaboris/autonlp-txc-17923124", use_auth_token=True)
48
+
49
+ inputs = tokenizer("I love AutoNLP", return_tensors="pt")
50
+
51
+ outputs = model(**inputs)
52
+ ```
config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoNLP",
3
+ "_num_labels": 24,
4
+ "architectures": [
5
+ "RobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "1.0",
16
+ "1": "10.0",
17
+ "2": "11.0",
18
+ "3": "12.0",
19
+ "4": "13.0",
20
+ "5": "14.0",
21
+ "6": "15.0",
22
+ "7": "16.0",
23
+ "8": "17.0",
24
+ "9": "18.0",
25
+ "10": "19.0",
26
+ "11": "2.0",
27
+ "12": "20.0",
28
+ "13": "21.0",
29
+ "14": "22.0",
30
+ "15": "23.0",
31
+ "16": "24.0",
32
+ "17": "3.0",
33
+ "18": "4.0",
34
+ "19": "5.0",
35
+ "20": "6.0",
36
+ "21": "7.0",
37
+ "22": "8.0",
38
+ "23": "9.0"
39
+ },
40
+ "initializer_range": 0.02,
41
+ "intermediate_size": 3072,
42
+ "label2id": {
43
+ "1.0": 0,
44
+ "10.0": 1,
45
+ "11.0": 2,
46
+ "12.0": 3,
47
+ "13.0": 4,
48
+ "14.0": 5,
49
+ "15.0": 6,
50
+ "16.0": 7,
51
+ "17.0": 8,
52
+ "18.0": 9,
53
+ "19.0": 10,
54
+ "2.0": 11,
55
+ "20.0": 12,
56
+ "21.0": 13,
57
+ "22.0": 14,
58
+ "23.0": 15,
59
+ "24.0": 16,
60
+ "3.0": 17,
61
+ "4.0": 18,
62
+ "5.0": 19,
63
+ "6.0": 20,
64
+ "7.0": 21,
65
+ "8.0": 22,
66
+ "9.0": 23
67
+ },
68
+ "layer_norm_eps": 1e-05,
69
+ "max_length": 128,
70
+ "max_position_embeddings": 514,
71
+ "model_type": "roberta",
72
+ "num_attention_heads": 12,
73
+ "num_hidden_layers": 12,
74
+ "pad_token_id": 1,
75
+ "padding": "max_length",
76
+ "position_embedding_type": "absolute",
77
+ "problem_type": "single_label_classification",
78
+ "transformers_version": "4.8.0",
79
+ "type_vocab_size": 1,
80
+ "use_cache": true,
81
+ "vocab_size": 50265
82
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4317ce901b6a13afd6f92173ff2c2883f24aab9e9b00e521b8f5c014868d03e7
3
+ size 498741741
sample_input.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c21cbb1c0811a33827a46e0994a97fcf7c801a489fa7f67195353c996b524392
3
+ size 3058
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "add_prefix_space": false, "errors": "replace", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": "<mask>", "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoNLP", "tokenizer_class": "RobertaTokenizer"}
vocab.json ADDED
The diff for this file is too large to render. See raw diff