system HF staff commited on
Commit
7f5e729
1 Parent(s): 6bd6048

Commit From AutoTrain

Browse files
.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,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - autotrain
4
+ - text-classification
5
+ language:
6
+ - zh
7
+ widget:
8
+ - text: "I love AutoTrain 🤗"
9
+ datasets:
10
+ - yuan1729/autotrain-data-YuAN-lawthone-CL_facts_backTrans
11
+ co2_eq_emissions:
12
+ emissions: 151.97297148175758
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Multi-class Classification
18
+ - Model ID: 1241547318
19
+ - CO2 Emissions (in grams): 151.9730
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 0.512
24
+ - Accuracy: 0.862
25
+ - Macro F1: 0.862
26
+ - Micro F1: 0.862
27
+ - Weighted F1: 0.862
28
+ - Macro Precision: 0.863
29
+ - Micro Precision: 0.862
30
+ - Weighted Precision: 0.863
31
+ - Macro Recall: 0.862
32
+ - Micro Recall: 0.862
33
+ - Weighted Recall: 0.862
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/yuan1729/autotrain-YuAN-lawthone-CL_facts_backTrans-1241547318
42
+ ```
43
+
44
+ Or Python API:
45
+
46
+ ```
47
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
48
+
49
+ model = AutoModelForSequenceClassification.from_pretrained("yuan1729/autotrain-YuAN-lawthone-CL_facts_backTrans-1241547318", use_auth_token=True)
50
+
51
+ tokenizer = AutoTokenizer.from_pretrained("yuan1729/autotrain-YuAN-lawthone-CL_facts_backTrans-1241547318", 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,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 27,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "directionality": "bidi",
11
+ "eos_token_id": 2,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "\u4fb5\u5360\u7f6a",
17
+ "1": "\u507d\u8b49\u53ca\u8aa3\u544a\u7f6a",
18
+ "2": "\u507d\u9020\u6587\u66f8\u5370\u6587\u7f6a",
19
+ "3": "\u507d\u9020\u6709\u50f9\u8b49\u5238\u7f6a",
20
+ "4": "\u50b7\u5bb3\u7f6a",
21
+ "5": "\u516c\u5171\u5371\u96aa\u7f6a",
22
+ "6": "\u59a8\u5bb3\u516c\u52d9\u7f6a",
23
+ "7": "\u59a8\u5bb3\u540d\u8b7d\u53ca\u4fe1\u7528\u7f6a",
24
+ "8": "\u59a8\u5bb3\u5a5a\u59fb\u53ca\u5bb6\u5ead\u7f6a",
25
+ "9": "\u59a8\u5bb3\u6027\u81ea\u4e3b\u7f6a",
26
+ "10": "\u59a8\u5bb3\u6295\u7968\u7f6a",
27
+ "11": "\u59a8\u5bb3\u79d8\u5bc6\u7f6a",
28
+ "12": "\u59a8\u5bb3\u79e9\u5e8f\u7f6a",
29
+ "13": "\u59a8\u5bb3\u81ea\u7531\u7f6a",
30
+ "14": "\u59a8\u5bb3\u96fb\u8166\u4f7f\u7528\u7f6a",
31
+ "15": "\u59a8\u5bb3\u98a8\u5316\u7f6a",
32
+ "16": "\u6050\u5687\u53ca\u64c4\u4eba\u52d2\u8d16\u7f6a",
33
+ "17": "\u6436\u596a\u5f37\u76dc\u53ca\u6d77\u76dc\u7f6a",
34
+ "18": "\u6bba\u4eba\u7f6a",
35
+ "19": "\u6bc0\u68c4\u640d\u58de\u7f6a",
36
+ "20": "\u7006\u8077\u7f6a",
37
+ "21": "\u7aca\u76dc\u7f6a",
38
+ "22": "\u85cf\u533f\u4eba\u72af\u53ca\u6e6e\u6ec5\u8b49\u64da\u7f6a",
39
+ "23": "\u8a50\u6b3a\u80cc\u4fe1\u53ca\u91cd\u5229\u7f6a",
40
+ "24": "\u8ced\u535a\u7f6a",
41
+ "25": "\u8d13\u7269\u7f6a",
42
+ "26": "\u907a\u68c4\u7f6a"
43
+ },
44
+ "initializer_range": 0.02,
45
+ "intermediate_size": 3072,
46
+ "label2id": {
47
+ "\u4fb5\u5360\u7f6a": 0,
48
+ "\u507d\u8b49\u53ca\u8aa3\u544a\u7f6a": 1,
49
+ "\u507d\u9020\u6587\u66f8\u5370\u6587\u7f6a": 2,
50
+ "\u507d\u9020\u6709\u50f9\u8b49\u5238\u7f6a": 3,
51
+ "\u50b7\u5bb3\u7f6a": 4,
52
+ "\u516c\u5171\u5371\u96aa\u7f6a": 5,
53
+ "\u59a8\u5bb3\u516c\u52d9\u7f6a": 6,
54
+ "\u59a8\u5bb3\u540d\u8b7d\u53ca\u4fe1\u7528\u7f6a": 7,
55
+ "\u59a8\u5bb3\u5a5a\u59fb\u53ca\u5bb6\u5ead\u7f6a": 8,
56
+ "\u59a8\u5bb3\u6027\u81ea\u4e3b\u7f6a": 9,
57
+ "\u59a8\u5bb3\u6295\u7968\u7f6a": 10,
58
+ "\u59a8\u5bb3\u79d8\u5bc6\u7f6a": 11,
59
+ "\u59a8\u5bb3\u79e9\u5e8f\u7f6a": 12,
60
+ "\u59a8\u5bb3\u81ea\u7531\u7f6a": 13,
61
+ "\u59a8\u5bb3\u96fb\u8166\u4f7f\u7528\u7f6a": 14,
62
+ "\u59a8\u5bb3\u98a8\u5316\u7f6a": 15,
63
+ "\u6050\u5687\u53ca\u64c4\u4eba\u52d2\u8d16\u7f6a": 16,
64
+ "\u6436\u596a\u5f37\u76dc\u53ca\u6d77\u76dc\u7f6a": 17,
65
+ "\u6bba\u4eba\u7f6a": 18,
66
+ "\u6bc0\u68c4\u640d\u58de\u7f6a": 19,
67
+ "\u7006\u8077\u7f6a": 20,
68
+ "\u7aca\u76dc\u7f6a": 21,
69
+ "\u85cf\u533f\u4eba\u72af\u53ca\u6e6e\u6ec5\u8b49\u64da\u7f6a": 22,
70
+ "\u8a50\u6b3a\u80cc\u4fe1\u53ca\u91cd\u5229\u7f6a": 23,
71
+ "\u8ced\u535a\u7f6a": 24,
72
+ "\u8d13\u7269\u7f6a": 25,
73
+ "\u907a\u68c4\u7f6a": 26
74
+ },
75
+ "layer_norm_eps": 1e-12,
76
+ "max_length": 256,
77
+ "max_position_embeddings": 512,
78
+ "model_type": "bert",
79
+ "num_attention_heads": 12,
80
+ "num_hidden_layers": 12,
81
+ "output_past": true,
82
+ "pad_token_id": 0,
83
+ "padding": "max_length",
84
+ "pooler_fc_size": 768,
85
+ "pooler_num_attention_heads": 12,
86
+ "pooler_num_fc_layers": 3,
87
+ "pooler_size_per_head": 128,
88
+ "pooler_type": "first_token_transform",
89
+ "position_embedding_type": "absolute",
90
+ "problem_type": "single_label_classification",
91
+ "torch_dtype": "float32",
92
+ "transformers_version": "4.20.0",
93
+ "type_vocab_size": 2,
94
+ "use_cache": true,
95
+ "vocab_size": 21128
96
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec5eacd1bea197d9ac118cf0611fba246285ecb46c66b8cf391972d51eb3030e
3
+ size 409224621
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
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_lower_case": true,
4
+ "mask_token": "[MASK]",
5
+ "name_or_path": "AutoTrain",
6
+ "pad_token": "[PAD]",
7
+ "sep_token": "[SEP]",
8
+ "special_tokens_map_file": "/app/.cache/huggingface/transformers/d521373fc7ac35f63d56cf303de74a202403dcf1aaa792cd01f653694be59563.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "BertTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff