haoanh98 commited on
Commit
9c5422f
1 Parent(s): 4b5b3c7

Upload model

Browse files
Files changed (2) hide show
  1. config.json +12 -6
  2. tf_model.h5 +2 -2
config.json CHANGED
@@ -1,22 +1,27 @@
1
  {
2
  "_name_or_path": "mGPT-base",
3
- "afn": "gelu",
 
4
  "architectures": [
5
- "OpenAIGPTModel"
6
  ],
7
  "attn_pdrop": 0.1,
 
8
  "embd_pdrop": 0.1,
 
9
  "initializer_range": 0.02,
10
- "layer_norm_epsilon": 1e-12,
11
- "model_type": "openai-gpt",
12
  "n_ctx": 512,
13
  "n_embd": 768,
14
  "n_head": 12,
 
15
  "n_layer": 12,
16
  "n_positions": 512,
17
- "n_special": 0,
18
- "predict_special_tokens": true,
19
  "resid_pdrop": 0.1,
 
 
20
  "summary_activation": null,
21
  "summary_first_dropout": 0.1,
22
  "summary_proj_to_labels": true,
@@ -29,5 +34,6 @@
29
  }
30
  },
31
  "transformers_version": "4.23.1",
 
32
  "vocab_size": 119547
33
  }
 
1
  {
2
  "_name_or_path": "mGPT-base",
3
+ "activation_function": "gelu_new",
4
+ "afn": "gelu_new",
5
  "architectures": [
6
+ "GPT2Model"
7
  ],
8
  "attn_pdrop": 0.1,
9
+ "bos_token_id": 101,
10
  "embd_pdrop": 0.1,
11
+ "eos_token_id": 102,
12
  "initializer_range": 0.02,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "model_type": "gpt2",
15
  "n_ctx": 512,
16
  "n_embd": 768,
17
  "n_head": 12,
18
+ "n_inner": null,
19
  "n_layer": 12,
20
  "n_positions": 512,
21
+ "reorder_and_upcast_attn": false,
 
22
  "resid_pdrop": 0.1,
23
+ "scale_attn_by_inverse_layer_idx": false,
24
+ "scale_attn_weights": true,
25
  "summary_activation": null,
26
  "summary_first_dropout": 0.1,
27
  "summary_proj_to_labels": true,
 
34
  }
35
  },
36
  "transformers_version": "4.23.1",
37
+ "use_cache": true,
38
  "vocab_size": 119547
39
  }
tf_model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9944360654b0eb5bbbc9aae52305d5c47772db77665fd0f4b8c313bbbb609da6
3
- size 709213544
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca447bd099e618a62c80e015be857d8f4e6dcfa0513280e84d65d05b5fe2ee55
3
+ size 709221480