Downloads · 30 days
4
0% of all-time downloads
gaianet/vitalik.eth-7b
vitalik.eth-7b 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-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.
Downloads · 30 days
4
0% of all-time downloads
All-time downloads
1.4K
Public
Repo size
54.6 GB
Likes
1
Public
Click a slice to open those files.
.gguf49.4 GB · 100%
From the Hugging Face model README
The 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.py
It generates a vitalik-7b.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-7b
Move the Llama2-7b-chat base model to the folder.
cd vitalik-7b
mv path/to/llama-2-7b-chat.Q5_K_M.gguf .
From the 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 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-7b-chat.Q5_K_M.gguf --lora lora.bin --model-out vitalik.eth-7b-q5_k_m.gguf
Learn more about Llama2 model fine tuning here.
Prompt template:
prompt template: llama-2-chat
Context size:
chat_ctx_size: 4096
Run with GaiaNet:
Quick start: https://docs.gaianet.ai/node-guide/quick-start
Customize your node: https://docs.gaianet.ai/node-guide/customize