Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory reorg #33

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion finetuning/llamacpp/exp1/data/friends_dataset.txt

This file was deleted.

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
6,134 changes: 0 additions & 6,134 deletions finetuning/notebook/exp1/data/finetuning_data.jsonl

This file was deleted.

Loading
Loading