EmilMalmsten commited on
Commit
4b2ca1b
1 Parent(s): 63443da

Upload 3 files

Browse files
Files changed (3) hide show
  1. config.json.pub +40 -0
  2. parameters.json.pub +40 -0
  3. pytorch_model.bin +3 -0
config.json.pub ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/CodeGPT-small-py-adaptedGPT2",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "gradient_checkpointing": false,
12
+ "initializer_range": 0.02,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "model_type": "gpt2",
15
+ "n_ctx": 1024,
16
+ "n_embd": 768,
17
+ "n_head": 12,
18
+ "n_inner": null,
19
+ "n_layer": 8,
20
+ "n_positions": 1024,
21
+ "output_hidden_states": true,
22
+ "reorder_and_upcast_attn": false,
23
+ "resid_pdrop": 0.1,
24
+ "scale_attn_by_inverse_layer_idx": false,
25
+ "scale_attn_weights": true,
26
+ "summary_activation": null,
27
+ "summary_first_dropout": 0.1,
28
+ "summary_proj_to_labels": true,
29
+ "summary_type": "cls_index",
30
+ "summary_use_proj": true,
31
+ "task_specific_params": {
32
+ "text-generation": {
33
+ "do_sample": true,
34
+ "max_length": 50
35
+ }
36
+ },
37
+ "transformers_version": "4.27.4",
38
+ "use_cache": true,
39
+ "vocab_size": 50260
40
+ }
parameters.json.pub ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "force": true,
3
+ "dump_path": "serialization_dir/codegpt_intrain_20-06-2023_13-58-49",
4
+ "data_file": "data/binarized_text.gpt2.pickle",
5
+ "student_config": "training_configs/codegpt.json",
6
+ "student_pretrained_weights": "microsoft/CodeGPT-small-py-adaptedGPT2",
7
+ "teacher_name": "microsoft/CodeGPT-small-py-adaptedGPT2",
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
+ "freeze_pos_embs": true,
14
+ "n_epoch": 1,
15
+ "batch_size": 6,
16
+ "group_by_size": true,
17
+ "gradient_accumulation_steps": 50,
18
+ "warmup_prop": 0.05,
19
+ "weight_decay": 0.0,
20
+ "learning_rate": 0.0005,
21
+ "adam_epsilon": 1e-06,
22
+ "max_grad_norm": 5.0,
23
+ "initializer_range": 0.02,
24
+ "fp16": false,
25
+ "fp16_opt_level": "O1",
26
+ "n_gpu": 1,
27
+ "local_rank": 0,
28
+ "seed": 56,
29
+ "log_interval": 500,
30
+ "checkpoint_interval": 3900,
31
+ "teacher_not_pretrained": false,
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:c61d1017e457fa8ec0b0d72ea6d329227be4c038cd5341fe4f0b23cea4199111
3
+ size 392794013