Downloads · 30 days
5
2% of all-time downloads
AjayMukundS/Llama-2-7b-chat-finetune
Llama-2-7b-chat-finetune is a text generation model from AjayMukundS. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Downloads · 30 days
5
2% of all-time downloads
All-time downloads
230
Public
Repo size
27 GB
Likes
2
Public
Click a slice to open those files.
.bin13.5 GB · 100%
From the Hugging Face model README
AjayMukundS/Llama-2-7b-chat-finetune
This is a Llama 2 Fine Tuned Model with 7 Billion Parameters on the Dataset from mlabonne/guanaco-llama2. The training data is basically a Chat between a Human and an Assistant where the Human poses some queries and the Assistant responds to those queries in a suitable fashion. In the case of Llama 2, the following Chat Template is used for the chat models:
(s)[INST] ((sys))
SYSTEM PROMPT
((/sys))
User Prompt [/INST] Model Answer (/s)
System Prompt (optional) --> to guide the model
User prompt (required) --> to give the instruction / User Query
Model Answer (required)
The Instruction Dataset is reformated to follow the above Llama 2 template.
Original Dataset --> https://huggingface.co/datasets/timdettmers/openassistant-guanaco\
Reformated Dataset with 1K Samples --> https://huggingface.co/datasets/mlabonne/guanaco-llama2-1k
Complete Reformated Datset --> https://huggingface.co/datasets/mlabonne/guanaco-llama2
To know how this dataset was created, you can check this notebook --> https://colab.research.google.com/drive/1Ad7a9zMmkxuXTOh1Z7-rNSICA4dybpM2?usp=sharing
To drastically reduce the VRAM usage, we must fine-tune the model in 4-bit precision, which is why we’ll use QLoRA here and the GPU on which the model was fined tuned on was L4 (Google Colab Pro)