diff options
| author | pks <pks@pks.rocks> | 2025-11-30 22:46:45 +0100 |
|---|---|---|
| committer | pks <pks@pks.rocks> | 2025-11-30 22:46:45 +0100 |
| commit | e82be8356620659497d5aaccac8d76435a8391c4 (patch) | |
| tree | 657f0e0cfd6853f6579aeb451968dd0257603c92 | |
| parent | 2706ad84c1a94e3144a4f6761447db5b2e6ed3a3 (diff) | |
WIP
| -rwxr-xr-x | finetuning.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/finetuning.py b/finetuning.py index 044cda5..379f9b0 100755 --- a/finetuning.py +++ b/finetuning.py @@ -104,8 +104,8 @@ def main(): target_modules = ["q_proj", "o_proj", "k_proj", "v_proj", "gate_proj", "up_proj", "down_proj"] modules_to_save = None else: - target_modules="all-linear", - modules_to_save=["lm_head", "embed_tokens"] + target_modules = "all-linear" + modules_to_save = ["lm_head", "embed_tokens"] peft_config = LoraConfig( lora_alpha=args.lora_alpha, @@ -114,7 +114,7 @@ def main(): task_type="CAUSAL_LM", bias="none", target_modules=target_modules, - modules_to_save=modules_to_save, + #modules_to_save=modules_to_save, ) dataset = load_dataset("asdf2k/caption_translation") |
