system HF staff commited on
Commit
2f33b0f
1 Parent(s): 3ec8ab5

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
+ - unk
7
+ widget:
8
+ - text: "I love AutoTrain 🤗"
9
+ datasets:
10
+ - tkurtulus/autotrain-data-tktktk
11
+ co2_eq_emissions:
12
+ emissions: 1.2718440164245879
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Multi-class Classification
18
+ - Model ID: 3023686751
19
+ - CO2 Emissions (in grams): 1.2718
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 0.489
24
+ - Accuracy: 0.839
25
+ - Macro F1: 0.767
26
+ - Micro F1: 0.839
27
+ - Weighted F1: 0.832
28
+ - Macro Precision: 0.782
29
+ - Micro Precision: 0.839
30
+ - Weighted Precision: 0.845
31
+ - Macro Recall: 0.770
32
+ - Micro Recall: 0.839
33
+ - Weighted Recall: 0.839
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/tkurtulus/autotrain-tktktk-3023686751
42
+ ```
43
+
44
+ Or Python API:
45
+
46
+ ```
47
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
48
+
49
+ model = AutoModelForSequenceClassification.from_pretrained("tkurtulus/autotrain-tktktk-3023686751", use_auth_token=True)
50
+
51
+ tokenizer = AutoTokenizer.from_pretrained("tkurtulus/autotrain-tktktk-3023686751", 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,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 3,
4
+ "architectures": [
5
+ "ConvBertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "conv_kernel_size": 9,
11
+ "embedding_size": 768,
12
+ "eos_token_id": 2,
13
+ "head_ratio": 2,
14
+ "hidden_act": "gelu",
15
+ "hidden_dropout_prob": 0.1,
16
+ "hidden_size": 768,
17
+ "id2label": {
18
+ "0": "negative",
19
+ "1": "neutral",
20
+ "2": "positive"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "negative": 0,
26
+ "neutral": 1,
27
+ "positive": 2
28
+ },
29
+ "layer_norm_eps": 1e-12,
30
+ "max_length": 64,
31
+ "max_position_embeddings": 512,
32
+ "model_type": "convbert",
33
+ "num_attention_heads": 12,
34
+ "num_groups": 1,
35
+ "num_hidden_layers": 12,
36
+ "pad_token_id": 0,
37
+ "padding": "max_length",
38
+ "problem_type": "single_label_classification",
39
+ "torch_dtype": "float32",
40
+ "transformers_version": "4.25.1",
41
+ "type_vocab_size": 2,
42
+ "vocab_size": 32000
43
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a553cf7e661d50947d57a30a0a11e40c2fe54733a65d560dcdd71d88d0cf7f2
3
+ size 429738117
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:a8c0906987fb74d6b47da0c3eaef28007effc7acca6832659e68b9d6af09a309
3
+ size 766406
tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_basic_tokenize": true,
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "max_len": 512,
7
+ "model_max_length": 512,
8
+ "name_or_path": "AutoTrain",
9
+ "never_split": null,
10
+ "pad_token": "[PAD]",
11
+ "sep_token": "[SEP]",
12
+ "special_tokens_map_file": null,
13
+ "strip_accents": false,
14
+ "tokenize_chinese_chars": true,
15
+ "tokenizer_class": "ConvBertTokenizer",
16
+ "unk_token": "[UNK]"
17
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff