abhishek HF staff commited on
Commit
f0c9ee5
1 Parent(s): a2ccda0

Commit From AutoNLP

Browse files
Files changed (3) hide show
  1. README.md +50 -0
  2. config.json +51 -0
  3. pytorch_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autonlp
3
+ language: bn
4
+ widget:
5
+ - text: "I love AutoNLP 🤗"
6
+ datasets:
7
+ - albertvillanova/autonlp-data-indic_glue-multi_class_classification-1e67664
8
+ ---
9
+
10
+ # Model Trained Using AutoNLP
11
+
12
+ - Problem type: Multi-class Classification
13
+ - Model ID: 1311135
14
+
15
+ ## Validation Metrics
16
+
17
+ - Loss: 0.35616958141326904
18
+ - Accuracy: 0.8979447200566973
19
+ - Macro F1: 0.8545383956197669
20
+ - Micro F1: 0.8979447200566975
21
+ - Weighted F1: 0.8983951947775538
22
+ - Macro Precision: 0.8615833774439791
23
+ - Micro Precision: 0.8979447200566973
24
+ - Weighted Precision: 0.9013559365881655
25
+ - Macro Recall: 0.8516503001777104
26
+ - Micro Recall: 0.8979447200566973
27
+ - Weighted Recall: 0.8979447200566973
28
+
29
+
30
+ ## Usage
31
+
32
+ You can use cURL to access this model:
33
+
34
+ ```
35
+ $ 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/albertvillanova/autonlp-indic_glue-multi_class_classification-1e67664-1311135
36
+ ```
37
+
38
+ Or Python API:
39
+
40
+ ```
41
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
42
+
43
+ model = AutoModelForSequenceClassification.from_pretrained("albertvillanova/autonlp-indic_glue-multi_class_classification-1e67664-1311135", use_auth_token=True)
44
+
45
+ tokenizer = AutoTokenizer.from_pretrained("albertvillanova/autonlp-indic_glue-multi_class_classification-1e67664-1311135", use_auth_token=True)
46
+
47
+ inputs = tokenizer("I love AutoNLP", return_tensors="pt")
48
+
49
+ outputs = model(**inputs)
50
+ ```
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoNLP",
3
+ "_num_labels": 6,
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": "0",
19
+ "1": "1",
20
+ "2": "2",
21
+ "3": "3",
22
+ "4": "4",
23
+ "5": "5"
24
+ },
25
+ "initializer_range": 0.02,
26
+ "inner_group_num": 1,
27
+ "intermediate_size": 4096,
28
+ "label2id": {
29
+ "0": 0,
30
+ "1": 1,
31
+ "2": 2,
32
+ "3": 3,
33
+ "4": 4,
34
+ "5": 5
35
+ },
36
+ "layer_norm_eps": 1e-12,
37
+ "max_length": 128,
38
+ "max_position_embeddings": 512,
39
+ "model_type": "albert",
40
+ "net_structure_type": 0,
41
+ "num_attention_heads": 16,
42
+ "num_hidden_groups": 1,
43
+ "num_hidden_layers": 24,
44
+ "num_memory_blocks": 0,
45
+ "pad_token_id": 0,
46
+ "padding": "max_length",
47
+ "position_embedding_type": "absolute",
48
+ "transformers_version": "4.5.1",
49
+ "type_vocab_size": 2,
50
+ "vocab_size": 32000
51
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe3029ca82ec1d261846f925daf36715fdad72d55266a2ca79dc46f5f77797ce
3
+ size 71800683