-
Notifications
You must be signed in to change notification settings - Fork 1
/
meta_train_gpt2.yaml
executable file
·58 lines (46 loc) · 1.21 KB
/
meta_train_gpt2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# @package _global_
defaults:
- override /default: default.yaml
# model_type: gemma-2b
# model_name_or_path: google/gemma-2b
model_type: gpt2
model_name_or_path: gpt2
# experiment param:
do_train: true
do_eval: false
multi_task: false
baseline: false
use_lora: false
freeze_partial: false
condition: false
peft: false
wandb_name: gpt2-meta-4k-32bit
wandb_project: meta-memory
# checkpoint param:
load_checkpoint: false
checkpoint: None
wandb_model: false
wandb_checkpoint: false
# train param:
train_batch_size: 1
predict_batch_size: 1
eval_batch_size: 1
num_train_epochs: 2
callback_monitor: val_accuracy
# inner param:
n_inner_iter: 8
dyna_lr: true
inner_verbose: false
inner_mode: all
inner_lr: 5e-5 # the learning rate used for inner loop optimization
inner_grad_accumulate: false # whether to accumulate gradients in the inner loop
inner_accumulate_steps: 1 # the number of steps to accumulate gradients in the inner loop
# data_param:
dataset: babilong # student_records, loss_in_mid, babilong
dataset_type: babilong # student_records, loss_in_mid, babilong
load_order: in
no_facts: false
random_facts: false
no_question: false
max_eval_data: 0
device_idx: 0