Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +52 -0
- config.json +64 -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,6 @@ 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 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags: autotrain
|
3 |
+
language: en
|
4 |
+
widget:
|
5 |
+
- text: "I love AutoTrain 🤗"
|
6 |
+
datasets:
|
7 |
+
- jonas/autotrain-data-osdg-sdg-classifier
|
8 |
+
co2_eq_emissions: 0.0653263174784986
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Trained Using AutoTrain
|
12 |
+
|
13 |
+
- Problem type: Multi-class Classification
|
14 |
+
- Model ID: 900229515
|
15 |
+
- CO2 Emissions (in grams): 0.0653263174784986
|
16 |
+
|
17 |
+
## Validation Metrics
|
18 |
+
|
19 |
+
- Loss: 0.3644874095916748
|
20 |
+
- Accuracy: 0.8972544579677328
|
21 |
+
- Macro F1: 0.8500873710954522
|
22 |
+
- Micro F1: 0.8972544579677328
|
23 |
+
- Weighted F1: 0.8937529692986061
|
24 |
+
- Macro Precision: 0.8694369727467804
|
25 |
+
- Micro Precision: 0.8972544579677328
|
26 |
+
- Weighted Precision: 0.8946984684977016
|
27 |
+
- Macro Recall: 0.8405065997404059
|
28 |
+
- Micro Recall: 0.8972544579677328
|
29 |
+
- Weighted Recall: 0.8972544579677328
|
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 AutoTrain"}' https://api-inference.huggingface.co/models/jonas/autotrain-osdg-sdg-classifier-900229515
|
38 |
+
```
|
39 |
+
|
40 |
+
Or Python API:
|
41 |
+
|
42 |
+
```
|
43 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
44 |
+
|
45 |
+
model = AutoModelForSequenceClassification.from_pretrained("jonas/autotrain-osdg-sdg-classifier-900229515", use_auth_token=True)
|
46 |
+
|
47 |
+
tokenizer = AutoTokenizer.from_pretrained("jonas/autotrain-osdg-sdg-classifier-900229515", use_auth_token=True)
|
48 |
+
|
49 |
+
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
50 |
+
|
51 |
+
outputs = model(**inputs)
|
52 |
+
```
|
config.json
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 15,
|
4 |
+
"architectures": [
|
5 |
+
"BertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"gradient_checkpointing": false,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "1",
|
15 |
+
"1": "10",
|
16 |
+
"2": "11",
|
17 |
+
"3": "12",
|
18 |
+
"4": "13",
|
19 |
+
"5": "14",
|
20 |
+
"6": "15",
|
21 |
+
"7": "2",
|
22 |
+
"8": "3",
|
23 |
+
"9": "4",
|
24 |
+
"10": "5",
|
25 |
+
"11": "6",
|
26 |
+
"12": "7",
|
27 |
+
"13": "8",
|
28 |
+
"14": "9"
|
29 |
+
},
|
30 |
+
"initializer_range": 0.02,
|
31 |
+
"intermediate_size": 3072,
|
32 |
+
"label2id": {
|
33 |
+
"1": 0,
|
34 |
+
"10": 1,
|
35 |
+
"11": 2,
|
36 |
+
"12": 3,
|
37 |
+
"13": 4,
|
38 |
+
"14": 5,
|
39 |
+
"15": 6,
|
40 |
+
"2": 7,
|
41 |
+
"3": 8,
|
42 |
+
"4": 9,
|
43 |
+
"5": 10,
|
44 |
+
"6": 11,
|
45 |
+
"7": 12,
|
46 |
+
"8": 13,
|
47 |
+
"9": 14
|
48 |
+
},
|
49 |
+
"layer_norm_eps": 1e-12,
|
50 |
+
"max_length": 256,
|
51 |
+
"max_position_embeddings": 512,
|
52 |
+
"model_type": "bert",
|
53 |
+
"num_attention_heads": 12,
|
54 |
+
"num_hidden_layers": 12,
|
55 |
+
"pad_token_id": 0,
|
56 |
+
"padding": "max_length",
|
57 |
+
"position_embedding_type": "absolute",
|
58 |
+
"problem_type": "single_label_classification",
|
59 |
+
"torch_dtype": "float32",
|
60 |
+
"transformers_version": "4.15.0",
|
61 |
+
"type_vocab_size": 2,
|
62 |
+
"use_cache": true,
|
63 |
+
"vocab_size": 30522
|
64 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:851167ff459b43b72f8be95ae6d1db59b9ce911dee302a92afcd6853ad875681
|
3 |
+
size 438059181
|
sample_input.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8b4b38dca3d8a43ea315ce05181d64896213509b8b0ddb6c0bc56e2272b60e92
|
3 |
+
size 7462
|
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": true, "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": "AutoTrain", "tokenizer_class": "BertTokenizer"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|