-
Notifications
You must be signed in to change notification settings - Fork 2
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
6398f20
commit 75ee1dc
Showing
13 changed files
with
4,827 additions
and
1,677 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
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 |
This file was deleted.
Oops, something went wrong.
24 changes: 9 additions & 15 deletions
24
finetuning/llamacpp/exp1/run_finetuning.sh → finetuning/lora.sh
100644 → 100755
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 |
---|---|---|
@@ -1,31 +1,25 @@ | ||
#!/bin/bash -l | ||
#SBATCH -G 4 | ||
#SBATCH --output=finetune.log | ||
#SBATCH --time=7-00:00:00 | ||
#SBATCH --mem=512G | ||
keep-job 30 | ||
datadir=/common/home/$USER/Persona-LLM-Chatbot-For-QA/notebooks/data/friends_dataset.txt | ||
datadir=/common/home/$USER/Persona-LLM-Chatbot-For-QA/finetuning/llamacpp/exp2/data/finetune_data.txt | ||
model_path=/freespace/local/$USER/llama.cpp/models/llama-2-7b-chat.Q4_K_M.gguf | ||
new_model_path=llama2-7b-chat-lora.gguf | ||
cd /freespace/local/$USER/llama.cpp/ | ||
./finetune \ | ||
new_model_path=lama2-7b-chat-lora.gguf | ||
/freespace/local/$USER/llama.cpp/finetune \ | ||
--model-base $model_path \ | ||
--train-data $datadir \ | ||
--lora-out $new_model_path \ | ||
--save-every 0 \ | ||
--threads 14 \ | ||
--ctx 256 \ | ||
--ctx 4096 \ | ||
--rope-freq-base 10000 \ | ||
--rope-freq-scale 1.0 \ | ||
--batch 1 \ | ||
--grad-acc 1 \ | ||
--adam-iter 256 \ | ||
--adam-iter 3099 \ | ||
--adam-alpha 0.001 \ | ||
--lora-r 4 \ | ||
--lora-alpha 4 \ | ||
--lora-r 64 \ | ||
--lora-alpha 128 \ | ||
--use-checkpointing \ | ||
--use-flash \ | ||
--sample-start "\n" \ | ||
--escape \ | ||
--include-sample-start \ | ||
--seed 1 | ||
--seed 2 \ | ||
-ngl 35 > finetune.log 2>&1 |
Oops, something went wrong.