mrm8848 commited on
Commit
7cd5b26
·
verified ·
1 Parent(s): e53adac

Adding ONNX file of this model

Browse files

Beep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [mrm8848](https://huggingface.co/mrm8848), I would like to add to this repository the model converted to ONNX.

What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)!

The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!

Files changed (2) hide show
  1. onnx/config.json +41 -0
  2. onnx/model.onnx +3 -0
onnx/config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "onnx/mr4/phobert-base-vi-sentiment-analysis/checkpoint-100",
4
+ "architectures": [
5
+ "RobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "eos_token_id": 2,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "Ti\u00eau c\u1ef1c",
17
+ "1": "T\u00edch c\u1ef1c",
18
+ "2": "Trung t\u00ednh"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 3072,
22
+ "label2id": {
23
+ "Ti\u00eau c\u1ef1c": 0,
24
+ "Trung t\u00ednh": 1,
25
+ "T\u00edch c\u1ef1c": 2
26
+ },
27
+ "layer_norm_eps": 1e-05,
28
+ "max_position_embeddings": 258,
29
+ "model_type": "roberta",
30
+ "num_attention_heads": 12,
31
+ "num_hidden_layers": 12,
32
+ "pad_token_id": 1,
33
+ "position_embedding_type": "absolute",
34
+ "problem_type": "single_label_classification",
35
+ "tokenizer_class": "PhobertTokenizer",
36
+ "torch_dtype": "float32",
37
+ "transformers_version": "4.49.0",
38
+ "type_vocab_size": 1,
39
+ "use_cache": true,
40
+ "vocab_size": 64001
41
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7acf5ab9864ff8be7e840a6c6494bd270632ff4d8676ff4162e2d4507362b7a7
3
+ size 540317442