-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaks/Fixes to Lora_LM, add a basic config for lora_lm (#466)
* require a new enough optax (didn't i do that?) * add a lora_llama2.yaml * forgot to set up the data stuff * support multiple evaluation sets in lora_lm * try not failing if the ray node is already up * don't raise on hf datasets with no validation set * fix trainable_param_count invocations * reduce batch size for lora_llama2 * fix serialization of lora, which i had broken
- Loading branch information
Showing
7 changed files
with
90 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
data: | ||
# you should set a data.id or train_urls and validation_urls | ||
# id: math-ai/AutoMathText | ||
tokenizer: "meta-llama/Llama-2-70b-hf" | ||
initialize_from_hf: "meta-llama/Llama-2-7b-hf" | ||
trainer: | ||
mp: p=f32,c=bfloat16 | ||
wandb: | ||
project: "levanter-lora" | ||
tags: ["lora", "llama2"] | ||
num_train_steps: 5000 # tune to suit your needs | ||
train_batch_size: 64 | ||
|
||
# if using model parallelism, this is useful: | ||
tensor_parallel_axes: ["mlp", "heads"] | ||
optimizer: | ||
learning_rate: 3e-4 | ||
weight_decay: 0.0 |
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
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
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