Views
No views yet
vitalik-7b.csv file contains the QA set required for the fine-tuning. The convert.py script converts the CSV file into QAs in the llama2 chat template.python convert.pyvitalik-7b.txt file, which can now be used in fine-tuning.llama.cpp/models/ folder.cd llama.cpp/models
git clone https://huggingface.co/gaianet/vitalik.eth-7bcd vitalik-7b
mv path/to/llama-2-7b-chat.Q5_K_M.gguf .llama.cpp/models/vitalik-7b folder run the following command.../../build/bin/finetune --model-base llama-2-7b-chat.Q5_K_M.gguf --lora-out lora.bin --train-data vitalik-7b.txt --sample-start '<SFT>' --adam-iter 1024lora.bin file, which can generate the fine-tuned model.../../build/bin/export-lora --model-base llama-2-7b-chat.Q5_K_M.gguf --lora lora.bin --model-out vitalik.eth-7b-q5_k_m.ggufLearn more about Llama2 model fine tuning here.
llama-2-chat4096