system HF staff commited on
Commit
e87ad35
1 Parent(s): 19b21e3

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
+ - en
7
+ widget:
8
+ - text: "I love AutoTrain 🤗"
9
+ datasets:
10
+ - jogoni/autotrain-data-cuad-document-type-cleaned
11
+ co2_eq_emissions:
12
+ emissions: 4.9342799418113215
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Multi-class Classification
18
+ - Model ID: 2883984346
19
+ - CO2 Emissions (in grams): 4.9343
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 0.304
24
+ - Accuracy: 0.982
25
+ - Macro F1: 0.949
26
+ - Micro F1: 0.982
27
+ - Weighted F1: 0.978
28
+ - Macro Precision: 0.946
29
+ - Micro Precision: 0.982
30
+ - Weighted Precision: 0.976
31
+ - Macro Recall: 0.954
32
+ - Micro Recall: 0.982
33
+ - Weighted Recall: 0.982
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/jogoni/autotrain-cuad-document-type-cleaned-2883984346
42
+ ```
43
+
44
+ Or Python API:
45
+
46
+ ```
47
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
48
+
49
+ model = AutoModelForSequenceClassification.from_pretrained("jogoni/autotrain-cuad-document-type-cleaned-2883984346", use_auth_token=True)
50
+
51
+ tokenizer = AutoTokenizer.from_pretrained("jogoni/autotrain-cuad-document-type-cleaned-2883984346", 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,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 25,
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": "Affiliate Agreement",
15
+ "1": "Agency Agreements",
16
+ "2": "Co_Branding",
17
+ "3": "Collaboration",
18
+ "4": "Consulting Agreements",
19
+ "5": "Development",
20
+ "6": "Distributor",
21
+ "7": "Endorsement",
22
+ "8": "Franchise",
23
+ "9": "Hosting",
24
+ "10": "IP",
25
+ "11": "Joint Venture",
26
+ "12": "License_Agreements",
27
+ "13": "Maintenance",
28
+ "14": "Manufacturing",
29
+ "15": "Marketing",
30
+ "16": "Non_Compete_Non_Solicit",
31
+ "17": "Outsourcing",
32
+ "18": "Promotion",
33
+ "19": "Reseller",
34
+ "20": "Service",
35
+ "21": "Sponsorship",
36
+ "22": "Strategic Alliance",
37
+ "23": "Supply",
38
+ "24": "Transportation"
39
+ },
40
+ "initializer_range": 0.02,
41
+ "intermediate_size": 3072,
42
+ "label2id": {
43
+ "Affiliate Agreement": 0,
44
+ "Agency Agreements": 1,
45
+ "Co_Branding": 2,
46
+ "Collaboration": 3,
47
+ "Consulting Agreements": 4,
48
+ "Development": 5,
49
+ "Distributor": 6,
50
+ "Endorsement": 7,
51
+ "Franchise": 8,
52
+ "Hosting": 9,
53
+ "IP": 10,
54
+ "Joint Venture": 11,
55
+ "License_Agreements": 12,
56
+ "Maintenance": 13,
57
+ "Manufacturing": 14,
58
+ "Marketing": 15,
59
+ "Non_Compete_Non_Solicit": 16,
60
+ "Outsourcing": 17,
61
+ "Promotion": 18,
62
+ "Reseller": 19,
63
+ "Service": 20,
64
+ "Sponsorship": 21,
65
+ "Strategic Alliance": 22,
66
+ "Supply": 23,
67
+ "Transportation": 24
68
+ },
69
+ "layer_norm_eps": 1e-12,
70
+ "max_length": 512,
71
+ "max_position_embeddings": 512,
72
+ "model_type": "bert",
73
+ "num_attention_heads": 12,
74
+ "num_hidden_layers": 12,
75
+ "pad_token_id": 0,
76
+ "padding": "max_length",
77
+ "position_embedding_type": "absolute",
78
+ "problem_type": "single_label_classification",
79
+ "torch_dtype": "float32",
80
+ "transformers_version": "4.25.1",
81
+ "type_vocab_size": 2,
82
+ "use_cache": true,
83
+ "vocab_size": 30522
84
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6fd2c9bee8e429beb45743a214f2a62fe1be39249e6158c7b581b0cbdf3e814
3
+ size 438078645
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:cb374d6bc042c22455946f4e09a89d29882a199fdaf8fb25be00dc8b8857a448
3
+ size 711661
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_lower_case": true,
4
+ "mask_token": "[MASK]",
5
+ "model_max_length": 512,
6
+ "name_or_path": "AutoTrain",
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "special_tokens_map_file": null,
10
+ "strip_accents": null,
11
+ "tokenize_chinese_chars": true,
12
+ "tokenizer_class": "BertTokenizer",
13
+ "unk_token": "[UNK]"
14
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff