mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-26 17:11:02 +02:00
self gen data for all ds both train + val
This commit is contained in:
parent
57b63d3b8b
commit
5aa83b96e2
5 changed files with 403 additions and 111 deletions
66
configs/self_gen_3_mini.yaml
Normal file
66
configs/self_gen_3_mini.yaml
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
output_dir: "" # just a placeholder
|
||||
bf16: true
|
||||
model_name_or_path: meta-llama/Llama-3.2-1B-Instruct
|
||||
label_names: ["labels"]
|
||||
# eval_on_start: True
|
||||
# eval_strategy: "steps"
|
||||
# eval_steps: 500
|
||||
# save_strategy: "no"
|
||||
# # save_steps: 500
|
||||
# logging_strategy: "steps"
|
||||
# logging_steps: 100
|
||||
# use_liger_kernel: true
|
||||
# remove_unused_columns: false
|
||||
|
||||
# needed to avoid OOM by compute the metrics batch by batch
|
||||
# w/o this the trainer stores logits of all sample in memory...
|
||||
# batch_eval_metrics: true
|
||||
|
||||
per_device_train_batch_size: 8
|
||||
per_device_eval_batch_size: 8
|
||||
max_val_samples_per_ds: 1000
|
||||
# optim: schedule_free_adamw
|
||||
|
||||
learning_rate: 0.00004
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 5
|
||||
weight_decay: 0.01
|
||||
#
|
||||
warmup_steps: 100
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
dataloader_num_workers: 8
|
||||
# LoRA
|
||||
lora_r: 8
|
||||
lora_dropout: 0.0
|
||||
target_modules:
|
||||
- down_proj
|
||||
# data
|
||||
train_ds_names:
|
||||
- self_gen/fw_qa_3_mini # 100k
|
||||
- self_gen/ctx_qa # 300k
|
||||
- self_gen/pwc # 240k
|
||||
- self_gen/hotpot_qa # 90k
|
||||
- self_gen/squad # 90k
|
||||
- self_gen/drop # 77k
|
||||
- self_gen/narrativeqa # 40k
|
||||
- self_gen/quoref # 11k
|
||||
- self_gen/ropes # 11k
|
||||
- self_gen/synthetic_convqa # 40k
|
||||
|
||||
val_ds_names:
|
||||
- self_gen/fw_qa_3
|
||||
- self_gen/fw_qa_xl
|
||||
- self_gen/ctx_qa
|
||||
- self_gen/pwc
|
||||
- self_gen/hotpot_qa
|
||||
- self_gen/squad
|
||||
- fw_qa_3
|
||||
- fw_qa_xl
|
||||
- ctx_qa
|
||||
- pwc
|
||||
- hotpot_qa
|
||||
- squad
|
||||
|
||||
load_best_model_at_end: true
|
||||
metric_for_best_model: eval_pwc_loss
|
||||
47
configs/self_gen_pwc_hotpot_qa.yaml
Normal file
47
configs/self_gen_pwc_hotpot_qa.yaml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
output_dir: "" # just a placeholder
|
||||
bf16: true
|
||||
model_name_or_path: google/gemma-2-2b-it
|
||||
label_names: ["labels"]
|
||||
# eval_on_start: True
|
||||
# eval_strategy: "steps"
|
||||
# eval_steps: 500
|
||||
# save_strategy: "no"
|
||||
# # save_steps: 500
|
||||
# logging_strategy: "steps"
|
||||
# logging_steps: 100
|
||||
# use_liger_kernel: true
|
||||
# remove_unused_columns: false
|
||||
|
||||
# needed to avoid OOM by compute the metrics batch by batch
|
||||
# w/o this the trainer stores logits of all sample in memory...
|
||||
# batch_eval_metrics: true
|
||||
|
||||
per_device_train_batch_size: 8
|
||||
per_device_eval_batch_size: 8
|
||||
max_val_samples_per_ds: 1000
|
||||
# optim: schedule_free_adamw
|
||||
|
||||
learning_rate: 0.00004
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.01
|
||||
|
||||
warmup_steps: 100
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
dataloader_num_workers: 8
|
||||
|
||||
# LoRA
|
||||
lora_r: 8
|
||||
lora_dropout: 0.02
|
||||
target_modules:
|
||||
- down_proj
|
||||
|
||||
# data
|
||||
train_ds_names:
|
||||
- self_gen/pwc
|
||||
- self_gen/hotpot_qa
|
||||
|
||||
val_ds_names:
|
||||
- self_gen/pwc
|
||||
- self_gen/hotpot_qa
|
||||
Loading…
Add table
Add a link
Reference in a new issue