-
Notifications
You must be signed in to change notification settings - Fork 154
/
Copy pathmse.yaml
58 lines (47 loc) · 1.12 KB
/
mse.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 trainer
_trainer_: lcm.train.lcm.trainer.prepare_lcm_trainer
requirements:
nodes: 4
tasks_per_node: 8
gpus_per_node: 8
cpus_per_task: 32
mem_gb: 0
# Overwrite to start from a different pre-trained model
model_config_or_name: dummy_mse_pretrained_model
criterion:
name: target_mse
reduction: sum
compute_rmse: False
output_dir: ??
dtype: "torch.float16"
use_optimizer_in_fp32: true
use_fsdp: true
fsdp_fp32_reduce: true
lr_schedule: cosine
start_lr: 1e-6
final_lr: 1e-6
lr: 0.00003
num_lr_warmup_steps: 3_000
max_grad_norm: 25
weight_decay: 0.01
max_steps: 20_000
gradient_accumulation: 1
validate_every_n_steps: 1_000
checkpoint_every_n_steps: 1_000
save_model_every_n_steps: 1_000
keep_last_n_checkpoints: 2
publish_metrics_every_n_steps: 100
preserve_consolidated_models: true
seed: 1
profile: false
data_loading_config:
max_tokens: 7168
nb_epochs: 5
training_data:
- name: "finetuning_data=train"
source_suffix_text: "[MODEL]:"
target_suffix_text: "End of text."
validation_data:
- name: "finetuning_data=validation"
source_suffix_text: "[MODEL]:"
target_suffix_text: "End of text."