plop commited on
Commit
b03562b
1 Parent(s): 36a5fea

Convert sampathkethineedi/industry-classification-api to Transformers.js

Browse files
config.json ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sampathkethineedi/industry-classification-api",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "Advertising",
14
+ "1": "Aerospace & Defense",
15
+ "2": "Apparel Retail",
16
+ "3": "Apparel, Accessories & Luxury Goods",
17
+ "4": "Application Software",
18
+ "5": "Asset Management & Custody Banks",
19
+ "6": "Auto Parts & Equipment",
20
+ "7": "Biotechnology",
21
+ "8": "Building Products",
22
+ "9": "Casinos & Gaming",
23
+ "10": "Commodity Chemicals",
24
+ "11": "Communications Equipment",
25
+ "12": "Construction & Engineering",
26
+ "13": "Construction Machinery & Heavy Trucks",
27
+ "14": "Consumer Finance",
28
+ "15": "Data Processing & Outsourced Services",
29
+ "16": "Diversified Metals & Mining",
30
+ "17": "Diversified Support Services",
31
+ "18": "Electric Utilities",
32
+ "19": "Electrical Components & Equipment",
33
+ "20": "Electronic Equipment & Instruments",
34
+ "21": "Environmental & Facilities Services",
35
+ "22": "Gold",
36
+ "23": "Health Care Equipment",
37
+ "24": "Health Care Facilities",
38
+ "25": "Health Care Services",
39
+ "26": "Health Care Supplies",
40
+ "27": "Health Care Technology",
41
+ "28": "Homebuilding",
42
+ "29": "Hotels, Resorts & Cruise Lines",
43
+ "30": "Human Resource & Employment Services",
44
+ "31": "IT Consulting & Other Services",
45
+ "32": "Industrial Machinery",
46
+ "33": "Integrated Telecommunication Services",
47
+ "34": "Interactive Media & Services",
48
+ "35": "Internet & Direct Marketing Retail",
49
+ "36": "Internet Services & Infrastructure",
50
+ "37": "Investment Banking & Brokerage",
51
+ "38": "Leisure Products",
52
+ "39": "Life Sciences Tools & Services",
53
+ "40": "Movies & Entertainment",
54
+ "41": "Oil & Gas Equipment & Services",
55
+ "42": "Oil & Gas Exploration & Production",
56
+ "43": "Oil & Gas Refining & Marketing",
57
+ "44": "Oil & Gas Storage & Transportation",
58
+ "45": "Packaged Foods & Meats",
59
+ "46": "Personal Products",
60
+ "47": "Pharmaceuticals",
61
+ "48": "Property & Casualty Insurance",
62
+ "49": "Real Estate Operating Companies",
63
+ "50": "Regional Banks",
64
+ "51": "Research & Consulting Services",
65
+ "52": "Restaurants",
66
+ "53": "Semiconductors",
67
+ "54": "Specialty Chemicals",
68
+ "55": "Specialty Stores",
69
+ "56": "Steel",
70
+ "57": "Systems Software",
71
+ "58": "Technology Distributors",
72
+ "59": "Technology Hardware, Storage & Peripherals",
73
+ "60": "Thrifts & Mortgage Finance",
74
+ "61": "Trading Companies & Distributors"
75
+ },
76
+ "initializer_range": 0.02,
77
+ "intermediate_size": 3072,
78
+ "label2id": {
79
+ "Advertising": 0,
80
+ "Aerospace & Defense": 1,
81
+ "Apparel Retail": 2,
82
+ "Apparel, Accessories & Luxury Goods": 3,
83
+ "Application Software": 4,
84
+ "Asset Management & Custody Banks": 5,
85
+ "Auto Parts & Equipment": 6,
86
+ "Biotechnology": 7,
87
+ "Building Products": 8,
88
+ "Casinos & Gaming": 9,
89
+ "Commodity Chemicals": 10,
90
+ "Communications Equipment": 11,
91
+ "Construction & Engineering": 12,
92
+ "Construction Machinery & Heavy Trucks": 13,
93
+ "Consumer Finance": 14,
94
+ "Data Processing & Outsourced Services": 15,
95
+ "Diversified Metals & Mining": 16,
96
+ "Diversified Support Services": 17,
97
+ "Electric Utilities": 18,
98
+ "Electrical Components & Equipment": 19,
99
+ "Electronic Equipment & Instruments": 20,
100
+ "Environmental & Facilities Services": 21,
101
+ "Gold": 22,
102
+ "Health Care Equipment": 23,
103
+ "Health Care Facilities": 24,
104
+ "Health Care Services": 25,
105
+ "Health Care Supplies": 26,
106
+ "Health Care Technology": 27,
107
+ "Homebuilding": 28,
108
+ "Hotels, Resorts & Cruise Lines": 29,
109
+ "Human Resource & Employment Services": 30,
110
+ "IT Consulting & Other Services": 31,
111
+ "Industrial Machinery": 32,
112
+ "Integrated Telecommunication Services": 33,
113
+ "Interactive Media & Services": 34,
114
+ "Internet & Direct Marketing Retail": 35,
115
+ "Internet Services & Infrastructure": 36,
116
+ "Investment Banking & Brokerage": 37,
117
+ "Leisure Products": 38,
118
+ "Life Sciences Tools & Services": 39,
119
+ "Movies & Entertainment": 40,
120
+ "Oil & Gas Equipment & Services": 41,
121
+ "Oil & Gas Exploration & Production": 42,
122
+ "Oil & Gas Refining & Marketing": 43,
123
+ "Oil & Gas Storage & Transportation": 44,
124
+ "Packaged Foods & Meats": 45,
125
+ "Personal Products": 46,
126
+ "Pharmaceuticals": 47,
127
+ "Property & Casualty Insurance": 48,
128
+ "Real Estate Operating Companies": 49,
129
+ "Regional Banks": 50,
130
+ "Research & Consulting Services": 51,
131
+ "Restaurants": 52,
132
+ "Semiconductors": 53,
133
+ "Specialty Chemicals": 54,
134
+ "Specialty Stores": 55,
135
+ "Steel": 56,
136
+ "Systems Software": 57,
137
+ "Technology Distributors": 58,
138
+ "Technology Hardware, Storage & Peripherals": 59,
139
+ "Thrifts & Mortgage Finance": 60,
140
+ "Trading Companies & Distributors": 61
141
+ },
142
+ "layer_norm_eps": 1e-12,
143
+ "max_position_embeddings": 512,
144
+ "model_type": "bert",
145
+ "num_attention_heads": 12,
146
+ "num_hidden_layers": 12,
147
+ "pad_token_id": 0,
148
+ "position_embedding_type": "absolute",
149
+ "transformers_version": "4.30.2",
150
+ "type_vocab_size": 2,
151
+ "use_cache": true,
152
+ "vocab_size": 30522
153
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d71b634abb8a7305c3f46a9269ce054c90dfed715ff35872d55b44dbf3964d75
3
+ size 438386429
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e725180482cc47d8b4a13216e07e0d2d89fe022c3965df98efd4bb1bce05d30e
3
+ size 110763814
quantize_config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": true,
3
+ "reduce_range": true,
4
+ "per_model_config": {
5
+ "model": {
6
+ "op_types": [
7
+ "Mul",
8
+ "Slice",
9
+ "Div",
10
+ "Sub",
11
+ "Erf",
12
+ "Concat",
13
+ "Pow",
14
+ "Cast",
15
+ "Transpose",
16
+ "ReduceMean",
17
+ "MatMul",
18
+ "Reshape",
19
+ "Constant",
20
+ "Tanh",
21
+ "Softmax",
22
+ "Shape",
23
+ "Gemm",
24
+ "Sqrt",
25
+ "Add",
26
+ "Gather",
27
+ "Unsqueeze"
28
+ ],
29
+ "weight_type": "QInt8"
30
+ }
31
+ }
32
+ }
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,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": true,
6
+ "mask_token": "[MASK]",
7
+ "model_max_length": 512,
8
+ "never_split": null,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "strip_accents": null,
12
+ "tokenize_chinese_chars": true,
13
+ "tokenizer_class": "BertTokenizer",
14
+ "unk_token": "[UNK]"
15
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff