Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +52 -0
- config.json +81 -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: ar
|
4 |
+
widget:
|
5 |
+
- text: "I love AutoTrain 🤗"
|
6 |
+
datasets:
|
7 |
+
- Yah216/autotrain-data-Poem_meter_3
|
8 |
+
co2_eq_emissions: 404.66986451902227
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Trained Using AutoTrain
|
12 |
+
|
13 |
+
- Problem type: Multi-class Classification
|
14 |
+
- Model ID: 914730015
|
15 |
+
- CO2 Emissions (in grams): 404.66986451902227
|
16 |
+
|
17 |
+
## Validation Metrics
|
18 |
+
|
19 |
+
- Loss: 0.21315555274486542
|
20 |
+
- Accuracy: 0.9493554089595999
|
21 |
+
- Macro F1: 0.7537353091512587
|
22 |
+
- Micro F1: 0.9493554089595999
|
23 |
+
- Weighted F1: 0.9480607076301577
|
24 |
+
- Macro Precision: 0.7925160467633223
|
25 |
+
- Micro Precision: 0.9493554089595999
|
26 |
+
- Weighted Precision: 0.9477713919153736
|
27 |
+
- Macro Recall: 0.7352339804511467
|
28 |
+
- Micro Recall: 0.9493554089595999
|
29 |
+
- Weighted Recall: 0.9493554089595999
|
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/Yah216/autotrain-Poem_meter_3-914730015
|
38 |
+
```
|
39 |
+
|
40 |
+
Or Python API:
|
41 |
+
|
42 |
+
```
|
43 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
44 |
+
|
45 |
+
model = AutoModelForSequenceClassification.from_pretrained("Yah216/autotrain-Poem_meter_3-914730015", use_auth_token=True)
|
46 |
+
|
47 |
+
tokenizer = AutoTokenizer.from_pretrained("Yah216/autotrain-Poem_meter_3-914730015", 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,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 23,
|
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": "\u0627\u0644\u0628\u0633\u064a\u0637",
|
15 |
+
"1": "\u0627\u0644\u062e\u0641\u064a\u0641",
|
16 |
+
"2": "\u0627\u0644\u062f\u0648\u0628\u064a\u062a",
|
17 |
+
"3": "\u0627\u0644\u0631\u062c\u0632",
|
18 |
+
"4": "\u0627\u0644\u0631\u0645\u0644",
|
19 |
+
"5": "\u0627\u0644\u0633\u0631\u064a\u0639",
|
20 |
+
"6": "\u0627\u0644\u0633\u0644\u0633\u0644\u0629",
|
21 |
+
"7": "\u0627\u0644\u0637\u0648\u064a\u0644",
|
22 |
+
"8": "\u0627\u0644\u0643\u0627\u0645\u0644",
|
23 |
+
"9": "\u0627\u0644\u0645\u062a\u062f\u0627\u0631\u0643",
|
24 |
+
"10": "\u0627\u0644\u0645\u062a\u0642\u0627\u0631\u0628",
|
25 |
+
"11": "\u0627\u0644\u0645\u062c\u062a\u062b",
|
26 |
+
"12": "\u0627\u0644\u0645\u062f\u064a\u062f",
|
27 |
+
"13": "\u0627\u0644\u0645\u0636\u0627\u0631\u0639",
|
28 |
+
"14": "\u0627\u0644\u0645\u0642\u062a\u0636\u0628",
|
29 |
+
"15": "\u0627\u0644\u0645\u0646\u0633\u0631\u062d",
|
30 |
+
"16": "\u0627\u0644\u0645\u0648\u0627\u0644\u064a\u0627",
|
31 |
+
"17": "\u0627\u0644\u0647\u0632\u062c",
|
32 |
+
"18": "\u0627\u0644\u0648\u0627\u0641\u0631",
|
33 |
+
"19": "\u0634\u0639\u0631 \u0627\u0644\u062a\u0641\u0639\u064a\u0644\u0629",
|
34 |
+
"20": "\u0634\u0639\u0631 \u062d\u0631",
|
35 |
+
"21": "\u0639\u0627\u0645\u064a",
|
36 |
+
"22": "\u0645\u0648\u0634\u062d"
|
37 |
+
},
|
38 |
+
"initializer_range": 0.02,
|
39 |
+
"intermediate_size": 3072,
|
40 |
+
"label2id": {
|
41 |
+
"\u0627\u0644\u0628\u0633\u064a\u0637": 0,
|
42 |
+
"\u0627\u0644\u062e\u0641\u064a\u0641": 1,
|
43 |
+
"\u0627\u0644\u062f\u0648\u0628\u064a\u062a": 2,
|
44 |
+
"\u0627\u0644\u0631\u062c\u0632": 3,
|
45 |
+
"\u0627\u0644\u0631\u0645\u0644": 4,
|
46 |
+
"\u0627\u0644\u0633\u0631\u064a\u0639": 5,
|
47 |
+
"\u0627\u0644\u0633\u0644\u0633\u0644\u0629": 6,
|
48 |
+
"\u0627\u0644\u0637\u0648\u064a\u0644": 7,
|
49 |
+
"\u0627\u0644\u0643\u0627\u0645\u0644": 8,
|
50 |
+
"\u0627\u0644\u0645\u062a\u062f\u0627\u0631\u0643": 9,
|
51 |
+
"\u0627\u0644\u0645\u062a\u0642\u0627\u0631\u0628": 10,
|
52 |
+
"\u0627\u0644\u0645\u062c\u062a\u062b": 11,
|
53 |
+
"\u0627\u0644\u0645\u062f\u064a\u062f": 12,
|
54 |
+
"\u0627\u0644\u0645\u0636\u0627\u0631\u0639": 13,
|
55 |
+
"\u0627\u0644\u0645\u0642\u062a\u0636\u0628": 14,
|
56 |
+
"\u0627\u0644\u0645\u0646\u0633\u0631\u062d": 15,
|
57 |
+
"\u0627\u0644\u0645\u0648\u0627\u0644\u064a\u0627": 16,
|
58 |
+
"\u0627\u0644\u0647\u0632\u062c": 17,
|
59 |
+
"\u0627\u0644\u0648\u0627\u0641\u0631": 18,
|
60 |
+
"\u0634\u0639\u0631 \u0627\u0644\u062a\u0641\u0639\u064a\u0644\u0629": 19,
|
61 |
+
"\u0634\u0639\u0631 \u062d\u0631": 20,
|
62 |
+
"\u0639\u0627\u0645\u064a": 21,
|
63 |
+
"\u0645\u0648\u0634\u062d": 22
|
64 |
+
},
|
65 |
+
"layer_norm_eps": 1e-12,
|
66 |
+
"max_length": 64,
|
67 |
+
"max_position_embeddings": 512,
|
68 |
+
"model_type": "bert",
|
69 |
+
"num_attention_heads": 12,
|
70 |
+
"num_hidden_layers": 12,
|
71 |
+
"output_past": true,
|
72 |
+
"pad_token_id": 0,
|
73 |
+
"padding": "max_length",
|
74 |
+
"position_embedding_type": "absolute",
|
75 |
+
"problem_type": "single_label_classification",
|
76 |
+
"torch_dtype": "float32",
|
77 |
+
"transformers_version": "4.15.0",
|
78 |
+
"type_vocab_size": 2,
|
79 |
+
"use_cache": true,
|
80 |
+
"vocab_size": 32000
|
81 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:afa2779cb6b3482e98eef2ea852add1ebb3f3d97b64d6c458e8a625186a07217
|
3 |
+
size 442624237
|
sample_input.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:560eb6b2c96e9d76274cac20b145690932fb208bd299842576044d9b6237bcc5
|
3 |
+
size 2848
|
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, "special_tokens_map_file": null, "full_tokenizer_file": null, "name_or_path": "AutoTrain", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "BertTokenizer"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|