Adding ONNX file of this model

#2
by mrm8848 - opened
Files changed (2) hide show
  1. onnx/config.json +51 -0
  2. onnx/model.onnx +3 -0
onnx/config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "onnx/thoriqfy/indobert-emotion-classification/checkpoint-100",
4
+ "_num_labels": 5,
5
+ "architectures": [
6
+ "BertForSequenceClassification"
7
+ ],
8
+ "attention_probs_dropout_prob": 0.1,
9
+ "classifier_dropout": null,
10
+ "directionality": "bidi",
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "id2label": {
15
+ "0": "Sadness",
16
+ "1": "Anger",
17
+ "2": "Love",
18
+ "3": "Fear",
19
+ "4": "Happy",
20
+ "5": "Neutral"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 4096,
24
+ "label2id": {
25
+ "Anger": 1,
26
+ "Fear": 3,
27
+ "Happy": 4,
28
+ "Love": 2,
29
+ "Neutral": 5,
30
+ "Sadness": 0
31
+ },
32
+ "layer_norm_eps": 1e-12,
33
+ "max_position_embeddings": 512,
34
+ "model_type": "bert",
35
+ "num_attention_heads": 16,
36
+ "num_hidden_layers": 24,
37
+ "output_past": true,
38
+ "pad_token_id": 0,
39
+ "pooler_fc_size": 768,
40
+ "pooler_num_attention_heads": 12,
41
+ "pooler_num_fc_layers": 3,
42
+ "pooler_size_per_head": 128,
43
+ "pooler_type": "first_token_transform",
44
+ "position_embedding_type": "absolute",
45
+ "problem_type": "single_label_classification",
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.49.0",
48
+ "type_vocab_size": 2,
49
+ "use_cache": true,
50
+ "vocab_size": 30522
51
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:486d11674914e69e7199edd3e445b137865ad721051036f5455637ee10d13729
3
+ size 1341184390