Downloads · 30 days
424
51% of all-time downloads
gaianet/vitalik.eth-13b
vitalik.eth-13b is a machine learning model from gaianet. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
The vitalik-13b.csv file contains the QA set required for the fine-tuning. Each QA pair length is limited to 80 words to fit into llama.cpp context length of 128 tokens. The convert.py script converts the CSV file int…
Downloads · 30 days
424
51% of all-time downloads
All-time downloads
827
Public
Repo size
9.9 GB
Likes
0
Public
Click a slice to open those files.
.gguf9.8 GB · 99%
From the Hugging Face model README
The vitalik-13b.csv file contains the QA set required for the fine-tuning. Each QA pair length is limited to 80 words to fit into llama.cpp context length of 128 tokens. The convert.py script converts the CSV file into QAs in the llama2 chat template.
python convert.py
It generates a vitalik-13b.txt file, which can now be used in fine-tuning.
Clone this repo into the llama.cpp/models/ folder.
cd llama.cpp/models
git clone https://huggingface.co/gaianet/vitalik.eth-13b
Move the Llama2-13b-chat base model to the folder.
cd vitalik-13b
mv path/to/llama-2-13b-chat.Q5_K_M.gguf .
From the llama.cpp/models/vitalik-13b folder run the following command.
../../build/bin/finetune --model-base llama-2-13b-chat.Q5_K_M.gguf --lora-out lora.bin --train-data vitalik-13b.txt --sample-start '<SFT>' --adam-iter 1024
Wait for several days until the above process finishes. You will have a lora.bin file, which can generate the fine-tuned model.
../../build/bin/export-lora --model-base llama-2-13b-chat.Q5_K_M.gguf --lora lora.bin --model-out vitalik.eth-13b-q5_k_m.gguf
Learn more about Llama2 model fine tuning here.