EmilMalmsten commited on
Commit
cf517bd
·
1 Parent(s): 301ca1a

Upload 3 files

Browse files
Files changed (3) hide show
  1. config.json +35 -0
  2. parameters.json +40 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_num_labels": 2,
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 0,
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",
14
+ "n_ctx": 1024,
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
+ "n_inner": null,
18
+ "n_layer": 8,
19
+ "n_positions": 1024,
20
+ "output_hidden_states": true,
21
+ "output_past": true,
22
+ "pad_token_id": 1,
23
+ "reorder_and_upcast_attn": false,
24
+ "resid_pdrop": 0.1,
25
+ "scale_attn_by_inverse_layer_idx": false,
26
+ "scale_attn_weights": true,
27
+ "summary_activation": null,
28
+ "summary_first_dropout": 0.1,
29
+ "summary_proj_to_labels": true,
30
+ "summary_type": "cls_index",
31
+ "summary_use_proj": true,
32
+ "transformers_version": "4.27.4",
33
+ "use_cache": true,
34
+ "vocab_size": 50001
35
+ }
parameters.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "force": true,
3
+ "dump_path": "serialization_dir/codegpt_training_09-06-2023_18-04-56",
4
+ "data_file": "data/binarized_text.gpt2.pickle",
5
+ "student_config": "training_configs/codegpt_normal.json",
6
+ "student_pretrained_weights": null,
7
+ "teacher_name": "microsoft/CodeGPT-small-py",
8
+ "temperature": 2.0,
9
+ "alpha_ce": 0.33,
10
+ "alpha_clm": 0.33,
11
+ "alpha_mse": 0.0,
12
+ "alpha_cos": 0.33,
13
+ "restrict_ce_to_mask": false,
14
+ "freeze_pos_embs": true,
15
+ "n_epoch": 1,
16
+ "batch_size": 6,
17
+ "group_by_size": true,
18
+ "gradient_accumulation_steps": 50,
19
+ "warmup_prop": 0.05,
20
+ "weight_decay": 0.0,
21
+ "learning_rate": 0.0005,
22
+ "adam_epsilon": 1e-06,
23
+ "max_grad_norm": 5.0,
24
+ "initializer_range": 0.02,
25
+ "fp16": false,
26
+ "fp16_opt_level": "O1",
27
+ "n_gpu": 1,
28
+ "local_rank": 0,
29
+ "seed": 56,
30
+ "log_interval": 500,
31
+ "checkpoint_interval": 3150,
32
+ "n_nodes": 1,
33
+ "node_id": 0,
34
+ "global_rank": 0,
35
+ "world_size": 1,
36
+ "n_gpu_per_node": 1,
37
+ "multi_gpu": false,
38
+ "is_master": true,
39
+ "multi_node": false
40
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4637a7cf5c6989431929a09c0271cc79e765fcbae03686a109b99e0dec6c0959
3
+ size 391998365