Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +56 -0
- config.json +101 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +3 -0
- tokenizer_config.json +66 -0
- vocab.json +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
37 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
38 |
+
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 |
+
- reachosen/autotrain-data-in-basket-3.42
|
11 |
+
co2_eq_emissions:
|
12 |
+
emissions: 0.7228932272231364
|
13 |
+
---
|
14 |
+
|
15 |
+
# Model Trained Using AutoTrain
|
16 |
+
|
17 |
+
- Problem type: Multi-class Classification
|
18 |
+
- Model ID: 83100142189
|
19 |
+
- CO2 Emissions (in grams): 0.7229
|
20 |
+
|
21 |
+
## Validation Metrics
|
22 |
+
|
23 |
+
- Loss: 0.584
|
24 |
+
- Accuracy: 0.851
|
25 |
+
- Macro F1: 0.841
|
26 |
+
- Micro F1: 0.851
|
27 |
+
- Weighted F1: 0.847
|
28 |
+
- Macro Precision: 0.851
|
29 |
+
- Micro Precision: 0.851
|
30 |
+
- Weighted Precision: 0.853
|
31 |
+
- Macro Recall: 0.843
|
32 |
+
- Micro Recall: 0.851
|
33 |
+
- Weighted Recall: 0.851
|
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/reachosen/autotrain-in-basket-3.42-83100142189
|
42 |
+
```
|
43 |
+
|
44 |
+
Or Python API:
|
45 |
+
|
46 |
+
```
|
47 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
48 |
+
|
49 |
+
model = AutoModelForSequenceClassification.from_pretrained("reachosen/autotrain-in-basket-3.42-83100142189", use_auth_token=True)
|
50 |
+
|
51 |
+
tokenizer = AutoTokenizer.from_pretrained("reachosen/autotrain-in-basket-3.42-83100142189", use_auth_token=True)
|
52 |
+
|
53 |
+
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
54 |
+
|
55 |
+
outputs = model(**inputs)
|
56 |
+
```
|
config.json
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 31,
|
4 |
+
"architectures": [
|
5 |
+
"DebertaForSequenceClassification"
|
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": "Abdominal Nonurgent",
|
13 |
+
"1": "Abdominal Urgent",
|
14 |
+
"2": "BrkB N",
|
15 |
+
"3": "BrkB U",
|
16 |
+
"4": "Dig N",
|
17 |
+
"5": "Dig U",
|
18 |
+
"6": "Digestive Nonurgent",
|
19 |
+
"7": "Face/Tongue/Lip Swell Nonurgent",
|
20 |
+
"8": "Face/Tongue/Lip Swell Urgent",
|
21 |
+
"9": "Hd N",
|
22 |
+
"10": "Hd U",
|
23 |
+
"11": "Lg Ank Swling N",
|
24 |
+
"12": "Lg Ank Swling U",
|
25 |
+
"13": "Limb: fnc/sen N",
|
26 |
+
"14": "Limb: fnc/sen U",
|
27 |
+
"15": "Mov U",
|
28 |
+
"16": "Mov N",
|
29 |
+
"17": "Musculoskeletal Nonurgent",
|
30 |
+
"18": "Musculoskeletal Urgent",
|
31 |
+
"19": "Respiratory Nonurgent",
|
32 |
+
"20": "Respiratory Urgent",
|
33 |
+
"21": "Seizure Nonurgent",
|
34 |
+
"22": "Seizure Urgent",
|
35 |
+
"23": "Sk N",
|
36 |
+
"24": "Sk U",
|
37 |
+
"25": "Stand up/Bear Weight Nonurgent",
|
38 |
+
"26": "Stand up/Bear Weight Urgent",
|
39 |
+
"27": "Throat Nonurgent",
|
40 |
+
"28": "Throat Urgent",
|
41 |
+
"29": "Vision Nonurgent",
|
42 |
+
"30": "Vision Urgent"
|
43 |
+
},
|
44 |
+
"initializer_range": 0.02,
|
45 |
+
"intermediate_size": 3072,
|
46 |
+
"label2id": {
|
47 |
+
"Abdominal Nonurgent": 0,
|
48 |
+
"Abdominal Urgent": 1,
|
49 |
+
"BrkB N": 2,
|
50 |
+
"BrkB U": 3,
|
51 |
+
"Dig N": 4,
|
52 |
+
"Dig U": 5,
|
53 |
+
"Digestive Nonurgent": 6,
|
54 |
+
"Face/Tongue/Lip Swell Nonurgent": 7,
|
55 |
+
"Face/Tongue/Lip Swell Urgent": 8,
|
56 |
+
"Hd N": 9,
|
57 |
+
"Hd U": 10,
|
58 |
+
"Lg Ank Swling N": 11,
|
59 |
+
"Lg Ank Swling U": 12,
|
60 |
+
"Limb: fnc/sen N": 13,
|
61 |
+
"Limb: fnc/sen U": 14,
|
62 |
+
"Mov U": 15,
|
63 |
+
"Mov N": 16,
|
64 |
+
"Musculoskeletal Nonurgent": 17,
|
65 |
+
"Musculoskeletal Urgent": 18,
|
66 |
+
"Respiratory Nonurgent": 19,
|
67 |
+
"Respiratory Urgent": 20,
|
68 |
+
"Seizure Nonurgent": 21,
|
69 |
+
"Seizure Urgent": 22,
|
70 |
+
"Sk N": 23,
|
71 |
+
"Sk U": 24,
|
72 |
+
"Stand up/Bear Weight Nonurgent": 25,
|
73 |
+
"Stand up/Bear Weight Urgent": 26,
|
74 |
+
"Throat Nonurgent": 27,
|
75 |
+
"Throat Urgent": 28,
|
76 |
+
"Vision Nonurgent": 29,
|
77 |
+
"Vision Urgent": 30
|
78 |
+
},
|
79 |
+
"layer_norm_eps": 1e-07,
|
80 |
+
"max_length": 64,
|
81 |
+
"max_position_embeddings": 512,
|
82 |
+
"max_relative_positions": -1,
|
83 |
+
"model_type": "deberta",
|
84 |
+
"num_attention_heads": 12,
|
85 |
+
"num_hidden_layers": 12,
|
86 |
+
"pad_token_id": 0,
|
87 |
+
"padding": "max_length",
|
88 |
+
"pooler_dropout": 0,
|
89 |
+
"pooler_hidden_act": "gelu",
|
90 |
+
"pooler_hidden_size": 768,
|
91 |
+
"pos_att_type": [
|
92 |
+
"c2p",
|
93 |
+
"p2c"
|
94 |
+
],
|
95 |
+
"position_biased_input": false,
|
96 |
+
"relative_attention": true,
|
97 |
+
"torch_dtype": "float32",
|
98 |
+
"transformers_version": "4.29.2",
|
99 |
+
"type_vocab_size": 0,
|
100 |
+
"vocab_size": 50265
|
101 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:04600202b0ca6407cb2e0b0d4c18e1d01ac78dc96a02b4a390d1be6b6f767cca
|
3 |
+
size 556892972
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:885851ee42aabe03490b75021b73b25c54e6448bea8fb16a28575a339e311785
|
3 |
+
size 556937841
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "[CLS]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "[SEP]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "[MASK]",
|
25 |
+
"lstrip": true,
|
26 |
+
"normalized": true,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "[PAD]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "[SEP]",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": true,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "[UNK]",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": true,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false
|
50 |
+
}
|
51 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd99ab3440677b009aa0ae0815907e3f484816fe809c18ac165ae039aa6bb151
|
3 |
+
size 2109874
|
tokenizer_config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_prefix_space": false,
|
4 |
+
"bos_token": {
|
5 |
+
"__type": "AddedToken",
|
6 |
+
"content": "[CLS]",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"clean_up_tokenization_spaces": true,
|
13 |
+
"cls_token": {
|
14 |
+
"__type": "AddedToken",
|
15 |
+
"content": "[CLS]",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": true,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false
|
20 |
+
},
|
21 |
+
"do_lower_case": false,
|
22 |
+
"eos_token": {
|
23 |
+
"__type": "AddedToken",
|
24 |
+
"content": "[SEP]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": true,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"errors": "replace",
|
31 |
+
"mask_token": {
|
32 |
+
"__type": "AddedToken",
|
33 |
+
"content": "[MASK]",
|
34 |
+
"lstrip": true,
|
35 |
+
"normalized": true,
|
36 |
+
"rstrip": false,
|
37 |
+
"single_word": false
|
38 |
+
},
|
39 |
+
"model_max_length": 512,
|
40 |
+
"pad_token": {
|
41 |
+
"__type": "AddedToken",
|
42 |
+
"content": "[PAD]",
|
43 |
+
"lstrip": false,
|
44 |
+
"normalized": true,
|
45 |
+
"rstrip": false,
|
46 |
+
"single_word": false
|
47 |
+
},
|
48 |
+
"sep_token": {
|
49 |
+
"__type": "AddedToken",
|
50 |
+
"content": "[SEP]",
|
51 |
+
"lstrip": false,
|
52 |
+
"normalized": true,
|
53 |
+
"rstrip": false,
|
54 |
+
"single_word": false
|
55 |
+
},
|
56 |
+
"tokenizer_class": "DebertaTokenizer",
|
57 |
+
"unk_token": {
|
58 |
+
"__type": "AddedToken",
|
59 |
+
"content": "[UNK]",
|
60 |
+
"lstrip": false,
|
61 |
+
"normalized": true,
|
62 |
+
"rstrip": false,
|
63 |
+
"single_word": false
|
64 |
+
},
|
65 |
+
"vocab_type": "gpt2"
|
66 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|