Skip to content

Commit

Permalink
directory reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
FalgunMalhotra committed Dec 11, 2023
1 parent 6398f20 commit 75ee1dc
Show file tree
Hide file tree
Showing 13 changed files with 4,827 additions and 1,677 deletions.
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.
1 change: 1 addition & 0 deletions finetuning/auth_token.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
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
696 changes: 0 additions & 696 deletions finetuning/llamacpp/exp1/finetune.log

This file was deleted.

24 changes: 9 additions & 15 deletions finetuning/llamacpp/exp1/run_finetuning.sh → finetuning/lora.sh
100644 → 100755
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
Loading

0 comments on commit 75ee1dc

Please sign in to comment.