-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Train][Templates] Add LoRA support to Llama-2 finetuning example (#3…
…7794) Signed-off-by: Artur Niederfahrenhorst <attaismyname@googlemail.com> Co-authored-by: kourosh hakhamaneshi <31483498+kouroshHakha@users.noreply.github.com>
- Loading branch information
1 parent
d6baf12
commit 1a08c16
Showing
9 changed files
with
388 additions
and
29 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
11 changes: 11 additions & 0 deletions
11
doc/source/templates/04_finetuning_llms_with_deepspeed/lora_configs/lora.json
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,11 @@ | ||
{ | ||
"r": 8, | ||
"lora_alpha": 16, | ||
"lora_dropout": 0.05, | ||
"target_modules": ["gate_proj", "up_proj", "down_proj"], | ||
"task_type": "CAUSAL_LM", | ||
"modules_to_save": [], | ||
"bias": "none", | ||
"fan_in_fan_out": false, | ||
"init_lora_weights": true | ||
} |
Oops, something went wrong.