Commit From AutoTrain
Browse files- .gitattributes +2 -0
- README.md +50 -0
- config.json +45 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +15 -0
- spiece.model +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +23 -0
.gitattributes
CHANGED
@@ -29,3 +29,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
29 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
30 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
31 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
29 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
30 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
31 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- autotrain
|
4 |
+
- text-classification
|
5 |
+
language:
|
6 |
+
- unk
|
7 |
+
widget:
|
8 |
+
- text: "I love AutoTrain 🤗"
|
9 |
+
datasets:
|
10 |
+
- noob123/autotrain-data-app_review_train_albert
|
11 |
+
co2_eq_emissions:
|
12 |
+
emissions: 0.01544918242939362
|
13 |
+
---
|
14 |
+
|
15 |
+
# Model Trained Using AutoTrain
|
16 |
+
|
17 |
+
- Problem type: Binary Classification
|
18 |
+
- Model ID: 1314550196
|
19 |
+
- CO2 Emissions (in grams): 0.0154
|
20 |
+
|
21 |
+
## Validation Metrics
|
22 |
+
|
23 |
+
- Loss: 0.443
|
24 |
+
- Accuracy: 0.813
|
25 |
+
- Precision: 0.883
|
26 |
+
- Recall: 0.829
|
27 |
+
- AUC: 0.863
|
28 |
+
- F1: 0.855
|
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 AutoTrain"}' https://api-inference.huggingface.co/models/noob123/autotrain-app_review_train_albert-1314550196
|
36 |
+
```
|
37 |
+
|
38 |
+
Or Python API:
|
39 |
+
|
40 |
+
```
|
41 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
42 |
+
|
43 |
+
model = AutoModelForSequenceClassification.from_pretrained("noob123/autotrain-app_review_train_albert-1314550196", use_auth_token=True)
|
44 |
+
|
45 |
+
tokenizer = AutoTokenizer.from_pretrained("noob123/autotrain-app_review_train_albert-1314550196", use_auth_token=True)
|
46 |
+
|
47 |
+
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
48 |
+
|
49 |
+
outputs = model(**inputs)
|
50 |
+
```
|
config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 2,
|
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": 768,
|
17 |
+
"id2label": {
|
18 |
+
"0": "0",
|
19 |
+
"1": "1"
|
20 |
+
},
|
21 |
+
"initializer_range": 0.02,
|
22 |
+
"inner_group_num": 1,
|
23 |
+
"intermediate_size": 3072,
|
24 |
+
"label2id": {
|
25 |
+
"0": 0,
|
26 |
+
"1": 1
|
27 |
+
},
|
28 |
+
"layer_norm_eps": 1e-12,
|
29 |
+
"max_length": 128,
|
30 |
+
"max_position_embeddings": 512,
|
31 |
+
"model_type": "albert",
|
32 |
+
"net_structure_type": 0,
|
33 |
+
"num_attention_heads": 12,
|
34 |
+
"num_hidden_groups": 1,
|
35 |
+
"num_hidden_layers": 12,
|
36 |
+
"num_memory_blocks": 0,
|
37 |
+
"pad_token_id": 0,
|
38 |
+
"padding": "max_length",
|
39 |
+
"position_embedding_type": "absolute",
|
40 |
+
"problem_type": "single_label_classification",
|
41 |
+
"torch_dtype": "float32",
|
42 |
+
"transformers_version": "4.20.0",
|
43 |
+
"type_vocab_size": 2,
|
44 |
+
"vocab_size": 30000
|
45 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c7e3650af128b6ab44cfee49eec3e981aab0389c925ab225439c17ba38ef775e
|
3 |
+
size 46753425
|
special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "[CLS]",
|
3 |
+
"cls_token": "[CLS]",
|
4 |
+
"eos_token": "[SEP]",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "[MASK]",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "[SEP]",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
spiece.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fefb02b667a6c5c2fe27602d28e5fb3428f66ab89c7d6f388e7c8d44a02d0336
|
3 |
+
size 760289
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "[CLS]",
|
3 |
+
"cls_token": "[CLS]",
|
4 |
+
"do_lower_case": true,
|
5 |
+
"eos_token": "[SEP]",
|
6 |
+
"keep_accents": false,
|
7 |
+
"mask_token": {
|
8 |
+
"__type": "AddedToken",
|
9 |
+
"content": "[MASK]",
|
10 |
+
"lstrip": true,
|
11 |
+
"normalized": false,
|
12 |
+
"rstrip": false,
|
13 |
+
"single_word": false
|
14 |
+
},
|
15 |
+
"model_max_length": 512,
|
16 |
+
"name_or_path": "AutoTrain",
|
17 |
+
"pad_token": "<pad>",
|
18 |
+
"remove_space": true,
|
19 |
+
"sep_token": "[SEP]",
|
20 |
+
"special_tokens_map_file": null,
|
21 |
+
"tokenizer_class": "AlbertTokenizer",
|
22 |
+
"unk_token": "<unk>"
|
23 |
+
}
|