raygx commited on
Commit
5503ad3
·
1 Parent(s): 512d4d1

Upload model

Browse files
Files changed (3) hide show
  1. config.json +6 -6
  2. generation_config.json +7 -0
  3. tf_model.h5 +2 -2
config.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
- "_name_or_path": "gpt2NepaliCasualLM",
3
  "activation_function": "gelu_new",
4
  "architectures": [
5
- "GPT2Model"
6
  ],
7
  "attn_pdrop": 0.1,
8
- "bos_token_id": 0,
9
  "embd_pdrop": 0.1,
10
- "eos_token_id": 0,
11
  "initializer_range": 0.02,
12
  "layer_norm_epsilon": 1e-05,
13
  "model_type": "gpt2",
@@ -17,7 +17,7 @@
17
  "n_inner": null,
18
  "n_layer": 12,
19
  "n_positions": 1024,
20
- "pad_token_id": 50000,
21
  "reorder_and_upcast_attn": false,
22
  "resid_pdrop": 0.1,
23
  "scale_attn_by_inverse_layer_idx": false,
@@ -35,5 +35,5 @@
35
  },
36
  "transformers_version": "4.29.2",
37
  "use_cache": true,
38
- "vocab_size": 50002
39
  }
 
1
  {
2
+ "_name_or_path": "raygx/GNePT",
3
  "activation_function": "gelu_new",
4
  "architectures": [
5
+ "GPT2LMHeadModel"
6
  ],
7
  "attn_pdrop": 0.1,
8
+ "bos_token_id": 1,
9
  "embd_pdrop": 0.1,
10
+ "eos_token_id": 2,
11
  "initializer_range": 0.02,
12
  "layer_norm_epsilon": 1e-05,
13
  "model_type": "gpt2",
 
17
  "n_inner": null,
18
  "n_layer": 12,
19
  "n_positions": 1024,
20
+ "pad_token_id": 3,
21
  "reorder_and_upcast_attn": false,
22
  "resid_pdrop": 0.1,
23
  "scale_attn_by_inverse_layer_idx": false,
 
35
  },
36
  "transformers_version": "4.29.2",
37
  "use_cache": true,
38
+ "vocab_size": 50000
39
  }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 3,
6
+ "transformers_version": "4.29.2"
7
+ }
tf_model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:818cd02ff2b2dfe59e41700dc93c04d72e7aaa9e258c0bf38581009c669d8e5e
3
- size 497152080
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f76404ce291f094200fb43ae939e9eeb919ba1e094b69cd104a62c44011c43f0
3
+ size 497145936