mrm8848 commited on
Commit
3650be1
verified
1 Parent(s): 541df51

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 +56 -0
  2. onnx/model.onnx +3 -0
onnx/config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "onnx/allenai/longformer-large-4096-finetuned-triviaqa/checkpoint-20",
4
+ "architectures": [
5
+ "LongformerForQuestionAnswering"
6
+ ],
7
+ "attention_mode": "longformer",
8
+ "attention_probs_dropout_prob": 0.1,
9
+ "attention_window": [
10
+ 512,
11
+ 512,
12
+ 512,
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512,
19
+ 512,
20
+ 512,
21
+ 512,
22
+ 512,
23
+ 512,
24
+ 512,
25
+ 512,
26
+ 512,
27
+ 512,
28
+ 512,
29
+ 512,
30
+ 512,
31
+ 512,
32
+ 512,
33
+ 512
34
+ ],
35
+ "bos_token_id": 0,
36
+ "eos_token_id": 2,
37
+ "gradient_checkpointing": false,
38
+ "hidden_act": "gelu",
39
+ "hidden_dropout_prob": 0.1,
40
+ "hidden_size": 1024,
41
+ "ignore_attention_mask": false,
42
+ "initializer_range": 0.02,
43
+ "intermediate_size": 4096,
44
+ "layer_norm_eps": 1e-05,
45
+ "max_position_embeddings": 4098,
46
+ "model_type": "longformer",
47
+ "num_attention_heads": 16,
48
+ "num_hidden_layers": 24,
49
+ "onnx_export": false,
50
+ "pad_token_id": 1,
51
+ "sep_token_id": 2,
52
+ "torch_dtype": "float32",
53
+ "transformers_version": "4.49.0",
54
+ "type_vocab_size": 1,
55
+ "vocab_size": 50265
56
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcf3dc215bd1b51d5727480c87bdd46e0e44ddb776629d586262d831a2c1f2c1
3
+ size 1458351964