jmbrito commited on
Commit
bc84ba5
1 Parent(s): bbc5030

Onnx exported model

Browse files
onnx/config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./model-v1/config.json",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "POLITICS",
13
+ "1": "ECONOMICS",
14
+ "2": "SPORTS",
15
+ "3": "TECH",
16
+ "4": "SCIENCE",
17
+ "5": "CULTURE",
18
+ "6": "HEALTH",
19
+ "7": "GAMES",
20
+ "8": "OTHER"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "label2id": {
24
+ "CULTURE": 5,
25
+ "ECONOMICS": 1,
26
+ "GAMES": 7,
27
+ "HEALTH": 6,
28
+ "OTHER": 8,
29
+ "POLITICS": 0,
30
+ "SCIENCE": 4,
31
+ "SPORTS": 2,
32
+ "TECH": 3
33
+ },
34
+ "max_position_embeddings": 512,
35
+ "model_type": "distilbert",
36
+ "n_heads": 12,
37
+ "n_layers": 6,
38
+ "pad_token_id": 0,
39
+ "problem_type": "single_label_classification",
40
+ "qa_dropout": 0.1,
41
+ "seq_classif_dropout": 0.2,
42
+ "sinusoidal_pos_embds": false,
43
+ "tie_weights_": true,
44
+ "torch_dtype": "float32",
45
+ "transformers_version": "4.31.0",
46
+ "vocab_size": 30522
47
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21fab7e6d60a9c44725fbc4850a0b581c3404fadee7b4a729f20c6c1445291dd
3
+ size 267977245
onnx/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
+ }
onnx/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
onnx/tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "DistilBertTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
onnx/vocab.txt ADDED
The diff for this file is too large to render. See raw diff