Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +56 -0
- added_tokens.json +3 -0
- config.json +52 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +9 -0
- spm.model +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +17 -0
.gitattributes
CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
37 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- autotrain
|
4 |
+
- text-classification
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
widget:
|
8 |
+
- text: "I love AutoTrain 🤗"
|
9 |
+
datasets:
|
10 |
+
- madmancity/autotrain-data-revmlc
|
11 |
+
co2_eq_emissions:
|
12 |
+
emissions: 0.8759779776754995
|
13 |
+
---
|
14 |
+
|
15 |
+
# Model Trained Using AutoTrain
|
16 |
+
|
17 |
+
- Problem type: Multi-class Classification
|
18 |
+
- Model ID: 48079117239
|
19 |
+
- CO2 Emissions (in grams): 0.8760
|
20 |
+
|
21 |
+
## Validation Metrics
|
22 |
+
|
23 |
+
- Loss: 0.595
|
24 |
+
- Accuracy: 0.789
|
25 |
+
- Macro F1: 0.575
|
26 |
+
- Micro F1: 0.789
|
27 |
+
- Weighted F1: 0.763
|
28 |
+
- Macro Precision: 0.630
|
29 |
+
- Micro Precision: 0.789
|
30 |
+
- Weighted Precision: 0.775
|
31 |
+
- Macro Recall: 0.588
|
32 |
+
- Micro Recall: 0.789
|
33 |
+
- Weighted Recall: 0.789
|
34 |
+
|
35 |
+
|
36 |
+
## Usage
|
37 |
+
|
38 |
+
You can use cURL to access this model:
|
39 |
+
|
40 |
+
```
|
41 |
+
$ 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/madmancity/autotrain-revmlc-48079117239
|
42 |
+
```
|
43 |
+
|
44 |
+
Or Python API:
|
45 |
+
|
46 |
+
```
|
47 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
48 |
+
|
49 |
+
model = AutoModelForSequenceClassification.from_pretrained("madmancity/autotrain-revmlc-48079117239", use_auth_token=True)
|
50 |
+
|
51 |
+
tokenizer = AutoTokenizer.from_pretrained("madmancity/autotrain-revmlc-48079117239", use_auth_token=True)
|
52 |
+
|
53 |
+
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
54 |
+
|
55 |
+
outputs = model(**inputs)
|
56 |
+
```
|
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"[MASK]": 128000
|
3 |
+
}
|
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 5,
|
4 |
+
"architectures": [
|
5 |
+
"DebertaV2ForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "1",
|
13 |
+
"1": "2",
|
14 |
+
"2": "3",
|
15 |
+
"3": "4",
|
16 |
+
"4": "5"
|
17 |
+
},
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 3072,
|
20 |
+
"label2id": {
|
21 |
+
"1": 0,
|
22 |
+
"2": 1,
|
23 |
+
"3": 2,
|
24 |
+
"4": 3,
|
25 |
+
"5": 4
|
26 |
+
},
|
27 |
+
"layer_norm_eps": 1e-07,
|
28 |
+
"max_length": 192,
|
29 |
+
"max_position_embeddings": 512,
|
30 |
+
"max_relative_positions": -1,
|
31 |
+
"model_type": "deberta-v2",
|
32 |
+
"norm_rel_ebd": "layer_norm",
|
33 |
+
"num_attention_heads": 12,
|
34 |
+
"num_hidden_layers": 12,
|
35 |
+
"pad_token_id": 0,
|
36 |
+
"padding": "max_length",
|
37 |
+
"pooler_dropout": 0,
|
38 |
+
"pooler_hidden_act": "gelu",
|
39 |
+
"pooler_hidden_size": 768,
|
40 |
+
"pos_att_type": [
|
41 |
+
"p2c",
|
42 |
+
"c2p"
|
43 |
+
],
|
44 |
+
"position_biased_input": false,
|
45 |
+
"position_buckets": 256,
|
46 |
+
"relative_attention": true,
|
47 |
+
"share_att_key": true,
|
48 |
+
"torch_dtype": "float32",
|
49 |
+
"transformers_version": "4.25.1",
|
50 |
+
"type_vocab_size": 0,
|
51 |
+
"vocab_size": 128100
|
52 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6a7eab6372ad8c1e4280694fb8b2d7f8b7e165d606f4d1e8ac90b56f604a674e
|
3 |
+
size 737777977
|
special_tokens_map.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "[CLS]",
|
3 |
+
"cls_token": "[CLS]",
|
4 |
+
"eos_token": "[SEP]",
|
5 |
+
"mask_token": "[MASK]",
|
6 |
+
"pad_token": "[PAD]",
|
7 |
+
"sep_token": "[SEP]",
|
8 |
+
"unk_token": "[UNK]"
|
9 |
+
}
|
spm.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
|
3 |
+
size 2464616
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e3c28173d512c595ae9c4056e9e01b80670c0bb412995522689ebd8e3f00aeb
|
3 |
+
size 8656816
|
tokenizer_config.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "[CLS]",
|
3 |
+
"cls_token": "[CLS]",
|
4 |
+
"do_lower_case": false,
|
5 |
+
"eos_token": "[SEP]",
|
6 |
+
"mask_token": "[MASK]",
|
7 |
+
"model_max_length": 1000000000000000019884624838656,
|
8 |
+
"name_or_path": "AutoTrain",
|
9 |
+
"pad_token": "[PAD]",
|
10 |
+
"sep_token": "[SEP]",
|
11 |
+
"sp_model_kwargs": {},
|
12 |
+
"special_tokens_map_file": null,
|
13 |
+
"split_by_punct": false,
|
14 |
+
"tokenizer_class": "DebertaV2Tokenizer",
|
15 |
+
"unk_token": "[UNK]",
|
16 |
+
"vocab_type": "spm"
|
17 |
+
}
|