generated from alan-turing-institute/ARC-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5ed520
commit b118080
Showing
8 changed files
with
165 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Combinations to build runs over | ||
combinations: | ||
data_config: | ||
- gen_tofu_rel_1 | ||
- gen_tofu_rel_3 | ||
- gen_tofu_rel_6 | ||
|
||
train_config: | ||
- default | ||
|
||
forget_config: | ||
- [difference, accumulate] | ||
- [idk, default] | ||
- [difference, shorter_accumulate] | ||
- [idk, shorter] | ||
|
||
seed: | ||
- 40 | ||
- 41 | ||
- 42 | ||
- 43 | ||
|
||
model_config: Phi-3-mini-4k-instruct | ||
|
||
# Full data config: which dataset to use to build full model to do forgetting on | ||
full_data_config: gen_tofu_full | ||
|
||
# Baskerville kwargs | ||
use_bask: true | ||
model_cache_dir: /bask/projects/v/vjgo8416-sltv-forget/caches/models | ||
data_cache_dir: /bask/projects/v/vjgo8416-sltv-forget/caches/datasets | ||
wandb_cache_dir: /bask/projects/v/vjgo8416-sltv-forget/caches/wandb | ||
|
||
bask: | ||
walltime: '0-12:0:0' | ||
gpu_number: 1 | ||
node_number: 1 | ||
|
||
# Wandb kwargs | ||
wandb_kwargs: | ||
use_wandb: true | ||
wandb_config: | ||
entity: turing-arc | ||
project: selective-forgetting | ||
log_model: "false" | ||
group: experiment-2-relationship |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
configs/model/Meta-Llama-3.1-8B-Instruct/hyperparameters/shorter.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
trainer_kwargs: # passed to TrainingArguments | ||
# Memory optimization | ||
bf16: True | ||
|
||
# Batch size | ||
per_device_train_batch_size: 8 | ||
per_device_eval_batch_size: 16 | ||
gradient_accumulation_steps: 1 | ||
|
||
# Core hyperparameters | ||
learning_rate: 1.e-4 | ||
num_train_epochs: 5 | ||
weight_decay: 0.01 | ||
warmup_ratio: 0.2 # 0.2 for 1 epoch (when running for 5 epochs) | ||
|
||
# Evaluation | ||
eval_strategy: steps | ||
eval_steps: 0.2 | ||
|
||
# Logging | ||
logging_strategy: steps | ||
logging_steps: 0.2 | ||
|
||
|
||
# Early stopping | ||
save_strategy: epoch | ||
save_total_limit: 1 | ||
|
||
# Outputs | ||
output_dir: output | ||
|
||
peft_kwargs: # passed to LoraConfig | ||
r: 8 | ||
lora_alpha: 32 | ||
lora_dropout: 0.05 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
configs/model/Phi-3-mini-4k-instruct/hyperparameters/shorter.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
trainer_kwargs: # passed to TrainingArguments | ||
# Memory optimization | ||
bf16: True | ||
|
||
# Batch size | ||
per_device_train_batch_size: 16 | ||
per_device_eval_batch_size: 32 | ||
gradient_accumulation_steps: 1 | ||
|
||
# Core hyperparameters | ||
learning_rate: 1.e-4 | ||
num_train_epochs: 5 | ||
weight_decay: 0.01 | ||
warmup_ratio: 0.2 # 0.2 for 1 epoch (when running for 5 epochs) | ||
|
||
# Evaluation | ||
eval_strategy: steps | ||
eval_steps: 0.2 | ||
|
||
# Logging | ||
logging_strategy: steps | ||
logging_steps: 0.2 | ||
|
||
|
||
# Early stopping | ||
save_strategy: epoch | ||
save_total_limit: 1 | ||
|
||
# Outputs | ||
output_dir: output | ||
|
||
peft_kwargs: # passed to LoraConfig | ||
r: 8 | ||
lora_alpha: 8 | ||
lora_dropout: 0.05 | ||
target_modules: ["k_proj", "q_proj", "v_proj", "o_proj", "gate_proj", "down_proj", "up_proj"] |
36 changes: 36 additions & 0 deletions
36
configs/model/Phi-3-mini-4k-instruct/hyperparameters/shorter_accumulate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
trainer_kwargs: # passed to TrainingArguments | ||
# Memory optimization | ||
bf16: True | ||
|
||
# Batch size | ||
per_device_train_batch_size: 8 | ||
per_device_eval_batch_size: 32 | ||
gradient_accumulation_steps: 2 | ||
|
||
# Core hyperparameters | ||
learning_rate: 1.e-4 | ||
num_train_epochs: 5 | ||
weight_decay: 0.01 | ||
warmup_ratio: 0.2 # 0.2 for 1 epoch (when running for 5 epochs) | ||
|
||
# Evaluation | ||
eval_strategy: steps | ||
eval_steps: 0.2 | ||
|
||
# Logging | ||
logging_strategy: steps | ||
logging_steps: 0.2 | ||
|
||
|
||
# Early stopping | ||
save_strategy: epoch | ||
save_total_limit: 1 | ||
|
||
# Outputs | ||
output_dir: output | ||
|
||
peft_kwargs: # passed to LoraConfig | ||
r: 8 | ||
lora_alpha: 8 | ||
lora_dropout: 0.05 | ||
target_modules: ["k_proj", "q_proj", "v_proj", "o_proj", "gate_proj", "down_proj", "up_proj"] |