system HF staff commited on
Commit
5f48e34
1 Parent(s): 958c236

Commit From AutoTrain

Browse files
.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: bn
4
+ widget:
5
+ - text: "I love AutoTrain 🤗"
6
+ datasets:
7
+ - dee4hf/autotrain-data-deephate2
8
+ co2_eq_emissions: 7.663051290039914
9
+ ---
10
+
11
+ # Model Trained Using AutoTrain
12
+
13
+ - Problem type: Multi-class Classification
14
+ - Model ID: 1093539673
15
+ - CO2 Emissions (in grams): 7.663051290039914
16
+
17
+ ## Validation Metrics
18
+
19
+ - Loss: 0.34404119849205017
20
+ - Accuracy: 0.8843120070113936
21
+ - Macro F1: 0.8771237753798016
22
+ - Micro F1: 0.8843120070113936
23
+ - Weighted F1: 0.8843498914288083
24
+ - Macro Precision: 0.8745249813256932
25
+ - Micro Precision: 0.8843120070113936
26
+ - Weighted Precision: 0.8854719661321065
27
+ - Macro Recall: 0.8812563739901838
28
+ - Micro Recall: 0.8843120070113936
29
+ - Weighted Recall: 0.8843120070113936
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/dee4hf/autotrain-deephate2-1093539673
38
+ ```
39
+
40
+ Or Python API:
41
+
42
+ ```
43
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
44
+
45
+ model = AutoModelForSequenceClassification.from_pretrained("dee4hf/autotrain-deephate2-1093539673", use_auth_token=True)
46
+
47
+ tokenizer = AutoTokenizer.from_pretrained("dee4hf/autotrain-deephate2-1093539673", 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,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 4,
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": 1024,
17
+ "id2label": {
18
+ "0": "Geopolitical",
19
+ "1": "Personal",
20
+ "2": "Political",
21
+ "3": "Religious"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "inner_group_num": 1,
25
+ "intermediate_size": 4096,
26
+ "label2id": {
27
+ "Geopolitical": 0,
28
+ "Personal": 1,
29
+ "Political": 2,
30
+ "Religious": 3
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "max_length": 128,
34
+ "max_position_embeddings": 512,
35
+ "model_type": "albert",
36
+ "net_structure_type": 0,
37
+ "num_attention_heads": 16,
38
+ "num_hidden_groups": 1,
39
+ "num_hidden_layers": 24,
40
+ "num_memory_blocks": 0,
41
+ "pad_token_id": 0,
42
+ "padding": "max_length",
43
+ "position_embedding_type": "absolute",
44
+ "problem_type": "single_label_classification",
45
+ "tokenizer_class": "PreTrainedTokenizerFast",
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.15.0",
48
+ "type_vocab_size": 2,
49
+ "vocab_size": 32000
50
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dc5ca5f40a36ddba629f177666ac8c5c93b5b01734d4e796f94c64fd7efa4ab
3
+ size 71791313
sample_input.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a05fee25b0ae7cb9600157b4e85417b053907dbf709638a8551aa214585362d4
3
+ size 4384
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "[CLS]", "eos_token": "[SEP]", "unk_token": "<unk>", "sep_token": "[SEP]", "pad_token": "<pad>", "cls_token": "[CLS]", "mask_token": {"content": "[MASK]", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "[CLS]", "eos_token": "[SEP]", "unk_token": "<unk>", "sep_token": "[SEP]", "cls_token": "[CLS]", "pad_token": "<pad>", "mask_token": {"content": "[MASK]", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false, "__type": "AddedToken"}, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoTrain", "tokenizer_class": "PreTrainedTokenizerFast"}