-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add KFTO GPU tests for llama2 and granite using LoRA
- Loading branch information
1 parent
6e098bf
commit 296c1d6
Showing
4 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
tests/kfto/core/config_granite_34b_code_instruct_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,21 @@ | ||
{ | ||
"model_name_or_path": "ibm-granite/granite-34b-code-instruct", | ||
"training_data_path": "/mnt/scratch/dataset/alpaca_data.json", | ||
"output_dir": "/mnt/output/model", | ||
"num_train_epochs": 1.0, | ||
"per_device_train_batch_size": 1, | ||
"per_device_eval_batch_size": 4, | ||
"gradient_accumulation_steps": 4, | ||
"evaluation_strategy": "no", | ||
"save_strategy": "epoch", | ||
"learning_rate": 1e-5, | ||
"weight_decay": 0.0, | ||
"lr_scheduler_type": "cosine", | ||
"include_tokens_per_second": true, | ||
"response_template": "\n### Response:", | ||
"dataset_text_field": "output", | ||
"use_flash_attn": false, | ||
"tokenizer_name_or_path": "ibm-granite/granite-34b-code-instruct", | ||
"peft_method": "lora", | ||
"target_modules": ["all-linear"] | ||
} |
File renamed without changes.
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,20 @@ | ||
{ | ||
"model_name_or_path": "meta-llama/Llama-2-13b-chat-hf", | ||
"training_data_path": "/mnt/scratch/dataset/alpaca_data.json", | ||
"output_dir": "/mnt/output/model", | ||
"num_train_epochs": 1.0, | ||
"per_device_train_batch_size": 1, | ||
"per_device_eval_batch_size": 4, | ||
"gradient_accumulation_steps": 4, | ||
"evaluation_strategy": "no", | ||
"save_strategy": "epoch", | ||
"learning_rate": 1e-5, | ||
"weight_decay": 0.0, | ||
"lr_scheduler_type": "cosine", | ||
"include_tokens_per_second": true, | ||
"response_template": "\n### Response:", | ||
"dataset_text_field": "output", | ||
"use_flash_attn": false, | ||
"tokenizer_name_or_path": "meta-llama/Llama-2-13b-chat-hf", | ||
"peft_method": "lora" | ||
} |
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