mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
default warmup + decay
This commit is contained in:
parent
a447039858
commit
4bad251877
27 changed files with 44 additions and 38 deletions
|
|
@ -27,8 +27,7 @@ max_val_samples_per_ds: 500
|
|||
learning_rate: 0.0001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.05
|
||||
weight_decay: 0.01
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ max_val_samples_per_ds: 20
|
|||
learning_rate: 0.00001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.05
|
||||
weight_decay: 0.01
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ max_val_samples_per_ds: 20
|
|||
learning_rate: 0.00001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.05
|
||||
weight_decay: 0.01
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ max_val_samples_per_ds: 20
|
|||
learning_rate: 0.00001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.05
|
||||
weight_decay: 0.01
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ max_val_samples_per_ds: 20
|
|||
learning_rate: 0.00001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.05
|
||||
weight_decay: 0.01
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -26,8 +26,7 @@ max_val_samples_per_ds: 20
|
|||
learning_rate: 0.00001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.05
|
||||
weight_decay: 0.01
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -26,8 +26,7 @@ max_val_samples_per_ds: 20
|
|||
learning_rate: 0.00001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.05
|
||||
weight_decay: 0.01
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ max_val_samples_per_ds: 20
|
|||
learning_rate: 0.00001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.05
|
||||
weight_decay: 0.01
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ max_val_samples_per_ds: 20
|
|||
learning_rate: 0.00001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.05
|
||||
weight_decay: 0.01
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ learning_rate: 0.00001
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.01
|
||||
warmup_ratio: 0.1
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ learning_rate: 0.00001
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.01
|
||||
warmup_ratio: 0.1
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ learning_rate: 0.00001
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.01
|
||||
warmup_ratio: 0.1
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 8
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ learning_rate: 0.00002
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 5
|
||||
weight_decay: 0.01
|
||||
warmup_ratio: 0.1
|
||||
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
dataloader_num_workers: 8
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ learning_rate: 0.00002
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 5
|
||||
weight_decay: 0.01
|
||||
warmup_ratio: 0.1
|
||||
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
dataloader_num_workers: 8
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ learning_rate: 0.00002
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 5
|
||||
weight_decay: 0.01
|
||||
warmup_ratio: 0.1
|
||||
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
dataloader_num_workers: 8
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ learning_rate: 0.00002
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 5
|
||||
weight_decay: 0.01
|
||||
# warmup_ratio: 0.1
|
||||
#
|
||||
warmup_steps: 100
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ learning_rate: 0.00002
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 5
|
||||
weight_decay: 0.01
|
||||
warmup_ratio: 0.1
|
||||
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
dataloader_num_workers: 8
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ learning_rate: 0.00002
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 5
|
||||
weight_decay: 0.01
|
||||
warmup_ratio: 0.1
|
||||
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
dataloader_num_workers: 8
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ learning_rate: 0.00002
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 5
|
||||
weight_decay: 0.01
|
||||
# warmup_ratio: 0.1
|
||||
#
|
||||
warmup_steps: 100
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ max_val_samples_per_ds: 1000
|
|||
learning_rate: 0.00001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.1
|
||||
weight_decay: 0.01
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ learning_rate: 0.00002
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 5
|
||||
weight_decay: 0.01
|
||||
# warmup_ratio: 0.1
|
||||
#
|
||||
warmup_steps: 100
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ learning_rate: 0.00002
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 5
|
||||
weight_decay: 0.01
|
||||
# warmup_ratio: 0.1
|
||||
#
|
||||
warmup_steps: 100
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ learning_rate: 0.00002
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 5
|
||||
weight_decay: 0.01
|
||||
# warmup_ratio: 0.1
|
||||
#
|
||||
warmup_steps: 100
|
||||
|
||||
dataloader_prefetch_factor: 8
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ max_val_samples_per_ds: 1000
|
|||
learning_rate: 0.00001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.1
|
||||
weight_decay: 0.01
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ max_val_samples_per_ds: 1000
|
|||
learning_rate: 0.00001
|
||||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.1
|
||||
warmup_ratio: 0.1
|
||||
weight_decay: 0.01
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 16
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ learning_rate: 0.00002
|
|||
# lr_scheduler_type: "constant_with_warmup"
|
||||
neftune_noise_alpha: 1
|
||||
weight_decay: 0.01
|
||||
warmup_ratio: 0.1
|
||||
|
||||
|
||||
# LoRA
|
||||
lora_r: 8
|
||||
|
|
|
|||
|
|
@ -49,6 +49,11 @@ class ArgumentParser(HfArgumentParser):
|
|||
for arg, val in other_args.items():
|
||||
# add only if in keys
|
||||
if arg in keys:
|
||||
if val in ["None", "none", "null", "NULL"]:
|
||||
val = None
|
||||
inputs[arg] = val
|
||||
used_args[arg] = val
|
||||
continue
|
||||
base_type = data_yaml.__dataclass_fields__[arg].type
|
||||
inputs[arg] = val
|
||||
|
||||
|
|
@ -166,6 +171,10 @@ class TrainingArguments(TrainingArguments):
|
|||
default=None,
|
||||
metadata={"help": "Learning rate scheduler kwargs."},
|
||||
)
|
||||
warmup_steps: int = field(
|
||||
default=100,
|
||||
metadata={"help": "Number of warmup steps."},
|
||||
)
|
||||
eval_on_start: bool = field(
|
||||
default=True,
|
||||
metadata={"help": "Whether to evaluate on the start of training."},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue