Commit From AutoNLP
Browse files- .gitattributes +2 -0
- README.md +52 -0
- config.json +130 -0
- pytorch_model.bin +3 -0
- sample_input.pkl +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
.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 |
+
- alvp/autonlp-data-alberti-stanza-names
|
8 |
+
co2_eq_emissions: 8.612473981829835
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Trained Using AutoNLP
|
12 |
+
|
13 |
+
- Problem type: Multi-class Classification
|
14 |
+
- Model ID: 34318169
|
15 |
+
- CO2 Emissions (in grams): 8.612473981829835
|
16 |
+
|
17 |
+
## Validation Metrics
|
18 |
+
|
19 |
+
- Loss: 1.3520570993423462
|
20 |
+
- Accuracy: 0.6083916083916084
|
21 |
+
- Macro F1: 0.5420169617715481
|
22 |
+
- Micro F1: 0.6083916083916084
|
23 |
+
- Weighted F1: 0.5963328136975058
|
24 |
+
- Macro Precision: 0.5864033493660455
|
25 |
+
- Micro Precision: 0.6083916083916084
|
26 |
+
- Weighted Precision: 0.6364793882921277
|
27 |
+
- Macro Recall: 0.5545405576555766
|
28 |
+
- Micro Recall: 0.6083916083916084
|
29 |
+
- Weighted Recall: 0.6083916083916084
|
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/alvp/autonlp-alberti-stanza-names-34318169
|
38 |
+
```
|
39 |
+
|
40 |
+
Or Python API:
|
41 |
+
|
42 |
+
```
|
43 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
44 |
+
|
45 |
+
model = AutoModelForSequenceClassification.from_pretrained("alvp/autonlp-alberti-stanza-names-34318169", use_auth_token=True)
|
46 |
+
|
47 |
+
tokenizer = AutoTokenizer.from_pretrained("alvp/autonlp-alberti-stanza-names-34318169", 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,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoNLP",
|
3 |
+
"_num_labels": 46,
|
4 |
+
"architectures": [
|
5 |
+
"BertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"gradient_checkpointing": false,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "cantar",
|
15 |
+
"1": "chamberga",
|
16 |
+
"2": "copla_arte_mayor",
|
17 |
+
"3": "copla_arte_menor",
|
18 |
+
"4": "copla_castellana",
|
19 |
+
"5": "copla_mixta",
|
20 |
+
"6": "copla_real",
|
21 |
+
"7": "couplet",
|
22 |
+
"8": "cuaderna_v\u00eda",
|
23 |
+
"9": "cuarteta",
|
24 |
+
"10": "cuarteto",
|
25 |
+
"11": "cuarteto_lira",
|
26 |
+
"12": "d\u00e9cima_antigua",
|
27 |
+
"13": "endecha_real",
|
28 |
+
"14": "espinela",
|
29 |
+
"15": "estrofa_francisco_de_la_torre",
|
30 |
+
"16": "estrofa_manrique\u00f1a",
|
31 |
+
"17": "estrofa_s\u00e1fica",
|
32 |
+
"18": "haiku",
|
33 |
+
"19": "lira",
|
34 |
+
"20": "novena",
|
35 |
+
"21": "octava",
|
36 |
+
"22": "octava_real",
|
37 |
+
"23": "octavilla",
|
38 |
+
"24": "ovillejo",
|
39 |
+
"25": "quinteto",
|
40 |
+
"26": "quintilla",
|
41 |
+
"27": "redondilla",
|
42 |
+
"28": "romance",
|
43 |
+
"29": "romance_arte_mayor",
|
44 |
+
"30": "seguidilla",
|
45 |
+
"31": "seguidilla_compuesta",
|
46 |
+
"32": "seguidilla_gitana",
|
47 |
+
"33": "septeto",
|
48 |
+
"34": "septilla",
|
49 |
+
"35": "serventesio",
|
50 |
+
"36": "sexta_rima",
|
51 |
+
"37": "sexteto",
|
52 |
+
"38": "sexteto_lira",
|
53 |
+
"39": "sextilla",
|
54 |
+
"40": "silva_arromanzada",
|
55 |
+
"41": "sole\u00e1",
|
56 |
+
"42": "tercetillo",
|
57 |
+
"43": "terceto",
|
58 |
+
"44": "terceto_monorrimo",
|
59 |
+
"45": "unknown"
|
60 |
+
},
|
61 |
+
"initializer_range": 0.02,
|
62 |
+
"intermediate_size": 3072,
|
63 |
+
"label2id": {
|
64 |
+
"cantar": 0,
|
65 |
+
"chamberga": 1,
|
66 |
+
"copla_arte_mayor": 2,
|
67 |
+
"copla_arte_menor": 3,
|
68 |
+
"copla_castellana": 4,
|
69 |
+
"copla_mixta": 5,
|
70 |
+
"copla_real": 6,
|
71 |
+
"couplet": 7,
|
72 |
+
"cuaderna_v\u00eda": 8,
|
73 |
+
"cuarteta": 9,
|
74 |
+
"cuarteto": 10,
|
75 |
+
"cuarteto_lira": 11,
|
76 |
+
"d\u00e9cima_antigua": 12,
|
77 |
+
"endecha_real": 13,
|
78 |
+
"espinela": 14,
|
79 |
+
"estrofa_francisco_de_la_torre": 15,
|
80 |
+
"estrofa_manrique\u00f1a": 16,
|
81 |
+
"estrofa_s\u00e1fica": 17,
|
82 |
+
"haiku": 18,
|
83 |
+
"lira": 19,
|
84 |
+
"novena": 20,
|
85 |
+
"octava": 21,
|
86 |
+
"octava_real": 22,
|
87 |
+
"octavilla": 23,
|
88 |
+
"ovillejo": 24,
|
89 |
+
"quinteto": 25,
|
90 |
+
"quintilla": 26,
|
91 |
+
"redondilla": 27,
|
92 |
+
"romance": 28,
|
93 |
+
"romance_arte_mayor": 29,
|
94 |
+
"seguidilla": 30,
|
95 |
+
"seguidilla_compuesta": 31,
|
96 |
+
"seguidilla_gitana": 32,
|
97 |
+
"septeto": 33,
|
98 |
+
"septilla": 34,
|
99 |
+
"serventesio": 35,
|
100 |
+
"sexta_rima": 36,
|
101 |
+
"sexteto": 37,
|
102 |
+
"sexteto_lira": 38,
|
103 |
+
"sextilla": 39,
|
104 |
+
"silva_arromanzada": 40,
|
105 |
+
"sole\u00e1": 41,
|
106 |
+
"tercetillo": 42,
|
107 |
+
"terceto": 43,
|
108 |
+
"terceto_monorrimo": 44,
|
109 |
+
"unknown": 45
|
110 |
+
},
|
111 |
+
"layer_norm_eps": 1e-12,
|
112 |
+
"max_length": 192,
|
113 |
+
"max_position_embeddings": 512,
|
114 |
+
"model_type": "bert",
|
115 |
+
"num_attention_heads": 12,
|
116 |
+
"num_hidden_layers": 12,
|
117 |
+
"pad_token_id": 0,
|
118 |
+
"padding": "max_length",
|
119 |
+
"pooler_fc_size": 768,
|
120 |
+
"pooler_num_attention_heads": 12,
|
121 |
+
"pooler_num_fc_layers": 3,
|
122 |
+
"pooler_size_per_head": 128,
|
123 |
+
"pooler_type": "first_token_transform",
|
124 |
+
"position_embedding_type": "absolute",
|
125 |
+
"problem_type": "single_label_classification",
|
126 |
+
"transformers_version": "4.8.0",
|
127 |
+
"type_vocab_size": 2,
|
128 |
+
"use_cache": true,
|
129 |
+
"vocab_size": 119547
|
130 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8e462c9683ef5745a68dc97ee36e098008e80a02cd4d48d92b9858ec480a974
|
3 |
+
size 711639341
|
sample_input.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c85db026f6f114af4f7082afa056b67f1bcb943800173e47bcd9c63abbbcd530
|
3 |
+
size 5920
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoNLP", "tokenizer_class": "BertTokenizer"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|