system HF staff commited on
Commit
c212128
1 Parent(s): 3eeaa42

Commit From AutoTrain

Browse files
.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
+ - ar
7
+ widget:
8
+ - text: "I love AutoTrain"
9
+ datasets:
10
+ - DuhAlbared/autotrain-data-dru-textclassification
11
+ co2_eq_emissions:
12
+ emissions: 1.2953982175499286
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Multi-class Classification
18
+ - Model ID: 66230136430
19
+ - CO2 Emissions (in grams): 1.2954
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 0.296
24
+ - Accuracy: 0.916
25
+ - Macro F1: 0.916
26
+ - Micro F1: 0.916
27
+ - Weighted F1: 0.916
28
+ - Macro Precision: 0.917
29
+ - Micro Precision: 0.916
30
+ - Weighted Precision: 0.917
31
+ - Macro Recall: 0.916
32
+ - Micro Recall: 0.916
33
+ - Weighted Recall: 0.916
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/DuhAlbared/autotrain-dru-textclassification-66230136430
42
+ ```
43
+
44
+ Or Python API:
45
+
46
+ ```
47
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
48
+
49
+ model = AutoModelForSequenceClassification.from_pretrained("DuhAlbared/autotrain-dru-textclassification-66230136430", use_auth_token=True)
50
+
51
+ tokenizer = AutoTokenizer.from_pretrained("DuhAlbared/autotrain-dru-textclassification-66230136430", 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,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 6,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "\u0627\u0644\u062a\u0643\u0646\u0648\u0644\u0648\u062c\u064a\u0627",
14
+ "1": "\u0627\u0644\u062f\u064a\u0646",
15
+ "2": "\u0627\u0644\u0631\u064a\u0627\u0636\u0629",
16
+ "3": "\u0627\u0644\u0633\u064a\u0627\u0633\u0629",
17
+ "4": "\u0627\u0644\u0637\u0628\u064a\u0629",
18
+ "5": "\u0627\u0644\u0645\u0627\u0644\u064a\u0629"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 3072,
22
+ "label2id": {
23
+ "\u0627\u0644\u062a\u0643\u0646\u0648\u0644\u0648\u062c\u064a\u0627": 0,
24
+ "\u0627\u0644\u062f\u064a\u0646": 1,
25
+ "\u0627\u0644\u0631\u064a\u0627\u0636\u0629": 2,
26
+ "\u0627\u0644\u0633\u064a\u0627\u0633\u0629": 3,
27
+ "\u0627\u0644\u0637\u0628\u064a\u0629": 4,
28
+ "\u0627\u0644\u0645\u0627\u0644\u064a\u0629": 5
29
+ },
30
+ "layer_norm_eps": 1e-12,
31
+ "max_length": 256,
32
+ "max_position_embeddings": 512,
33
+ "model_type": "bert",
34
+ "num_attention_heads": 12,
35
+ "num_hidden_layers": 12,
36
+ "pad_token_id": 0,
37
+ "padding": "max_length",
38
+ "position_embedding_type": "absolute",
39
+ "problem_type": "single_label_classification",
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.29.2",
42
+ "type_vocab_size": 2,
43
+ "use_cache": true,
44
+ "vocab_size": 64000
45
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0782f50210adee26c82fe64917c3a3a30b1ee9a6ed2850857c143a892dd6818
3
+ size 540819568
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0bd7daae1b21690a34586adfbb0466bb2299a54607eb0aee0451077816c035bf
3
+ size 540864629
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9045a90e772c30f03a784dc784ee394ecfb20f0795f1c742970b18c69469b3bd
3
+ size 1777127
tokenizer_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": false,
6
+ "mask_token": "[MASK]",
7
+ "max_len": 512,
8
+ "model_max_length": 512,
9
+ "never_split": [
10
+ "[بريد]",
11
+ "[مستخدم]",
12
+ "[رابط]"
13
+ ],
14
+ "pad_token": "[PAD]",
15
+ "sep_token": "[SEP]",
16
+ "strip_accents": null,
17
+ "tokenize_chinese_chars": true,
18
+ "tokenizer_class": "BertTokenizer",
19
+ "unk_token": "[UNK]"
20
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff