Adding ONNX file of this model

#25
by mrm8848 - opened
Files changed (2) hide show
  1. onnx/config.json +50 -0
  2. onnx/model.onnx +3 -0
onnx/config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "onnx/nlptown/bert-base-multilingual-uncased-sentiment/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
+ "finetuning_task": "sentiment-analysis",
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "1 star",
17
+ "1": "2 stars",
18
+ "2": "3 stars",
19
+ "3": "4 stars",
20
+ "4": "5 stars"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "1 star": 0,
26
+ "2 stars": 1,
27
+ "3 stars": 2,
28
+ "4 stars": 3,
29
+ "5 stars": 4
30
+ },
31
+ "layer_norm_eps": 1e-12,
32
+ "max_position_embeddings": 512,
33
+ "model_type": "bert",
34
+ "num_attention_heads": 12,
35
+ "num_hidden_layers": 12,
36
+ "output_past": true,
37
+ "pad_token_id": 0,
38
+ "pooler_fc_size": 768,
39
+ "pooler_num_attention_heads": 12,
40
+ "pooler_num_fc_layers": 3,
41
+ "pooler_size_per_head": 128,
42
+ "pooler_type": "first_token_transform",
43
+ "position_embedding_type": "absolute",
44
+ "problem_type": "single_label_classification",
45
+ "torch_dtype": "float32",
46
+ "transformers_version": "4.49.0",
47
+ "type_vocab_size": 2,
48
+ "use_cache": true,
49
+ "vocab_size": 105879
50
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:926d83581b168e22afe45121311527d98c62e6854ee0cd0e70a1021c2813482e
3
+ size 669741316