abhishek HF staff commited on
Commit
2787062
1 Parent(s): 3841f58

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: unk
4
+ widget:
5
+ - text: "I love AutoNLP 🤗"
6
+ datasets:
7
+ - dee4hf/autonlp-data-shajBERT
8
+ co2_eq_emissions: 11.98841452241473
9
+ ---
10
+
11
+ # Model Trained Using AutoNLP
12
+
13
+ - Problem type: Multi-class Classification
14
+ - Model ID: 38639804
15
+ - CO2 Emissions (in grams): 11.98841452241473
16
+
17
+ ## Validation Metrics
18
+
19
+ - Loss: 0.421400249004364
20
+ - Accuracy: 0.86783988957902
21
+ - Macro F1: 0.8669477050676501
22
+ - Micro F1: 0.86783988957902
23
+ - Weighted F1: 0.86694770506765
24
+ - Macro Precision: 0.867606300132228
25
+ - Micro Precision: 0.86783988957902
26
+ - Weighted Precision: 0.8676063001322278
27
+ - Macro Recall: 0.86783988957902
28
+ - Micro Recall: 0.86783988957902
29
+ - Weighted Recall: 0.86783988957902
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/dee4hf/autonlp-shajBERT-38639804
38
+ ```
39
+
40
+ Or Python API:
41
+
42
+ ```
43
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
44
+
45
+ model = AutoModelForSequenceClassification.from_pretrained("dee4hf/autonlp-shajBERT-38639804", use_auth_token=True)
46
+
47
+ tokenizer = AutoTokenizer.from_pretrained("dee4hf/autonlp-shajBERT-38639804", 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,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoNLP",
3
+ "_num_labels": 9,
4
+ "architectures": [
5
+ "AlbertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0,
8
+ "bos_token_id": 2,
9
+ "classifier_dropout_prob": 0.1,
10
+ "down_scale_factor": 1,
11
+ "embedding_size": 128,
12
+ "eos_token_id": 3,
13
+ "gap_size": 0,
14
+ "hidden_act": "gelu_new",
15
+ "hidden_dropout_prob": 0,
16
+ "hidden_size": 1024,
17
+ "id2label": {
18
+ "0": "communal_attack",
19
+ "1": "hate_speech",
20
+ "2": "inciteful",
21
+ "3": "personal_attack",
22
+ "4": "political_comment",
23
+ "5": "religious",
24
+ "6": "religious hatred",
25
+ "7": "religious_hatred",
26
+ "8": "suicidal_attack"
27
+ },
28
+ "initializer_range": 0.02,
29
+ "inner_group_num": 1,
30
+ "intermediate_size": 4096,
31
+ "label2id": {
32
+ "communal_attack": 0,
33
+ "hate_speech": 1,
34
+ "inciteful": 2,
35
+ "personal_attack": 3,
36
+ "political_comment": 4,
37
+ "religious": 5,
38
+ "religious hatred": 6,
39
+ "religious_hatred": 7,
40
+ "suicidal_attack": 8
41
+ },
42
+ "layer_norm_eps": 1e-12,
43
+ "max_length": 64,
44
+ "max_position_embeddings": 512,
45
+ "model_type": "albert",
46
+ "net_structure_type": 0,
47
+ "num_attention_heads": 16,
48
+ "num_hidden_groups": 1,
49
+ "num_hidden_layers": 24,
50
+ "num_memory_blocks": 0,
51
+ "pad_token_id": 0,
52
+ "padding": "max_length",
53
+ "position_embedding_type": "absolute",
54
+ "problem_type": "single_label_classification",
55
+ "tokenizer_class": "PreTrainedTokenizerFast",
56
+ "transformers_version": "4.8.0",
57
+ "type_vocab_size": 2,
58
+ "vocab_size": 32000
59
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c7b7ae4df344bbf935ab9f8c927b25482d40bffd2d4d0a6918790aa385ddb35
3
+ size 71811793
sample_input.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:084262e61159e827f14f672dd690e4ae18d86a172e25ccfa19ed65df25778a70
3
+ size 2848
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "[CLS]", "eos_token": "[SEP]", "unk_token": "<unk>", "sep_token": "[SEP]", "pad_token": "<pad>", "cls_token": "[CLS]", "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
+ {"bos_token": "[CLS]", "eos_token": "[SEP]", "unk_token": "<unk>", "sep_token": "[SEP]", "cls_token": "[CLS]", "pad_token": "<pad>", "mask_token": {"content": "[MASK]", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false, "__type": "AddedToken"}, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoNLP", "tokenizer_class": "PreTrainedTokenizerFast"}