Adding ONNX file of this model

#9
by motirodan - opened
onnx/config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "onnx/Salesforce/codegen-350M-mono/checkpoint-100",
4
+ "activation_function": "gelu_new",
5
+ "architectures": [
6
+ "CodeGenForCausalLM"
7
+ ],
8
+ "attn_pdrop": 0.0,
9
+ "bos_token_id": 1,
10
+ "embd_pdrop": 0.0,
11
+ "eos_token_id": 50256,
12
+ "gradient_checkpointing": false,
13
+ "initializer_range": 0.02,
14
+ "layer_norm_epsilon": 1e-05,
15
+ "model_type": "codegen",
16
+ "n_ctx": 2048,
17
+ "n_embd": 1024,
18
+ "n_head": 16,
19
+ "n_inner": null,
20
+ "n_layer": 20,
21
+ "n_positions": 2048,
22
+ "resid_pdrop": 0.0,
23
+ "rotary_dim": 32,
24
+ "scale_attn_weights": true,
25
+ "summary_activation": null,
26
+ "summary_first_dropout": 0.1,
27
+ "summary_proj_to_labels": true,
28
+ "summary_type": "cls_index",
29
+ "summary_use_proj": true,
30
+ "task_specific_params": {
31
+ "text-generation": {
32
+ "do_sample": true,
33
+ "max_length": 50,
34
+ "temperature": 1.0
35
+ }
36
+ },
37
+ "tie_word_embeddings": false,
38
+ "tokenizer_class": "GPT2Tokenizer",
39
+ "torch_dtype": "float32",
40
+ "transformers_version": "4.49.0",
41
+ "use_cache": true,
42
+ "vocab_size": 51200
43
+ }
onnx/generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 50256,
5
+ "transformers_version": "4.49.0"
6
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8055ab63b515453f280bfef9fff08332ee6358691ccf0871d0198fa13bf840a6
3
+ size 1427871520