1: dpo_script_args:  # trl.DpoScriptArguments
2:   sanity_check: False  # If true, will train on only 1K examples and not save the final model.
3: 
4: marge_config:  # marge_trainer.MargeConfig
5:   alpha: 1.0
6:   beta: 0.1
7:   loss_type: "sigmoid"
8:   precompute_ref_log_probs: False # True
9:   max_length: 512
10:   max_prompt_length: 256
11:   generate_during_eval: True
12:   output_dir: ???
13:   run_name: ???
14:   do_train: True
15:   do_eval: True
16:   per_device_train_batch_size: 2
17:   per_device_eval_batch_size: 8
18:   logging_first_step: True
19:   logging_steps: 1
20:   warmup_steps: 0
21:   bf16: False
22:   gradient_accumulation_steps: 16
23:   learning_rate: 1e-6
24:   num_train_epochs: 2
25:   load_best_model_at_end: True
26:   evaluation_strategy: "steps"
27:   eval_steps: 0.1
28:   save_strategy: "steps"
29:   save_steps: 0.2
30:   # optim: "rmsprop"
31:   seed: 0
32:   remove_unused_columns: False
33:   input_field_name: "input"
34:   target_field_name: "target"
35:   # score fields should NOT be prefixed by input_field_name or target_field_name
36:   input_score_field_name: "score_input"
37:   target_score_field_name: "score_target"
38:   resume_from_checkpoint: True
39:   save_total_limit: 1
40:   self_normalize_weights: False
41:   reinforce_style: False
42:   log_level: "info"
43: 
44: model_config:
45:   attn_implementation: "eager"
46:   model_name_or_path: s3://prescient-data-dev/sandbox/chena78/finetune_ehrlich_pythia-2.8b/ft_dense_pairs_ehrlich_c4_k4_l32_n1000_pm0.005_scoreabove-0.7_xthres0.125_maxinfs0.1/
47: 
48: # data
49: data_fp: s3://prescient-data-dev/sandbox/chena78/finetune_ehrlich_pythia-2.8b/ft_dense_pairs_ehrlich_c4_k4_l32_n1000_pm0.005_scoreabove-0.7_xthres0.125_maxinfs0.1/dense_neighborhood_pairs_scoreabove-0.8_xthres0.125_maxinfs0.1.jsonl
50: pretokenized_train_fp: null  # optional
51: pretokenized_eval_fp: null  # optional
52: pretokenized: False
53: train_size: 0.95
54: max_train_size: null
55: max_eval_size: 100 # evaluation takes a long time, so we set a max. size on the eval dataset
56: # format_type: "edit_pairs"
57: 
58: # generation
59: generation_config:
60:   max_new_tokens: 256
61:   do_sample: False
62:   num_return_sequences: 1
63: 
64: # instrumentation
65: log_level: "info"
66: wandb_host: null
67: wandb_mode: "online"
68: project_name: "marge"
69: exp_name: "marge_pythia-2.8b"
70: job_name: null
71: __version__: null
72: 
73: # other
74: num_generate_batches: null
75: threshold_percent_valid: 0.9
76: s3_output_dir: "s3://prescient-data-dev/sandbox/chena78/marge_ehrlich_pythia-2.8b/sanity_check"
77: test_fn_type: "ehrlich"  # [ehrlich, mt_fuji]
78: test_fn_fp: "s3://prescient-data-dev/sandbox/chena78/ehrlich_datasets_no_dupes/c4_k4_l32_n1000_pm0.005/ehrlich.jsonl"