AutoNLP Admin
commited on
Commit
·
16b5869
1
Parent(s):
5a29044
Commit From AutoNLP
Browse files- README.md +50 -0
- config.json +51 -0
- 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-baselines-indic_glue-multi_class_classification
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Model Trained Using AutoNLP
|
| 11 |
+
|
| 12 |
+
- Problem type: Multi-class Classification
|
| 13 |
+
- Model ID: 1351187
|
| 14 |
+
|
| 15 |
+
## Validation Metrics
|
| 16 |
+
|
| 17 |
+
- Loss: 0.46760785579681396
|
| 18 |
+
- Accuracy: 0.8412473423104181
|
| 19 |
+
- Macro F1: 0.8151341402067301
|
| 20 |
+
- Micro F1: 0.8412473423104181
|
| 21 |
+
- Weighted F1: 0.8458231431392536
|
| 22 |
+
- Macro Precision: 0.804355047657178
|
| 23 |
+
- Micro Precision: 0.8412473423104181
|
| 24 |
+
- Weighted Precision: 0.8606653801556983
|
| 25 |
+
- Macro Recall: 0.8328042776824057
|
| 26 |
+
- Micro Recall: 0.8412473423104181
|
| 27 |
+
- Weighted Recall: 0.8412473423104181
|
| 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-baselines-indic_glue-multi_class_classification-1351187
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
Or Python API:
|
| 39 |
+
|
| 40 |
+
```
|
| 41 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 42 |
+
|
| 43 |
+
model = AutoModelForSequenceClassification.from_pretrained("albertvillanova/autonlp-baselines-indic_glue-multi_class_classification-1351187", use_auth_token=True)
|
| 44 |
+
|
| 45 |
+
tokenizer = AutoTokenizer.from_pretrained("albertvillanova/autonlp-baselines-indic_glue-multi_class_classification-1351187", 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": 64,
|
| 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:61e8371df57f6d4a19d894cf5806b64b6cd1b9d987a79f2dec6633be1cd7c055
|
| 3 |
+
size 71800683
|